org.apache.wsif.providers.soap.apachesoap
Class WSIFPort_ApacheSOAP

java.lang.Object
  extended by org.apache.wsif.base.WSIFDefaultPort
      extended by org.apache.wsif.providers.soap.apachesoap.WSIFPort_ApacheSOAP
All Implemented Interfaces:
java.io.Serializable, WSIFPort

public class WSIFPort_ApacheSOAP
extends WSIFDefaultPort

This is Apache SOAP dynamic WSIF port that is driven by WSDL.

Author:
Alekander Slominski, Owen Burroughs , Ant Elder , Jeremy Hughes , Mark Whitlock
See Also:
Serialized Form

Constructor Summary
WSIFPort_ApacheSOAP(javax.wsdl.Definition def, javax.wsdl.Service service, javax.wsdl.Port port, WSIFDynamicTypeMap typeMap, java.lang.String partSerName)
          Create dynamic port instance from WDL model defintion and port.
 
Method Summary
 void close()
          Closes the port.
 WSIFOperation createOperation(java.lang.String operationName)
          Create a new WSIFOperation.
 WSIFOperation createOperation(java.lang.String operationName, java.lang.String inputName, java.lang.String outputName)
          Create a new WSIFOperation.
static org.apache.soap.encoding.SOAPMappingRegistry createSOAPMappingRegistry(org.apache.soap.rpc.Call call)
           
 java.lang.String deep()
           
 org.apache.soap.rpc.Call getCall()
           
 javax.wsdl.Definition getDefinition()
           
 WSIFOperation_ApacheSOAP getDynamicWSIFOperation(java.lang.String name, java.lang.String inputName, java.lang.String outputName)
           
 java.net.URL getEndPoint()
           
 java.lang.String getPartSerializerName()
          Gets the partSerializerName.
 javax.wsdl.Port getPort()
           
 org.apache.soap.encoding.SOAPMappingRegistry getSOAPMappingRegistry()
           
 org.apache.soap.transport.SOAPTransport getSOAPTransport()
           
 void setDefinition(javax.wsdl.Definition value)
           
 void setDynamicWSIFOperation(java.lang.String name, java.lang.String inputName, java.lang.String outputName, WSIFOperation_ApacheSOAP value)
           
 void setEndPoint(java.net.URL url)
           
 void setPartSerializerName(java.lang.String partSerializerName)
          Sets the partSerializerName.
 void setPort(javax.wsdl.Port value)
           
 void setSOAPTransport(org.apache.soap.transport.SOAPTransport st)
           
 boolean supportsAsync()
          Tests if this port supports asynchronous calls to operations.
 
Methods inherited from class org.apache.wsif.base.WSIFDefaultPort
finalize, getContext, setContext, supportsSync
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSIFPort_ApacheSOAP

public WSIFPort_ApacheSOAP(javax.wsdl.Definition def,
                           javax.wsdl.Service service,
                           javax.wsdl.Port port,
                           WSIFDynamicTypeMap typeMap,
                           java.lang.String partSerName)
                    throws WSIFException
Create dynamic port instance from WDL model defintion and port.

NOTE: this constructor is doing full initialization therefore after dynamic port is created overhead of executing operation should be as small as possible for dynamic case...

Throws:
WSIFException
Method Detail

createSOAPMappingRegistry

public static org.apache.soap.encoding.SOAPMappingRegistry createSOAPMappingRegistry(org.apache.soap.rpc.Call call)

getCall

public org.apache.soap.rpc.Call getCall()

getSOAPMappingRegistry

public org.apache.soap.encoding.SOAPMappingRegistry getSOAPMappingRegistry()

getEndPoint

public java.net.URL getEndPoint()

setEndPoint

public void setEndPoint(java.net.URL url)

getSOAPTransport

public org.apache.soap.transport.SOAPTransport getSOAPTransport()

setSOAPTransport

public void setSOAPTransport(org.apache.soap.transport.SOAPTransport st)

getDefinition

public javax.wsdl.Definition getDefinition()

setDefinition

public void setDefinition(javax.wsdl.Definition value)

getPort

public javax.wsdl.Port getPort()

setPort

public void setPort(javax.wsdl.Port value)

setDynamicWSIFOperation

public void setDynamicWSIFOperation(java.lang.String name,
                                    java.lang.String inputName,
                                    java.lang.String outputName,
                                    WSIFOperation_ApacheSOAP value)

createOperation

public WSIFOperation createOperation(java.lang.String operationName)
                              throws WSIFException
Description copied from interface: WSIFPort
Create a new WSIFOperation. There must be exactly one operation in this port's portType with this name. For overloaded operations see WSIFPort.createOperation(String,String,String).

Parameters:
operationName - the name of an operation in this port's portType
Returns:
the new WSIFOperation
Throws:
WSIFException - if something goes wrong

createOperation

public WSIFOperation createOperation(java.lang.String operationName,
                                     java.lang.String inputName,
                                     java.lang.String outputName)
                              throws WSIFException
Description copied from interface: WSIFPort
Create a new WSIFOperation. There must be an operation in this port's portType with this operation name, input message name and output message name. The input message name distinguishes overloaded operations.

Parameters:
operationName - the name of an operation in this port's portType
inputName - the input message name
outputName - the output message name
Returns:
the new WSIFOperation
Throws:
WSIFException - if something goes wrong

getDynamicWSIFOperation

public WSIFOperation_ApacheSOAP getDynamicWSIFOperation(java.lang.String name,
                                                        java.lang.String inputName,
                                                        java.lang.String outputName)
                                                 throws WSIFException
Throws:
WSIFException

getPartSerializerName

public java.lang.String getPartSerializerName()
Gets the partSerializerName.

Returns:
Returns a String

setPartSerializerName

public void setPartSerializerName(java.lang.String partSerializerName)
Sets the partSerializerName.

Parameters:
partSerializerName - The partSerializerName to set

close

public void close()
           throws WSIFException
Closes the port. All methods are invalid after calling this method.

Specified by:
close in interface WSIFPort
Overrides:
close in class WSIFDefaultPort
Throws:
WSIFException - if something goes wrong

supportsAsync

public boolean supportsAsync()
Tests if this port supports asynchronous calls to operations.

Specified by:
supportsAsync in interface WSIFPort
Overrides:
supportsAsync in class WSIFDefaultPort
Returns:
true if the port is using a JMS transport, otherwise false

deep

public java.lang.String deep()


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.