axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Radoslaw Adamiak <radoslaw.adam...@gmail.com>
Subject [axis2] Detail in SOAP fault
Date Thu, 10 Apr 2008 14:11:39 GMT
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


Mime
View raw message