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 BOURLON Agnès <ag...@yahoo.fr> on 2002/10/10 18:25:47 UTC
Custom fault
Hello,
I would like to generate a fault envelope like this one (with an object
serialized in XML in <detail> tag) :
Is it possible with Axis?
I tryed to serialize in xml the object Myfaultdetails before setting the
setFaultDetailString().. and the the xml tags are encoding like this :
<message>
Thanks in advance for help.
Agnes
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<e:myfaultdetails xmlns:e="Some-URI">
<message>
My application didn't work
</message>
<errorcode>
1001
</errorcode>
</e:myfaultdetails>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com