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

java.lang.Object
  |
  +--org.apache.wsif.base.WSIFDefaultOperation
        |
        +--org.apache.wsif.providers.soap.apacheaxis.WSIFOperation_ApacheAxis
All Implemented Interfaces:
java.io.Serializable, WSIFOperation

public class WSIFOperation_ApacheAxis
extends WSIFDefaultOperation
implements WSIFOperation, java.io.Serializable

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

Constructor Summary
WSIFOperation_ApacheAxis(WSIFPort_ApacheAxis wsifport_apacheaxis, javax.wsdl.Operation operation1, WSIFDynamicTypeMap wsifdynamictypemap)
           
 
Method Summary
 WSIFOperation_ApacheAxis copy()
          Create a new copy of this object.
 java.lang.String deep()
           
 void executeInputOnlyOperation(WSIFMessage wsifmessage)
          Execute an input-only operation.
 WSIFCorrelationId executeRequestResponseAsync(WSIFMessage input)
          Performs a request response operation asynchronously.
 WSIFCorrelationId executeRequestResponseAsync(WSIFMessage input, WSIFResponseHandler handler)
          Performs a request response operation asynchronously.
 boolean executeRequestResponseOperation(WSIFMessage wsifmessage, WSIFMessage wsifmessage1, WSIFMessage wsifmessage2)
          Execute a request-response operation.
 void fireAsyncResponse(java.lang.Object response)
          fireAsyncResponse is called by an AsyncListener when a response has been received for a previous executeRequestResponseAsync call.
 WSIFCorrelationId getAsyncRequestID()
           
 javax.wsdl.Definition getDefinition()
           
 WSIFPort_ApacheAxis getDynamicWSIFPort()
           
 java.lang.String getInputEncodingStyle()
           
 java.lang.String getInputNamespace()
           
 java.lang.String getName()
           
 javax.wsdl.Operation getOperation()
           
 java.lang.String getOutputEncodingStyle()
           
 java.util.List getPartNames()
           
 java.lang.String getReturnName()
           
 java.lang.String getSoapActionURI()
           
 java.lang.String getTargetNamespaceURI()
          Gets the target namespace URI of this WSIFOperation
 org.apache.axis.client.Transport getTransport()
           
 boolean invokeRequestResponseOperation(WSIFMessage wsifmessage, WSIFMessage wsifmessage1, WSIFMessage wsifmessage2)
           
 boolean isAsyncOperation()
          Tests if the currently executing request is an asynchronous request.
 boolean processAsyncResponse(java.lang.Object response, WSIFMessage output, WSIFMessage fault)
          Processes the response to an asynchronous request.
 void setDefinition(javax.wsdl.Definition definition1)
           
 void setDynamicWSIFPort(WSIFPort_ApacheAxis wsifport_apacheaxis)
           
 void setInputEncodingStyle(java.lang.String s)
           
 void setInputNamespace(java.lang.String s)
           
 void setOperation(javax.wsdl.Operation operation1)
           
 void setOutputEncodingStyle(java.lang.String s)
           
 void setPartNames(java.util.List list)
           
 void setReturnName(java.lang.String s)
           
 void setSoapActionURI(java.lang.String s)
           
 
Methods inherited from class org.apache.wsif.base.WSIFDefaultOperation
addInputJmsPropertyValues, createFaultMessage, createFaultMessage, createInputMessage, createInputMessage, createOutputMessage, createOutputMessage, getContext, getInputJmsProperties, getInputJmsPropertyValues, getOutputJmsProperties, setContext, setInputJmsProperties, setInputJmsProperties, setInputJmsPropertyValues, setOutputJmsProperties, setOutputJmsProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.wsif.WSIFOperation
createFaultMessage, createFaultMessage, createInputMessage, createInputMessage, createOutputMessage, createOutputMessage, getContext, setContext
 

Constructor Detail

WSIFOperation_ApacheAxis

public WSIFOperation_ApacheAxis(WSIFPort_ApacheAxis wsifport_apacheaxis,
                                javax.wsdl.Operation operation1,
                                WSIFDynamicTypeMap wsifdynamictypemap)
                         throws WSIFException
Method Detail

copy

public WSIFOperation_ApacheAxis copy()
                              throws WSIFException
Create a new copy of this object. This is not a clone, since it does not copy the referenced objects as well.

getDefinition

public javax.wsdl.Definition getDefinition()

getDynamicWSIFPort

public WSIFPort_ApacheAxis getDynamicWSIFPort()

getInputEncodingStyle

public java.lang.String getInputEncodingStyle()

getInputNamespace

public java.lang.String getInputNamespace()

getName

public java.lang.String getName()

getOperation

public javax.wsdl.Operation getOperation()

getOutputEncodingStyle

public java.lang.String getOutputEncodingStyle()

getPartNames

public java.util.List getPartNames()

getReturnName

public java.lang.String getReturnName()

getSoapActionURI

public java.lang.String getSoapActionURI()

getTransport

public org.apache.axis.client.Transport getTransport()

getAsyncRequestID

public WSIFCorrelationId getAsyncRequestID()

isAsyncOperation

public boolean isAsyncOperation()
Tests if the currently executing request is an asynchronous request.
Returns:
true if the current request is a asynchronous request, otherwise false

executeInputOnlyOperation

public void executeInputOnlyOperation(WSIFMessage wsifmessage)
                               throws WSIFException
Description copied from interface: WSIFOperation
Execute an input-only operation.
Specified by:
executeInputOnlyOperation in interface WSIFOperation
Overrides:
executeInputOnlyOperation in class WSIFDefaultOperation
Following copied from interface: org.apache.wsif.WSIFOperation
Parameters:
input - input message to send to the operation
Throws:
WSIFException - if something goes wrong.

executeRequestResponseAsync

public WSIFCorrelationId executeRequestResponseAsync(WSIFMessage input)
                                              throws WSIFException
Performs a request response operation asynchronously.
Specified by:
executeRequestResponseAsync in interface WSIFOperation
Overrides:
executeRequestResponseAsync in class WSIFDefaultOperation
Parameters:
input - input message to send to the operation
Returns:
the correlation ID or the request. The correlation ID is used to associate the request with the WSIFOperation.
Throws:
WSIFException - if something goes wrong.
See Also:
WSIFOperation.executeRequestResponseAsync(WSIFMessage)

executeRequestResponseAsync

public WSIFCorrelationId executeRequestResponseAsync(WSIFMessage input,
                                                     WSIFResponseHandler handler)
                                              throws WSIFException
Performs a request response operation asynchronously.
Specified by:
executeRequestResponseAsync in interface WSIFOperation
Overrides:
executeRequestResponseAsync in class WSIFDefaultOperation
Parameters:
input - input message to send to the operation
handler - the response handler that will be notified when the asynchronous response becomes available.
Returns:
the correlation ID or the request. The correlation ID is used to associate the request with the WSIFOperation.
Throws:
WSIFException - if something goes wrong.
See Also:
WSIFOperation.executeRequestResponseAsync(WSIFMessage,WSIFResponseHandler)

fireAsyncResponse

public void fireAsyncResponse(java.lang.Object response)
                       throws WSIFException
fireAsyncResponse is called by an AsyncListener when a response has been received for a previous executeRequestResponseAsync call. It passes the response to the executeAsyncResponse method of the associated WSIFResponseHandler.
Specified by:
fireAsyncResponse in interface WSIFOperation
Overrides:
fireAsyncResponse in class WSIFDefaultOperation
Parameters:
response - an Object representing the response. The response should be a JMS TextMessage containging the XML response.
See Also:
WSIFOperation.fireAsyncResponse(Object)

processAsyncResponse

public boolean processAsyncResponse(java.lang.Object response,
                                    WSIFMessage output,
                                    WSIFMessage fault)
                             throws WSIFException
Processes the response to an asynchronous request. This is called for when the asynchronous operation was initiated without a WSIFResponseHandler, that is, by calling the executeRequestResponseAsync(WSIFMessage input) method.
Specified by:
processAsyncResponse in interface WSIFOperation
Overrides:
processAsyncResponse in class WSIFDefaultOperation
Parameters:
response - an Object representing the response.
output - an empty message which will be filled in if the operation invocation succeeds. If it does not succeed, the contents of this message are undefined. (This is a return value of this method.)
fault - an empty message which will be filled in if the operation invocation fails. If it succeeds, the contents of this message are undefined. (This is a return value of this method.)
Returns:
true or false indicating whether a fault message was generated or not. The truth value indicates whether the output or fault message has useful information.

executeRequestResponseOperation

public boolean executeRequestResponseOperation(WSIFMessage wsifmessage,
                                               WSIFMessage wsifmessage1,
                                               WSIFMessage wsifmessage2)
                                        throws WSIFException
Description copied from interface: WSIFOperation
Execute a request-response operation. The signature allows for input, output and fault messages. WSDL in fact allows one to describe the set of possible faults an operation may result in, however, only one fault can occur at any one time.
Specified by:
executeRequestResponseOperation in interface WSIFOperation
Overrides:
executeRequestResponseOperation in class WSIFDefaultOperation
Following copied from interface: org.apache.wsif.WSIFOperation
Parameters:
op - name of operation to execute
input - input message to send to the operation
output - an empty message which will be filled in if the operation invocation succeeds. If it does not succeed, the contents of this message are undefined. (This is a return value of this method.)
fault - an empty message which will be filled in if the operation invocation fails. If it succeeds, the contents of this message are undefined. (This is a return value of this method.)
Returns:
true or false indicating whether a fault message was generated or not. The truth value indicates whether the output or fault message has useful information.
Throws:
WSIFException - if something goes wrong.

invokeRequestResponseOperation

public boolean invokeRequestResponseOperation(WSIFMessage wsifmessage,
                                              WSIFMessage wsifmessage1,
                                              WSIFMessage wsifmessage2)
                                       throws WSIFException

setDefinition

public void setDefinition(javax.wsdl.Definition definition1)

setDynamicWSIFPort

public void setDynamicWSIFPort(WSIFPort_ApacheAxis wsifport_apacheaxis)

setInputEncodingStyle

public void setInputEncodingStyle(java.lang.String s)

setInputNamespace

public void setInputNamespace(java.lang.String s)

setOperation

public void setOperation(javax.wsdl.Operation operation1)

setOutputEncodingStyle

public void setOutputEncodingStyle(java.lang.String s)

setPartNames

public void setPartNames(java.util.List list)

setReturnName

public void setReturnName(java.lang.String s)

setSoapActionURI

public void setSoapActionURI(java.lang.String s)

getTargetNamespaceURI

public java.lang.String getTargetNamespaceURI()
Gets the target namespace URI of this WSIFOperation
Returns:
the target namespace URI

deep

public java.lang.String deep()


Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.