org.springframework.ws.client.core.WebServiceTemplate.setFaultMessageResolver()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(197)

本文整理了Java中org.springframework.ws.client.core.WebServiceTemplate.setFaultMessageResolver()方法的一些代码示例,展示了WebServiceTemplate.setFaultMessageResolver()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceTemplate.setFaultMessageResolver()方法的具体详情如下:
包路径:org.springframework.ws.client.core.WebServiceTemplate
类名称:WebServiceTemplate
方法名:setFaultMessageResolver

WebServiceTemplate.setFaultMessageResolver介绍

[英]Sets the fault resolver for this template. Default is the org.springframework.ws.soap.client.core.SoapFaultMessageResolver, but may be set to null to disable fault handling.
[中]设置此模板的故障解析程序。默认值是组织。springframework。ws。肥皂客户果心SoapFaultMessageResolver,但可以设置为null以禁用故障处理。

代码示例

代码示例来源:origin: org.springframework.boot/spring-boot

@Override
public void customize(WebServiceTemplate webServiceTemplate) {
  webServiceTemplate.setFaultMessageResolver(this.faultMessageResolver);
}

代码示例来源:origin: spring-projects/spring-integration

public void setFaultMessageResolver(FaultMessageResolver faultMessageResolver) {
  Assert.state(!this.webServiceTemplateExplicitlySet,
      () -> "'faultMessageResolver' must be specified on the provided: " + this.webServiceTemplate);
  this.webServiceTemplate.setFaultMessageResolver(faultMessageResolver);
}

代码示例来源:origin: spring-projects/spring-ws

private void initFaultMessageResolver(DefaultStrategiesHelper helper) throws BeanInitializationException {
  FaultMessageResolver faultMessageResolver = helper.getDefaultStrategy(FaultMessageResolver.class);
  setFaultMessageResolver(faultMessageResolver);
}

代码示例来源:origin: apache/servicemix-bundles

private void initFaultMessageResolver(DefaultStrategiesHelper helper) throws BeanInitializationException {
  FaultMessageResolver faultMessageResolver = helper.getDefaultStrategy(FaultMessageResolver.class);
  setFaultMessageResolver(faultMessageResolver);
}

代码示例来源:origin: org.springframework.ws/spring-ws-core

private void initFaultMessageResolver(DefaultStrategiesHelper helper) throws BeanInitializationException {
  FaultMessageResolver faultMessageResolver = helper.getDefaultStrategy(FaultMessageResolver.class);
  setFaultMessageResolver(faultMessageResolver);
}

代码示例来源:origin: org.springframework.ws/org.springframework.ws

private void initFaultMessageResolver(DefaultStrategiesHelper helper) throws BeanInitializationException {
  FaultMessageResolver faultMessageResolver = helper.getDefaultStrategy(FaultMessageResolver.class);
  setFaultMessageResolver(faultMessageResolver);
}

代码示例来源:origin: com.consol.citrus/citrus-ws

getEndpointConfiguration().getWebServiceTemplate().setFaultMessageResolver(new InternalFaultMessageResolver(correlationKey, endpointUri, context));

相关文章

WebServiceTemplate类方法