Hi,

(I'm using axis2-1.4.1 due to jdk-1.4 requirement)

In an axis2-client, i need to replace the SOAPEnvelope from within a
In-Fault Handler.
But i'm getting the next exception:

java.lang.IllegalArgumentException: The MessageContext does not have
an associated SOAPFault.
        at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:521)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)



By comparing the
OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
rev1.4.1  <--> 'trunk'
i see that the code has been modified for supporting RM which requires
the same thing
(to replace SOAPEnv from within handler),
and the SOAPEnvelope is re-read after handler-chain, right before
deciding whether it is a fault.

Here is the source-code from the trunk that is missing in rev1.4.1:

    // rampart handlers change the envelope and set the decrypted envelope
    // so need to check the new one else resenvelope.hasFault() become false.
    resenvelope = responseMessageContext.getEnvelope();

* Does anybody know of any workround to acomplish the same thing
without patching axis2?
(replace a faulty SOAPEnv from within handler)


Thank you in Advance
  Kostis Anagnostopoulos

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to