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

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

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

WebServiceTemplate.initDefaultStrategies介绍

[英]Initialize the default implementations for the template's strategies: SoapFaultMessageResolver, org.springframework.ws.soap.saaj.SaajSoapMessageFactory, and HttpUrlConnectionMessageSender.
[中]初始化模板策略的默认实现:SoapFaultMessageResolver,org。springframework。ws。肥皂萨杰。SaajSoapMessageFactory和HttpUrlConnectionMessageSender。

代码示例

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

/** Creates a new {@code WebServiceTemplate} using default settings. */
public WebServiceTemplate() {
  initDefaultStrategies();
}

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

/** Creates a new <code>WebServiceTemplate</code> using default settings. */
public WebServiceTemplate() {
  initDefaultStrategies();
}

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

/** Creates a new {@code WebServiceTemplate} using default settings. */
public WebServiceTemplate() {
  initDefaultStrategies();
}

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

/** Creates a new {@code WebServiceTemplate} using default settings. */
public WebServiceTemplate() {
  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: 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/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

/**
 * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
 *
 * @param marshaller   the marshaller to use
 * @param unmarshaller the unmarshaller to use
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  Assert.notNull(unmarshaller, "unmarshaller must not be null");
  this.setMarshaller(marshaller);
  this.setUnmarshaller(unmarshaller);
  initDefaultStrategies();
}

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

/**
 * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
 *
 * @param marshaller   the marshaller to use
 * @param unmarshaller the unmarshaller to use
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  Assert.notNull(unmarshaller, "unmarshaller must not be null");
  this.setMarshaller(marshaller);
  this.setUnmarshaller(unmarshaller);
  initDefaultStrategies();
}

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

/**
 * Creates a new {@code MarshallingMethodEndpointAdapter} with the given marshaller and unmarshaller.
 *
 * @param marshaller   the marshaller to use
 * @param unmarshaller the unmarshaller to use
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller, Unmarshaller unmarshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  Assert.notNull(unmarshaller, "unmarshaller must not be null");
  this.setMarshaller(marshaller);
  this.setUnmarshaller(unmarshaller);
  initDefaultStrategies();
}

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

/**
 * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
 * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
 * unmarshalling. Otherwise, an exception is thrown.
 *
 * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
 * so that you can safely use this constructor.
 *
 * @param marshaller object used as marshaller and unmarshaller
 * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
 *                                    interface
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  if (!(marshaller instanceof Unmarshaller)) {
    throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
        "interface. Please set an Unmarshaller explicitly by using the " +
        "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  }
  else {
    this.setMarshaller(marshaller);
    this.setUnmarshaller((Unmarshaller) marshaller);
  }
  initDefaultStrategies();
}

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

/**
 * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
 * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
 * unmarshalling. Otherwise, an exception is thrown.
 *
 * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
 * so that you can safely use this constructor.
 *
 * @param marshaller object used as marshaller and unmarshaller
 * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
 *                                    interface
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  if (!(marshaller instanceof Unmarshaller)) {
    throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
        "interface. Please set an Unmarshaller explicitly by using the " +
        "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  }
  else {
    this.setMarshaller(marshaller);
    this.setUnmarshaller((Unmarshaller) marshaller);
  }
  initDefaultStrategies();
}

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

/**
 * Creates a new {@code WebServiceTemplate} with the given marshaller. If the given {@link
 * Marshaller} also implements the {@link Unmarshaller} interface, it is used for both marshalling and
 * unmarshalling. Otherwise, an exception is thrown.
 *
 * <p>Note that all {@link Marshaller} implementations in Spring also implement the {@link Unmarshaller} interface,
 * so that you can safely use this constructor.
 *
 * @param marshaller object used as marshaller and unmarshaller
 * @throws IllegalArgumentException when {@code marshaller} does not implement the {@link Unmarshaller}
 *                                    interface
 * @since 2.0.3
 */
public WebServiceTemplate(Marshaller marshaller) {
  Assert.notNull(marshaller, "marshaller must not be null");
  if (!(marshaller instanceof Unmarshaller)) {
    throw new IllegalArgumentException("Marshaller [" + marshaller + "] does not implement the Unmarshaller " +
        "interface. Please set an Unmarshaller explicitly by using the " +
        "WebServiceTemplate(Marshaller, Unmarshaller) constructor.");
  }
  else {
    this.setMarshaller(marshaller);
    this.setUnmarshaller((Unmarshaller) marshaller);
  }
  initDefaultStrategies();
}

相关文章

WebServiceTemplate类方法