You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Paul Duffy <pa...@cisco.com> on 2001/03/22 19:13:21 UTC
Xerces 1.3.1 / SOAP 2.1 won't work together....
Hello All,
Many have discovered that Xerces 1.3.1 and Apache SOAP 2.1 will not
function together. We have to go all the way back to xerces 1.2.1 to
successfully operate SOAP 2.1.
SOAP API is reporting the following error due to XML parsing problems...
SOAPException=SOAP-ENV:Client, A
''http://schemas.xmlsoap.org/soap/envelope/:Fault" element must contain a
: "faultcode" element.
There appears to be two problems.
1. Parser can not resolve the xsd namespace URI in the request XML.
2. Parser can't parse the Fault info in the repsonse
Grateful for any assistance....
Request:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:getRate xmlns:ns1="urn:demo1:exchange"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<country1 xsi:type="xsd:string">USA</country1>
<country2 xsi:type="xsd:string">japan</country2>
</ns1:getRate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Unable to resolve namespace URI for 'xsd'.</faultstring>
<faultactor>/soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Running
J2SDK 1.3.0.02
Tomcat 3.2.1
Soap 2.1
Xerces 1.3.1
Jaf 1.0.1
Javamail 1.2
*********************************************************
Paul B Duffy paduffy@cisco.com
Cisco Systems, Inc.
********************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org