本文整理了Java中org.springframework.ws.client.core.WebServiceTemplate.setMessageFactory()
方法的一些代码示例,展示了WebServiceTemplate.setMessageFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceTemplate.setMessageFactory()
方法的具体详情如下:
包路径:org.springframework.ws.client.core.WebServiceTemplate
类名称:WebServiceTemplate
方法名:setMessageFactory
暂无
代码示例来源:origin: spring-projects/spring-integration
public void setMessageFactory(WebServiceMessageFactory messageFactory) {
Assert.state(!this.webServiceTemplateExplicitlySet,
() -> "'messageFactory' must be specified on the provided: " + this.webServiceTemplate);
this.webServiceTemplate.setMessageFactory(messageFactory);
}
代码示例来源:origin: apache/servicemix-bundles
/** Set the {@code WebServiceMessageFactory} to be used by the gateway. */
public final void setMessageFactory(WebServiceMessageFactory messageFactory) {
webServiceTemplate.setMessageFactory(messageFactory);
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
/** Set the {@code WebServiceMessageFactory} to be used by the gateway. */
public final void setMessageFactory(WebServiceMessageFactory messageFactory) {
webServiceTemplate.setMessageFactory(messageFactory);
}
代码示例来源:origin: spring-projects/spring-ws
/** Set the {@code WebServiceMessageFactory} to be used by the gateway. */
public final void setMessageFactory(WebServiceMessageFactory messageFactory) {
webServiceTemplate.setMessageFactory(messageFactory);
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
/** Set the <code>WebServiceMessageFactory</code> to be used by the gateway. */
public final void setMessageFactory(WebServiceMessageFactory messageFactory) {
webServiceTemplate.setMessageFactory(messageFactory);
}
代码示例来源:origin: spring-projects/spring-integration
template.setMessageFactory(new DomPoxMessageFactory());
代码示例来源:origin: spring-projects/spring-ws
/**
* Creates a new {@code WebServiceTemplate} based on the given message factory.
*
* @param messageFactory the message factory to use
*/
public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
setMessageFactory(messageFactory);
initDefaultStrategies();
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
/**
* Creates a new {@code WebServiceTemplate} based on the given message factory.
*
* @param messageFactory the message factory to use
*/
public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
setMessageFactory(messageFactory);
initDefaultStrategies();
}
代码示例来源:origin: com.consol.citrus/citrus-ws
/**
* Sets the message factory.
* @param messageFactory
*/
public void setMessageFactory(WebServiceMessageFactory messageFactory) {
this.messageFactory = messageFactory;
getWebServiceTemplate().setMessageFactory(messageFactory);
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
/**
* Creates a new <code>WebServiceTemplate</code> based on the given message factory.
*
* @param messageFactory the message factory to use
*/
public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
setMessageFactory(messageFactory);
initDefaultStrategies();
}
代码示例来源:origin: apache/servicemix-bundles
/**
* Creates a new {@code WebServiceTemplate} based on the given message factory.
*
* @param messageFactory the message factory to use
*/
public WebServiceTemplate(WebServiceMessageFactory messageFactory) {
setMessageFactory(messageFactory);
initDefaultStrategies();
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
private void initMessageFactory(DefaultStrategiesHelper helper) throws BeanInitializationException {
WebServiceMessageFactory messageFactory = helper.getDefaultStrategy(WebServiceMessageFactory.class);
setMessageFactory(messageFactory);
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
private void initMessageFactory(DefaultStrategiesHelper helper) throws BeanInitializationException {
WebServiceMessageFactory messageFactory = helper.getDefaultStrategy(WebServiceMessageFactory.class);
setMessageFactory(messageFactory);
}
代码示例来源:origin: spring-projects/spring-ws
private void initMessageFactory(DefaultStrategiesHelper helper) throws BeanInitializationException {
WebServiceMessageFactory messageFactory = helper.getDefaultStrategy(WebServiceMessageFactory.class);
setMessageFactory(messageFactory);
}
代码示例来源:origin: apache/servicemix-bundles
private void initMessageFactory(DefaultStrategiesHelper helper) throws BeanInitializationException {
WebServiceMessageFactory messageFactory = helper.getDefaultStrategy(WebServiceMessageFactory.class);
setMessageFactory(messageFactory);
}
代码示例来源:origin: org.apache.camel/camel-spring-ws
private void configureProducerConfiguration(String remaining, SpringWebserviceConfiguration configuration) throws URISyntaxException {
if (configuration.getEndpointMapping() == null && configuration.getEndpointDispatcher() == null) {
LOG.debug("Building Spring Web Services producer");
URI webServiceEndpointUri = new URI(UnsafeUriCharactersEncoder.encode(remaining));
// Obtain a WebServiceTemplate from the registry when specified by
// an option on the component, else create a new template with
// Spring-WS defaults
WebServiceTemplate webServiceTemplate = configuration.getWebServiceTemplate();
if (webServiceTemplate == null) {
webServiceTemplate = new WebServiceTemplate();
configuration.setWebServiceTemplate(webServiceTemplate);
}
if (webServiceTemplate.getDefaultUri() == null) {
String uri = webServiceEndpointUri.toString();
webServiceTemplate.setDefaultUri(uri);
configuration.setWebServiceEndpointUri(uri);
}
if (configuration.getMessageSender() != null) {
webServiceTemplate.setMessageSender(configuration.getMessageSender());
}
if (configuration.getMessageFactory() != null) {
webServiceTemplate.setMessageFactory(configuration.getMessageFactory());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!