Spring Web Services Framework

org.springframework.ws.wsdl.wsdl11.builder
Class AbstractSoap12Wsdl4jDefinitionBuilder

java.lang.Object
  extended by org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
      extended by org.springframework.ws.wsdl.wsdl11.builder.AbstractBindingWsdl4jDefinitionBuilder
          extended by org.springframework.ws.wsdl.wsdl11.builder.AbstractSoap12Wsdl4jDefinitionBuilder
All Implemented Interfaces:
Wsdl11DefinitionBuilder
Direct Known Subclasses:
XsdBasedSoap12Wsdl4jDefinitionBuilder

Deprecated. as of Spring Web Services 1.5: superseded by DefaultWsdl11Definition and the org.springframework.ws.wsdl.wsdl11.provider package

public abstract class AbstractSoap12Wsdl4jDefinitionBuilder
extends AbstractBindingWsdl4jDefinitionBuilder

Abstract base class for Wsdl11DefinitionBuilder implementations that use WSDL4J and contain a SOAP 1.2 binding. Requires the locationUri property to be set before use.

Since:
1.5.0
Author:
Arjen Poutsma, Alex Marshall
See Also:
setLocationUri(String)

Field Summary
static String DEFAULT_TRANSPORT_URI
          Deprecated. The default soap12:binding transport attribute value.
 
Fields inherited from class org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
logger
 
Constructor Summary
AbstractSoap12Wsdl4jDefinitionBuilder()
          Deprecated.  
 
Method Summary
protected  ExtensibilityElement createSoapExtension(Class parentType, String localName)
          Deprecated. Creates a SOAP 1.2 extensibility element.
protected  void populateBinding(Binding binding, PortType portType)
          Deprecated. Calls AbstractBindingWsdl4jDefinitionBuilder.populateBinding(Binding, PortType), creates SOAP12Binding, and calls populateSoapBinding(SOAP12Binding).
protected  void populateBindingFault(BindingFault bindingFault, Fault fault)
          Deprecated. Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).
protected  void populateBindingInput(BindingInput bindingInput, Input input)
          Deprecated. Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).
protected  void populateBindingOperation(BindingOperation bindingOperation, Operation operation)
          Deprecated. Calls AbstractBindingWsdl4jDefinitionBuilder.populateBindingOperation(BindingOperation, Operation), creates a SOAP12Operation, and calls populateSoapOperation(SOAP12Operation).
protected  void populateBindingOutput(BindingOutput bindingOutput, Output output)
          Deprecated. Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).
protected  void populateDefinition(Definition definition)
          Deprecated. Adds the WSDL SOAP namespace to the definition.
protected  void populatePort(Port port, Binding binding)
          Deprecated. Creates a SOAP12Address, and calls populateSoapAddress(SOAP12Address).
protected  void populateSoapAddress(javax.wsdl.extensions.soap12.SOAP12Address soapAddress)
          Deprecated. Called after the SOAP12Address has been created.
protected  void populateSoapBinding(javax.wsdl.extensions.soap12.SOAP12Binding soapBinding)
          Deprecated. Called after the SOAP12Binding has been created.
protected  void populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body soapBody)
          Deprecated. Called after the SOAP12Body has been created.
protected  void populateSoapFault(BindingFault bindingFault, javax.wsdl.extensions.soap12.SOAP12Fault soapFault)
          Deprecated. Called after the SOAP12Fault has been created.
protected  void populateSoapOperation(javax.wsdl.extensions.soap12.SOAP12Operation soapOperation)
          Deprecated. Called after the SOAP12Operation has been created.
 void setLocationUri(String locationUri)
          Deprecated. Sets the value used for the soap12:address location attribute value.
 void setTransportUri(String transportUri)
          Deprecated. Sets the value used for the soap12:binding transport attribute value.
 
Methods inherited from class org.springframework.ws.wsdl.wsdl11.builder.AbstractBindingWsdl4jDefinitionBuilder
buildBindings, buildServices, populateService
 
Methods inherited from class org.springframework.ws.wsdl.wsdl11.builder.AbstractWsdl4jDefinitionBuilder
buildBindings, buildDefinition, buildImports, buildImports, buildMessages, buildMessages, buildPortTypes, buildPortTypes, buildServices, buildTypes, buildTypes, createExtension, getDefinition, populateExtensionRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_TRANSPORT_URI

public static final String DEFAULT_TRANSPORT_URI
Deprecated. 
The default soap12:binding transport attribute value.

See Also:
Constant Field Values
Constructor Detail

AbstractSoap12Wsdl4jDefinitionBuilder

public AbstractSoap12Wsdl4jDefinitionBuilder()
Deprecated. 
Method Detail

setTransportUri

public void setTransportUri(String transportUri)
Deprecated. 
Sets the value used for the soap12:binding transport attribute value.

See Also:
SOAP12Binding.setTransportURI(String), DEFAULT_TRANSPORT_URI

setLocationUri

public void setLocationUri(String locationUri)
Deprecated. 
Sets the value used for the soap12:address location attribute value.


populateDefinition

protected void populateDefinition(Definition definition)
                           throws WSDLException
Deprecated. 
Adds the WSDL SOAP namespace to the definition.

Overrides:
populateDefinition in class AbstractWsdl4jDefinitionBuilder
Parameters:
definition - the WSDL4J Definition
Throws:
WSDLException - in case of errors
See Also:
AbstractWsdl4jDefinitionBuilder.buildDefinition()

populateBinding

protected void populateBinding(Binding binding,
                               PortType portType)
                        throws WSDLException
Deprecated. 
Calls AbstractBindingWsdl4jDefinitionBuilder.populateBinding(Binding, PortType), creates SOAP12Binding, and calls populateSoapBinding(SOAP12Binding).

Overrides:
populateBinding in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
binding - the WSDL4J Binding
portType - the corresponding PortType
Throws:
WSDLException - in case of errors

populateSoapBinding

protected void populateSoapBinding(javax.wsdl.extensions.soap12.SOAP12Binding soapBinding)
                            throws WSDLException
Deprecated. 
Called after the SOAP12Binding has been created. Default implementation sets the binding style to "document", and set the transport URI to the value set on this builder. Subclasses can override this behavior.

Parameters:
soapBinding - the WSDL4J SOAP12Binding
Throws:
WSDLException - in case of errors
See Also:
SOAP12Binding.setStyle(String), SOAP12Binding.setTransportURI(String), setTransportUri(String), DEFAULT_TRANSPORT_URI

populateBindingOperation

protected void populateBindingOperation(BindingOperation bindingOperation,
                                        Operation operation)
                                 throws WSDLException
Deprecated. 
Calls AbstractBindingWsdl4jDefinitionBuilder.populateBindingOperation(BindingOperation, Operation), creates a SOAP12Operation, and calls populateSoapOperation(SOAP12Operation).

Overrides:
populateBindingOperation in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
bindingOperation - the WSDL4J BindingOperation
operation - the corresponding WSDL4J Operation
Throws:
WSDLException - in case of errors

populateSoapOperation

protected void populateSoapOperation(javax.wsdl.extensions.soap12.SOAP12Operation soapOperation)
                              throws WSDLException
Deprecated. 
Called after the SOAP12Operation has been created.

Default implementation set the SOAPAction uri to an empty string.

Parameters:
soapOperation - the WSDL4J SOAP12Operation
Throws:
WSDLException - in case of errors
See Also:
SOAP12Operation.setSoapActionURI(String)

populateBindingInput

protected void populateBindingInput(BindingInput bindingInput,
                                    Input input)
                             throws WSDLException
Deprecated. 
Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).

Overrides:
populateBindingInput in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
bindingInput - the WSDL4J BindingInput
input - the corresponding WSDL4J Input
Throws:
WSDLException - in case of errors

populateBindingOutput

protected void populateBindingOutput(BindingOutput bindingOutput,
                                     Output output)
                              throws WSDLException
Deprecated. 
Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).

Overrides:
populateBindingOutput in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
bindingOutput - the WSDL4J BindingOutput
output - the corresponding WSDL4J Output
Throws:
WSDLException - in case of errors

populateBindingFault

protected void populateBindingFault(BindingFault bindingFault,
                                    Fault fault)
                             throws WSDLException
Deprecated. 
Creates a SOAP12Body, and calls populateSoapBody(SOAP12Body).

Overrides:
populateBindingFault in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
bindingFault - the WSDL4J BindingFault
fault - the corresponding WSDL4J Fault
Throws:
WSDLException - in case of errors

populateSoapBody

protected void populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body soapBody)
                         throws WSDLException
Deprecated. 
Called after the SOAP12Body has been created. Default implementation sets the use style to "literal". Subclasses can override this behavior.

Parameters:
soapBody - the WSDL4J SOAP12Body
Throws:
WSDLException - in case of errors
See Also:
SOAP12Body.setUse(String)

populateSoapFault

protected void populateSoapFault(BindingFault bindingFault,
                                 javax.wsdl.extensions.soap12.SOAP12Fault soapFault)
                          throws WSDLException
Deprecated. 
Called after the SOAP12Fault has been created. Default implementation sets the use style to "literal", and sets the name equal to the binding fault. Subclasses can override this behavior.

Parameters:
bindingFault - the WSDL4J BindingFault
soapFault - the WSDL4J SOAPFault
Throws:
WSDLException - in case of errors
See Also:
SOAP12Fault.setUse(String)

populatePort

protected void populatePort(Port port,
                            Binding binding)
                     throws WSDLException
Deprecated. 
Creates a SOAP12Address, and calls populateSoapAddress(SOAP12Address).

Overrides:
populatePort in class AbstractBindingWsdl4jDefinitionBuilder
Parameters:
port - the WSDL4J Port
binding - the corresponding WSDL4J Binding
Throws:
WSDLException - in case of errors

populateSoapAddress

protected void populateSoapAddress(javax.wsdl.extensions.soap12.SOAP12Address soapAddress)
                            throws WSDLException
Deprecated. 
Called after the SOAP12Address has been created. Default implementation sets the location URI to the value set on this builder. Subclasses can override this behavior.

Parameters:
soapAddress - the WSDL4J SOAPAddress
Throws:
WSDLException - in case of errors
See Also:
SOAP12Address.setLocationURI(String), setLocationUri(String)

createSoapExtension

protected ExtensibilityElement createSoapExtension(Class parentType,
                                                   String localName)
                                            throws WSDLException
Deprecated. 
Creates a SOAP 1.2 extensibility element.

Parameters:
parentType - a class object indicating where in the WSDL definition this extension will exist
localName - the local name of the extensibility element
Returns:
the extensibility element
Throws:
WSDLException - in case of errors
See Also:
ExtensionRegistry.createExtension(Class,javax.xml.namespace.QName)

Spring Web Services Framework

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