You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Wai Chan <wl...@mail.ucf.edu> on 2001/04/23 21:20:56 UTC

Install Apache SOAP

Hi,

I try to install SOAP 2.1 in Tomcat 3.2.1. I can deploy a service through Apache SOAP. However, when the Java client to invoke the method through RouterServlet. The below message is returned. I am not sure what went wrong. 

Someone mentions it may causes by servlet cannot find the services. How do I specific the service path in Deploy profile so that it find it (currently Provider Class : Exchange)?

Thank you.

Sammy

----------- <Request>

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>



-------------- <Response>

  URL= http://localhost:8080/soap/servlet/rpcrouter
  URN =urn:demo1:exchange
SOAPException= SOAP-ENV:Protocol, Unsupported response content type "text/html",
 must be: "text/xml". Response was:
<h1>Error: 500</h1>
<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br><pre
>javax.servlet.ServletException: Error building response envelope: java.lang.Nul
lPointerException
        at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled Code)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
        at org.apache.tomcat.core.Handler.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
        at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(Compiled Code)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)
</pre>


―----------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Install Apache SOAP

Posted by Iwan Tantra <ta...@infoskape.com>.
I'm also experiencing the same problem with SOAP 2.1 on Tomcat 3.2.1, but not SOAP 2.0 which
worked fine. Does anyone know how to solve this problem?

Thanks,
Iwan



Wai Chan wrote:

> Hi,
>
> I try to install SOAP 2.1 in Tomcat 3.2.1. I can deploy a service through Apache SOAP. However, when the Java client to invoke the method through RouterServlet. The below message is returned. I am not sure what went wrong.
>
> Someone mentions it may causes by servlet cannot find the services. How do I specific the service path in Deploy profile so that it find it (currently Provider Class : Exchange)?
>
> Thank you.
>
> Sammy
>
> ----------- <Request>
>
> 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>
>
> -------------- <Response>
>
>   URL= http://localhost:8080/soap/servlet/rpcrouter
>   URN =urn:demo1:exchange
> SOAPException= SOAP-ENV:Protocol, Unsupported response content type "text/html",
>  must be: "text/xml". Response was:
> <h1>Error: 500</h1>
> <h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br><pre
> >javax.servlet.ServletException: Error building response envelope: java.lang.Nul
> lPointerException
>         at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(Compiled Code)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
>         at org.apache.tomcat.core.Handler.service(Compiled Code)
>         at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
>         at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>         at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(Compiled Code)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
> </pre>
>
> ¯----------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org


Re: Install Apache SOAP

Posted by Iwan Tantra <ta...@infoskape.com>.
I'm also experiencing the same problem with SOAP 2.1 on Tomcat 3.2.1, but not SOAP 2.0 which
worked fine. Does anyone know how to solve this problem?

Thanks,
Iwan



Wai Chan wrote:

> Hi,
>
> I try to install SOAP 2.1 in Tomcat 3.2.1. I can deploy a service through Apache SOAP. However, when the Java client to invoke the method through RouterServlet. The below message is returned. I am not sure what went wrong.
>
> Someone mentions it may causes by servlet cannot find the services. How do I specific the service path in Deploy profile so that it find it (currently Provider Class : Exchange)?
>
> Thank you.
>
> Sammy
>
> ----------- <Request>
>
> 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>
>
> -------------- <Response>
>
>   URL= http://localhost:8080/soap/servlet/rpcrouter
>   URN =urn:demo1:exchange
> SOAPException= SOAP-ENV:Protocol, Unsupported response content type "text/html",
>  must be: "text/xml". Response was:
> <h1>Error: 500</h1>
> <h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br><pre
> >javax.servlet.ServletException: Error building response envelope: java.lang.Nul
> lPointerException
>         at org.apache.soap.server.http.RPCRouterServlet.doPost(Compiled Code)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(Compiled Code)
>         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
> 04)
>         at org.apache.tomcat.core.Handler.service(Compiled Code)
>         at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
>         at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
>         at org.apache.tomcat.core.ContextManager.service(Compiled Code)
>         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
> n(Compiled Code)
>         at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
>         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
>         at java.lang.Thread.run(Compiled Code)
> </pre>
>
> ¯----------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
> For additional commands, email: soap-user-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org