AXIS2 codegen ignore faultstring when generating Exception objects.
--------------------------------------------------------------------
Key: AXIS2-5265
URL: https://issues.apache.org/jira/browse/AXIS2-5265
Project: Axis2
Issue Type: Bug
Components: codegen
Affects Versions: 1.6.1
Reporter: Sagara Gunathunga
Assignee: Sagara Gunathunga
Priority: Critical
Fix For: 1.7.0
Consider following method that throws a Exception and SOAP message on wire.
public void throwException(String message) throws MyException{
throw new MyException(
"An exception thrown at ExceptionThrower with the message "
+ message);
}
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>An exception thrown at ExceptionThrower with the message
message1</faultstring>
<detail>
<ns:SimpleServiceMyException xmlns:ns="http://adobe29.sample">
<MyException xsi:type="ax21:MyException"
xmlns="http://adobe29.sample" xmlns:ax21="http://adobe29.sample/xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</ns:SimpleServiceMyException>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
In client side it's not possible to see above faultstring message and losings
important details return by the server.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]