Class SoapProvider

All Implemented Interfaces:
BindingsProvider, ServicesProvider

public class SoapProvider extends Object implements BindingsProvider, ServicesProvider
Implementation of the BindingsProvider and ServicesProvider interfaces that supports SOAP 1.1 and SOAP 1.2. Delegates to Soap11Provider and Soap12Provider.

By setting the soapActions property, the SOAP Actions defined in the resulting WSDL can be set. Additionally, the transport uri can be changed from the default HTTP transport by using the transportUri property.

The createSoap11 and createSoap12 properties indicate whether a SOAP 1.1 or SOAP 1.2 binding should be created. These properties default to true and false respectively.

Arjen Poutsma
  • Constructor Details

    • SoapProvider

      public SoapProvider()
  • Method Details

    • setCreateSoap11Binding

      public void setCreateSoap11Binding(boolean createSoap11Binding)
      Indicates whether a SOAP 1.1 binding should be created.

      Defaults to true.

    • setCreateSoap12Binding

      public void setCreateSoap12Binding(boolean createSoap12Binding)
      Indicates whether a SOAP 1.2 binding should be created.

      Defaults to false.

    • setSoapActions

      public void setSoapActions(Properties soapActions)
      Sets the SOAP Actions for this binding. Keys are binding operation names; values are SOAP Action URIs.
      soapActions - the soap
    • setTransportUri

      public void setTransportUri(String transportUri)
      Sets the value used for the binding transport attribute value. Defaults to HTTP.
    • setLocationUri

      public void setLocationUri(String locationUri)
      Sets the value used for the SOAP Address location attribute value.
    • setServiceName

      public void setServiceName(String serviceName)
      Sets the service name.
    • addBindings

      public void addBindings(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
      Specified by:
      addBindings in interface BindingsProvider
    • addServices

      public void addServices(javax.wsdl.Definition definition) throws javax.wsdl.WSDLException
      Specified by:
      addServices in interface ServicesProvider