You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@xml.apache.org by Ma...@ccc.fi on 2001/05/11 13:24:56 UTC

Unable to resolve namespace URI for 'xsd'

Hi,


I tried a simple 'hello' application with Apache SOAP 2.1 and Tomcat 3.2.1, but
with no success. The TCP monitor tool in Apache SOAP displayed the following
messages:

-----
SOAP REQUEST:

POST /apache-soap/servlet/rpcrouter HTTP/1.0
Host: localhost:8070
Content-Type: text/xml; charset=utf-8
Content-Length: 446
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:sayHelloTo xmlns:ns1="urn:Hello" SOAP-ENV:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/">
<name xsi:type="xsd:string">User12345</name>
</ns1:sayHelloTo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

-----
SOAP RESPONSE:

HTTP/1.0 400 Bad Request
Content-Type: text/xml; charset=utf-8
Content-Length: 479
Set-Cookie2: JSESSIONID=tnggy9yzg1;Version=1;Discard;Path="/apache-soap"
Set-Cookie: JSESSIONID=tnggy9yzg1;Path=/apache-soap
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
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>/apache-soap/servlet/rpcrouter</faultactor>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

-----

Does anyone know, why the server returns the

          Unable to resolve namespace URI for 'xsd'.

fault string?



yours,

   Matti Virtala



Re: Unable to resolve namespace URI for 'xsd'

Posted by Scott Nichol <sn...@computer.org>.
Possible culprit: if you use the 2.1 release of Apache SOAP, you must use
Xerces 1.3.0 or earlier.  Also, be certain to follow the SOAP installation
instructions for modifying the Tomcat classpath.

Scott

----- Original Message -----
From: <Ma...@ccc.fi>
To: <so...@xml.apache.org>
Sent: Friday, May 11, 2001 7:24 AM
Subject: Unable to resolve namespace URI for 'xsd'


> Hi,
>
>
> I tried a simple 'hello' application with Apache SOAP 2.1 and Tomcat
3.2.1, but
> with no success. The TCP monitor tool in Apache SOAP displayed the
following
> messages:
>
> -----
> SOAP REQUEST:
>
> POST /apache-soap/servlet/rpcrouter HTTP/1.0
> Host: localhost:8070
> Content-Type: text/xml; charset=utf-8
> Content-Length: 446
> 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:sayHelloTo xmlns:ns1="urn:Hello" SOAP-ENV:encodingStyle="
> http://schemas.xmlsoap.org/soap/encoding/">
> <name xsi:type="xsd:string">User12345</name>
> </ns1:sayHelloTo>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> -----
> SOAP RESPONSE:
>
> HTTP/1.0 400 Bad Request
> Content-Type: text/xml; charset=utf-8
> Content-Length: 479
> Set-Cookie2: JSESSIONID=tnggy9yzg1;Version=1;Discard;Path="/apache-soap"
> Set-Cookie: JSESSIONID=tnggy9yzg1;Path=/apache-soap
> Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
> 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>/apache-soap/servlet/rpcrouter</faultactor>
> </SOAP-ENV:Fault>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
>
> -----
>
> Does anyone know, why the server returns the
>
>           Unable to resolve namespace URI for 'xsd'.
>
> fault string?
>
>
>
> yours,
>
>    Matti Virtala
>
>
>