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 p....@almerys.com on 2007/08/08 14:30:21 UTC
[Axis2] Setting faultactor tag in soap fault 1.1
Hello,
I'm trying to generate complete SOAPFault 1.1. Using AxisFault
constructor, I always get the same fault message tags:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client.Header</faultcode>
<faultstring>Header couldn't be validated against the
xsd</faultstring>
<detail>
<Exception>ClientException
</Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
The problem is that I would like to have the faultactor tag as well.
Reading at the documentation, I understand that if I want faultactor tag
in SOAP1.1 I have to set the faultNode. The mapping SOAP12 <-> SOAP11 in
the javadoc seems to indicate that
So when I'm building the AxisFault, I'm calling:
new AxisFault(theCode, theMessage, theActor, "discarded in SOAPFault 1.1",
theOMElement)
When I'm calling getFaultNode, the actor is correctly set.
What am I missing to get the tag in the response?
Thanks in advance,
Pierre