Hi,

The method returns true if the invocation succeeds. In this case, the fault message will not contain anything useful, but the output message will. The method returns false if the invocation fails. In this case, the fault message will contain information relating to the failure and the output message will not contain any useful information.

You can extract information from a fault message just as you do with standard WSIFMessages - get the parts. In the case of a SOAP fault, the AxisFault object is a part value in the WSIF fault messager, accessed via the part name WSIFConstants.SOAP_FAULT_MSG_NAME.

Nirmal.


Anil Ambati/Raleigh/[EMAIL PROTECTED]

06/23/2003 07:12 PM
Please respond to wsif-user

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        WSIFOperation.executeRequestResponseOperation







When does this method return true and when does it return false? The
explanation given in java docs is confusing to me:

public boolean executeRequestResponseOperation(WSIFMessage input,
                                              WSIFMessage output,
                                              WSIFMessage fault)
                                       throws WSIFException
     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.
     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.

what is the best way to extract the error message embedded in fault
message.

Regards,
Anil Ambati
SDWB Development
919-254-6152
[EMAIL PROTECTED]
"You have no responsibility to live up to what other people think you ought
to accomplish." -Richard Feynman (1918-1988)
"Money is as bad as it is necessary" - Anonymous


Reply via email to