Spring Web Services Framework

org.springframework.ws.wsdl.wsdl11
Class DefaultWsdl11Definition

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

public class DefaultWsdl11Definition
extends Object
implements Wsdl11Definition, 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 Summary
DefaultWsdl11Definition()
          Creates a new instance of the DefaultWsdl11Definition.
 
Method Summary
 void afterPropertiesSet()
           
 Source getSource()
          Returns the Source of the definition.
 void setCreateSoap11Binding(boolean createSoap11Binding)
          Indicates whether a SOAP 1.1 binding should be created.
 void setCreateSoap12Binding(boolean createSoap12Binding)
          Indicates whether a SOAP 1.2 binding should be created.
 void setFaultSuffix(String faultSuffix)
          Sets the suffix used to detect fault elements in the schema.
 void setLocationUri(String locationUri)
          Sets the value used for the SOAP Address location attribute value.
 void setPortTypeName(String portTypeName)
          Sets the port type name used for this definition.
 void setRequestSuffix(String requestSuffix)
          Sets the suffix used to detect request elements in the schema.
 void setResponseSuffix(String responseSuffix)
          Sets the suffix used to detect response elements in the schema.
 void setSchema(XsdSchema schema)
          Sets the single XSD schema to inline.
 void setSchemaCollection(XsdSchemaCollection schemaCollection)
          Sets the XSD schema collection to inline.
 void setServiceName(String serviceName)
          Sets the service name.
 void setSoapActions(Properties soapActions)
          Sets the SOAP Actions for this binding.
 void setTargetNamespace(String targetNamespace)
          Sets the target namespace used for this definition.
 void setTransportUri(String transportUri)
          Sets the value used for the binding transport attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWsdl11Definition

public DefaultWsdl11Definition()
Creates a new instance of the DefaultWsdl11Definition.

Method Detail

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.


setCreateSoap12Binding

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


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.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface 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

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.