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 Lucia Sheehan <lr...@qad.com> on 2003/10/17 17:50:01 UTC
Wrong 1.1 Response on 1.2 Request when it's a SOAP Fault
I'm getting a 1.1 Soap Fault response when I send in a 1.2 Soap request -
see the soapenv below. This occurs when Axis creates the soap fault - for
example if the body of the request is invalid. I tried setting <parameter
name="SingleSOAPVersion" value="1.2"/>
to force the response version but this didn't work. Any ideas how to fix
this problem?
This is the header of the request
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2002/12/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
http://www.w3.org/2002/12/soap-envelope soap-envelope.xsd">
<soapenv:Header>
This is the response created by Axis.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1
="http://www.w3.org/2002/12/soap-envelope">ns1:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: The element type
"salesOrde1r" must be terminated by the matching end-tag "
</salesOrde1r>".</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>)
2003-10-17 15:50:38,350 DEBUG org.apache.axis.SOAPPart Exit:
SOAPPart::getAsString(): <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1
="http://www.w3.org/2002/12/soap-envelope">ns1:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXParseException: The element type
"salesOrde1r" must be terminated by the matching end-tag "
</salesOrde1r>".</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Regards
Lucia