Class DefaultWsdl11Definition

java.lang.Object
org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, Wsdl11Definition, WsdlDefinition

public class DefaultWsdl11Definition extends Object implements Wsdl11Definition, org.springframework.beans.factory.InitializingBean
Convenient implementation of Wsdl11Definition that creates a SOAP 1.1 or 1.2 binding based on naming conventions in one or more inlined XSD schemas. Delegates to InliningXsdSchemaTypesProvider, DefaultMessagesProvider, SuffixBasedPortTypesProvider, SoapProvider underneath; effectively equivalent to using a ProviderBasedWsdl4jDefinition with all these providers.

Example configuration:

 <bean id="airline" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
         <property name="schema">
           <bean class="org.springframework.xml.xsd.SimpleXsdSchema">
                 <property name="xsd" value="/WEB-INF/airline.xsd"/>
           </bean>
         </property>
         <property name="portTypeName" value="Airline"/>
         <property name="locationUri" value="http://localhost:8080/airline/services"/>
 </bean>
 
Since:
1.5.0
Author:
Arjen Poutsma
  • Constructor Details

  • Method Details

    • setTargetNamespace

      public void setTargetNamespace(String targetNamespace)
      Sets the target namespace used for this definition.

      Defaults to the target namespace of the defined schema.

    • setSchema

      public void setSchema(XsdSchema schema)
      Sets the single XSD schema to inline. Either this property, or schemaCollection must be set.
    • setSchemaCollection

      public void setSchemaCollection(XsdSchemaCollection schemaCollection)
      Sets the XSD schema collection to inline. Either this property, or schema must be set.
    • setPortTypeName

      public void setPortTypeName(String portTypeName)
      Sets the port type name used for this definition. Required.
    • setRequestSuffix

      public void setRequestSuffix(String requestSuffix)
      Sets the suffix used to detect request elements in the schema.
    • setResponseSuffix

      public void setResponseSuffix(String responseSuffix)
      Sets the suffix used to detect response elements in the schema.
    • setFaultSuffix

      public void setFaultSuffix(String faultSuffix)
      Sets the suffix used to detect fault elements in the schema.
    • 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.
      Parameters:
      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.

      Defaults to the port type name, with the suffix Service appended to it.

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getSource

      public Source getSource()
      Description copied from interface: WsdlDefinition
      Returns the Source of the definition.
      Specified by:
      getSource in interface WsdlDefinition
      Returns:
      the Source of this WSDL definition