org.apache.wsif.providers.soap.apacheaxis
Class WSIFPort_ApacheAxis

java.lang.Object
  extended byorg.apache.wsif.base.WSIFDefaultPort
      extended byorg.apache.wsif.providers.soap.apacheaxis.WSIFPort_ApacheAxis
All Implemented Interfaces:
java.io.Serializable, WSIFPort

public class WSIFPort_ApacheAxis
extends WSIFDefaultPort

This class implements a WSDL SOAP binding using Apache AXIS. See section 3 of the WSDL 1.1 specification for details of the WSDL SOAP binding. WSIF extends this standard SOAP binding with the WSIF extensions for SOAP over JMS.

Author:
Mark Whitlock , Ant Elder
See Also:
Serialized Form

Constructor Summary
WSIFPort_ApacheAxis(javax.wsdl.Definition definition, javax.wsdl.Port port, javax.wsdl.extensions.soap.SOAPBinding soapBinding, WSIFDynamicTypeMap wsifdynamictypemap)
          Construct a new WSIFPort
 
Method Summary
 void close()
          Closes the port.
 WSIFOperation createOperation(java.lang.String operationName)
          Creates a WSIFOperation for the given operation name
 WSIFOperation createOperation(java.lang.String operationName, java.lang.String inputName, java.lang.String outputName)
          Creates a WSIFOperation for the given operation name
 java.lang.String deep()
           
 org.apache.axis.client.Transport getAxisTransport()
          Deprecated. replaced by getTransport
 javax.xml.namespace.QName getBindingName()
          Gets the QName of the WSDL Binding
 java.lang.String getBindingStyle()
          Returns the style attribute of this Binding.
 org.apache.axis.client.Call getCall()
          Gets the AXIS Call object being used by this WSIFPort
 javax.wsdl.Definition getDefinition()
          Returns the Definition object for the WSDL file
 WSIFOperation_ApacheAxis getDynamicWSIFOperation(java.lang.String opName, java.lang.String inputName, java.lang.String outputName)
          Deprecated. WSIF clients should use the createOperation methods
 java.net.URL getEndPoint()
          Returns the URL of the location attribute of the soap:address
 java.lang.Object getExtElem(java.lang.Object ctx, java.lang.Class extType, java.util.List extElems)
          Wrapper to enable WSIFOperation to use the same WSIFDefaultPort method
 java.util.List getExtElems(java.lang.Object ctx, java.lang.Class extType, java.util.List extElems)
          Wrapper to enable WSIFOperation to use the same WSIFDefaultPort method
 java.util.List getJmsAddressPropVals()
          Returns any JMS propertyValue elements in the jms:address element
 javax.wsdl.Port getPort()
          Returns the WSDL Port object this WSIFPort represents
 java.lang.String getPortTypeNamespace()
          Returns the namespace of the WSDL portType used by this Binding.
 javax.wsdl.extensions.soap.SOAPOperation getSOAPOperation(javax.wsdl.BindingOperation bindingOp)
          Gets the soap:operation WSDL element from a BindingOperation The WSDL binding operation element has the form:
 org.apache.axis.client.Transport getTransport()
          Gets the AXIS Transport object being used by this WSIFPort
 boolean isTransportHTTP()
          Tests if an HTTP transport is being used
 boolean isTransportJMS()
          Tests if a JMS transport is being used
 void setDefinition(javax.wsdl.Definition definition1)
          Deprecated. should anyone be calling this?
 void setDynamicWSIFOperation(java.lang.String s, java.lang.String s1, java.lang.String s2, WSIFOperation_ApacheAxis wsifoperation_apacheaxis)
          Deprecated. should anyone be calling this?
 void setEndPoint(java.net.URL url1)
          Deprecated. should anyone be calling this?
 void setPort(javax.wsdl.Port port1)
          Deprecated. should anyone be calling this?
 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_ApacheAxis

public WSIFPort_ApacheAxis(javax.wsdl.Definition definition,
                           javax.wsdl.Port port,
                           javax.wsdl.extensions.soap.SOAPBinding soapBinding,
                           WSIFDynamicTypeMap wsifdynamictypemap)
                    throws WSIFException
Construct a new WSIFPort

Method Detail

createOperation

public WSIFOperation createOperation(java.lang.String operationName)
                              throws WSIFException
Creates a WSIFOperation for the given operation name

Parameters:
operationName - the name of an operation in this port's portType
Returns:
WSIFOperation the WSIFOperation
Throws:
WSIFException - if there is an exception creating the WSIFOperation
See Also:
WSIFPort.createOperation(String)

createOperation

public WSIFOperation createOperation(java.lang.String operationName,
                                     java.lang.String inputName,
                                     java.lang.String outputName)
                              throws WSIFException
Creates a WSIFOperation for the given operation name

Parameters:
operationName - the name of an operation in this port's portType
inputName - the input message name
outputName - the output message name
Returns:
WSIFOperation the WSIFOperation_ApacheAxis
Throws:
WSIFException - if there is an exception creating the WSIFOperation
See Also:
WSIFPort.createOperation(String, String, String)

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 there is an exception closing the Transport

getAxisTransport

public org.apache.axis.client.Transport getAxisTransport()
                                                  throws WSIFException
Deprecated. replaced by getTransport

Throws:
WSIFException

getBindingName

public javax.xml.namespace.QName getBindingName()
Gets the QName of the WSDL Binding

Returns:
QName the name of the Binding

getBindingStyle

public java.lang.String getBindingStyle()
Returns the style attribute of this Binding.

Returns:
String the style attribute

getPortTypeNamespace

public java.lang.String getPortTypeNamespace()
Returns the namespace of the WSDL portType used by this Binding.

Returns:
String the portType namespace

getCall

public org.apache.axis.client.Call getCall()
                                    throws WSIFException
Gets the AXIS Call object being used by this WSIFPort

Returns:
Call the AXIS Call object
Throws:
WSIFException - if there is an exception creating the AXIS Call

getDefinition

public javax.wsdl.Definition getDefinition()
Returns the Definition object for the WSDL file

Returns:
Definition the WSDL4J Definition object

getDynamicWSIFOperation

public WSIFOperation_ApacheAxis getDynamicWSIFOperation(java.lang.String opName,
                                                        java.lang.String inputName,
                                                        java.lang.String outputName)
                                                 throws WSIFException
Deprecated. WSIF clients should use the createOperation methods

Throws:
WSIFException

getEndPoint

public java.net.URL getEndPoint()
Returns the URL of the location attribute of the soap:address

Returns:
URL the URL of the service location

getExtElem

public java.lang.Object getExtElem(java.lang.Object ctx,
                                   java.lang.Class extType,
                                   java.util.List extElems)
                            throws WSIFException
Wrapper to enable WSIFOperation to use the same WSIFDefaultPort method

Throws:
WSIFException
See Also:
WSIFDefaultPort#getExtElem(Object, Class, List)

getExtElems

public java.util.List getExtElems(java.lang.Object ctx,
                                  java.lang.Class extType,
                                  java.util.List extElems)
                           throws WSIFException
Wrapper to enable WSIFOperation to use the same WSIFDefaultPort method

Throws:
WSIFException
See Also:
WSIFDefaultPort#getExtElems(Object, Class, List)

getJmsAddressPropVals

public java.util.List getJmsAddressPropVals()
Returns any JMS propertyValue elements in the jms:address element

Returns:
List a List of the jms:propertyValue elements

getPort

public javax.wsdl.Port getPort()
Returns the WSDL Port object this WSIFPort represents

Returns:
Port the WSDL4J Port object

getSOAPOperation

public javax.wsdl.extensions.soap.SOAPOperation getSOAPOperation(javax.wsdl.BindingOperation bindingOp)
                                                          throws WSIFException
Gets the soap:operation WSDL element from a BindingOperation The WSDL binding operation element has the form: ... ? ...

Returns:
SOAPOperation the soap:operation element
Throws:
WSIFException - if there is no soap:operation element in the binding operation element.

getTransport

public org.apache.axis.client.Transport getTransport()
                                              throws WSIFException
Gets the AXIS Transport object being used by this WSIFPort

Returns:
Transport the AXIS Transport object
Throws:
WSIFException - if there is an exception creating the Transport

isTransportHTTP

public boolean isTransportHTTP()
Tests if an HTTP transport is being used

Returns:
boolean true if an HTTP transport is being used, otherwise false

isTransportJMS

public boolean isTransportJMS()
Tests if a JMS transport is being used

Returns:
boolean true if a JMS transport is being used, otherwise false

setDefinition

public void setDefinition(javax.wsdl.Definition definition1)
Deprecated. should anyone be calling this?


setDynamicWSIFOperation

public void setDynamicWSIFOperation(java.lang.String s,
                                    java.lang.String s1,
                                    java.lang.String s2,
                                    WSIFOperation_ApacheAxis wsifoperation_apacheaxis)
Deprecated. should anyone be calling this?


setEndPoint

public void setEndPoint(java.net.URL url1)
Deprecated. should anyone be calling this?


setPort

public void setPort(javax.wsdl.Port port1)
Deprecated. should anyone be calling this?


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.