SOAPFault question. Missing faultString
---------------------------------------

                 Key: AXIS2-3231
                 URL: https://issues.apache.org/jira/browse/AXIS2-3231
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
    Affects Versions: 1.2
            Reporter: james chan


When an error is thrown from the server, the following is created right before 
an AxisFault is thrown:

 

<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>

       <faultcode xmlns:m="http://someuri.org";>m:FaultException</faultcode>

       <faultstring>Test my exception</faultstring>

       <detail>Not sure why this is not 
working<Exception>java.lang.NullPointerException&#xd;

       ...

       ...

       ...

       </detail>

</soapenv:Fault>

 

However, this is what the client sees on the response object via TCPMON:

 

       <soapenv:Body>

             <soapenv:Fault>

                    <faultcode 
xmlns:m="http://someuri.org";>soapenv:Client</faultcode>

                    <faultstring>unknown</faultstring>

                    <detail>Not sure why this is not 
working<Exception>java.lang.NullPointerException&#xd;

       ...

       ...

       ...

                    </detail>

             </soapenv:Fault>

       </soapenv:Body>

 

 

Question: 

1)       Why is the text within <faultcode> tag lost? Why does it not read 
m:FaultException? Why does it read soapenv:Client?

2)       Simiarly, why do I lose the text within <faultstring>? Why is the text 
"unknown" seen rather than "Test my exception"?

                                

I would really appreciate any help you can offer. Thanks

 

 

 

Axis version: Axis 2.0 version 1.2

Java version: Java 1.5

Client: C# NET 2.0  WSE 3.0

Server: JBoss Application server 4.0.5GA



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to