You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Paul Duffy <pa...@cisco.com> on 2001/03/20 23:36:23 UTC

Tomcat problems resolving URIs and parsing...

Following Graham Glass's examples at DeveloperWorks...

http://www-106.ibm.com/developerworks/webservices/library/ws-peer2/?dwzone=
ws

Sample client reports the following error:

SOAPException=SOAP-ENV:Client, A
''http://schemas.xmlsoap.org/soap/envelope/:Fault" element must contain a
: "faultcode" element.

TCP tunnel diagnostic reports the following...

POST /soap/servlet/rpcrouter HTTP/1.0
Host: localhost:8070
Content-Type: text/xml; charset=utf-8
Content-Length: 501
SOAPAction: ""

<?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>


HTTP/1.0 400 Bad Request
Content-Type: text/xml; charset=utf-8
Content-Length: 472
Set-Cookie2: JSESSIONID=2np2a3c101;Version=1;Discard;Path="/soap"
Set-Cookie: JSESSIONID=2np2a3c101;Path=/soap Servlet-Engine: Tomcat Web 
Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0_02; Windows NT 4.0 x86; 
java.vendor=Sun Microsystems Inc.)

<?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>


I have no idea what the problem is.  Two questions...

1. Why can't tomcat resolve the xsd namespace URI.
2. Why can't the client parse the resulting faultcode.

Running

J2SDK 1.3.0.02
Tomcat 3.2.1
Soap 2.1
Xerces 1.3.1
Jaf 1.0.1
Javamail 1.2


Cheers,


*********************************************************
Paul B Duffy                paduffy@cisco.com
Cisco Systems, Inc.
********************************************************