You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Radoslaw Adamiak <ra...@gmail.com> on 2008/04/10 16:11:39 UTC
[axis2] Detail in SOAP fault
Hi
I want to send detail info in SOAP fault message.
Then only method in AxisFault class is setDedail(OMElement). But then,
my message looks e.g. like this:
...
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Authentication failed.</faultstring>
<detail>
<b:myDetail xmlns:b="MyServiceNS">
<b:code>4</b:code>
<b:message>Given authId is not valid.</b:message>
</b:myDetail>
</detail>
</soapenv:Fault>
</soapenv:Body>
...
but I want to hold my detail in this way (namespaces can be omit):
...
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>Authentication failed.</faultstring>
<detail>
<b:code xmlns:b="MyServiceNS">4</b:code>
<b:message xmlns:b="MyServiceNS">Given authId is not valid.</b:message>
</detail>
</soapenv:Fault>
</soapenv:Body>
...
without my OMElement (in this case "myDetail") that I need to pass to
setDetail(...) method.
Is it possible using AxisFault class?
getDetail() returns null. Is it a bug? Why getDetail() doesn't return
SOAP detail element?
If it would be like this, then there is no problem to compose messege
as I want.
BR
--
zolv
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org