Thanks for the reply. I set the property: Options.setExceptionToBeThrownOnSOAPFault(false), but I don't think it is being used. Specifically, since I am using a callback class, this is the code in axis2:
CallbackReceiver: SOAPFault fault = envelope.getBody().getFault(); if (fault==null) { //if there is not fault call the onComplete method callback.onComplete(result); } else { //else call the on error method with the fault AxisFault axisFault = new AxisFault(fault.getCode(), fault.getReason(), fault.getNode(), fault.getRole(), fault.getDetail()); callback.onError(axisFault); } I don't think it checks that property. However, that's not the real problem I'm getting. The envelope on the client side comes back with just the soapCode and not the Reason/Detail that I am setting on the server side. Debugging shows that the fault is preserved properly all the way up to leaving the server (I believe), but on the client side it doesn't seem to be parsing it properly. It only has the SoapFault/SoapCode not the Reason/Detail. Any ideas? In the debug logs of the client, it looks like Axiom is not building up the whole SOAPFault: 18 Oct 2006 10:24:15,803 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Code:Code 18 Oct 2006 10:24:15,819 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Value:Value 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - CHARACTERS: [soapenv:Sender] 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - END_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Value:Value 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT: {urn:us:gov:dod:espace:data-service:exception:1.0}Subcode:Subcode 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - CHARACTERS: [axis2ns1:espace.mission.default] 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - END_ELEMENT: {urn:us:gov:dod:espace:data-service:exception:1.0}Subcode:Subcode 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - END_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Code:Code 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Reason:Reason 18 Oct 2006 10:24:15,834 [HttpConnection-6060-1] DEBUG org.apache.axiom.om.impl.builder.StAXOMBuilder - END_ELEMENT: {http://www.w3.org/2003/05/soap-envelope}Reason:Reason (There should be a Detail section too right?) Thanks a lot for the help. Roshan Punnoose Phone: 301-497-6039 -----Original Message----- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 12:03 AM To: axis-user@ws.apache.org Subject: Re: SOAPFault parsing Punnoose, Roshan wrote: > Hi, > > > > I am returning a SOAPFault from my server and my client has a Callback > to retrieve everything from the server. In the onError(...) method, I > get an AxisFault, however, I only have visibility into the SOAPFaultCode > and not the Reason or the Detail. Is there something I have to do to get > this to work? The Reason and Detail are null for some reason. Thanks! > Can you see the complete fault in the incoming message, if you observe the message using TCPMon or something? If yes, did u set Options.setExceptionToBeThrownOnSOAPFault(false) ? If yes, from the callback you can get the whole SOAPEnvelope, with the fault inside the body of it, by calling AsyncResult.getResponseEnvelope() -- Eran Chinthaka
BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]