Spring Web Services Framework

org.springframework.ws.wsdl.wsdl11.provider
Class SoapProvider

java.lang.Object
  extended by org.springframework.ws.wsdl.wsdl11.provider.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.

Since:
1.5.0
Author:
Arjen Poutsma

Constructor Summary
SoapProvider()
           
 
Method Summary
 void addBindings(Definition definition)
           
 void addServices(Definition 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 setLocationUri(String locationUri)
          Sets the value used for the SOAP Address location attribute value.
 void setServiceName(String serviceName)
          Sets the service name.
 void setSoapActions(Properties soapActions)
          Sets the SOAP Actions for this binding.
 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

SoapProvider

public SoapProvider()
Method Detail

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.


addBindings

public void addBindings(Definition definition)
                 throws WSDLException
Specified by:
addBindings in interface BindingsProvider
Throws:
WSDLException

addServices

public void addServices(Definition definition)
                 throws WSDLException
Specified by:
addServices in interface ServicesProvider
Throws:
WSDLException

Spring Web Services Framework

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