I am sorted now - but thanks anyway.
My problem was the CLASSPATH was not set to pickup my Server-side Servlet. Perhaps the info. in the FAQ should be changed from
The router URL you are using is incorrect or you have not started the server. Basically the problem is there's nothing listening at the host/port combination you are connecting to. Try pointing a Web browser to the router URL- you should see what's indicated in the installation tests.
to
Either the router URL you are using is incorrect or you have not started the server or the CLASSPATH is not set to pickup your SOAP Serverside Servlet. Basically the problem is there's nothing listening at the host/port combination you are connecting to or the Servlet cannot be found. To determine if the SOAP RPC Router is correct, try pointing a Web browser to the router URL- you should see what's indicated in the installation tests, if this works, then it is possible that your CLASSPATH is incorrect
Jack
Scott Nichol wrote:
What version of Apache SOAP are you using? I want to see what's happening atorg.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav a:418) Scott Nichol ----- Original Message ----- From: "Jack Byrne" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 19, 2002 12:05 PM Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content typeHello, I have registered my SOAP Service and checked with SOAP Admin using http://localhost:8080/soap/admin/index.html. My service is listedunderurn:Example1. I have checked the message Router using http://localhost:8080/soap/servlet/messagerouter and it replies SOAP Message Router Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talkto me.This is correct When I try to connect to the SOAP Service from the Client using java Example1_client http://lolalhost:8080/soap/servlet/rpcrouter Hi Example2, I get the following Client output Calling the SOAP Server to say hello The SOAP Server says: Ouch, the call failed: Fault Code = SOAP-ENV:Server Fault String = service 'urn:Example2' unknown This is fine because I do not have a Service called Example2registered.However, when I connect using java Example1_client http://lolalhost:8080/soap/servlet/rpcrouter Hi Example1 I get the below exception. From looking at the FAQs, it seems myroutingis correct. Could this mean that my Servlet is not being invoked on the Serversideor cannot be found, perhaps my CLASSPATHS are incorrect? The SOAP Server says: Exception in thread "main" [SOAPException: faultCode=SOAP- ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was: <html> <head> <title>Tomcat Exception Report</title> </head> <body bgcolor="white"> <br><br> <h1>A Servlet Exception Has Occurred</h1> <pre> javax.servlet.ServletException: Error building response envelope: java.lang.Null PointerException at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet. java:418) atjavax.servlet.http.HttpServlet.service(HttpServlet.java:760)atjavax.servlet.http.HttpServlet.service(HttpServlet.java:853)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unkn own Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Sour ce) atorg.apache.catalina.core.StandardWrapperValve.invoke(UnknownSource) atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.core.StandardPipeline.invoke(UnknownSource)at org.apache.catalina.core.ContainerBase.invoke(UnknownSource)atorg.apache.catalina.core.StandardContextValve.invoke(UnknownSource) atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.valves.CertificatesValve.invoke(Unknown Source) atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.core.StandardPipeline.invoke(UnknownSource)at org.apache.catalina.core.ContainerBase.invoke(UnknownSource)at org.apache.catalina.core.StandardContext.invoke(UnknownSource)at org.apache.catalina.core.StandardHostValve.invoke(UnknownSource)atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.valves.AccessLogValve.invoke(UnknownSource)atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.core.StandardPipeline.invoke(UnknownSource)at org.apache.catalina.core.ContainerBase.invoke(UnknownSource)at org.apache.catalina.core.StandardEngineValve.invoke(UnknownSource) atorg.apache.catalina.core.StandardPipeline.invokeNext(UnknownSource) at org.apache.catalina.core.StandardPipeline.invoke(UnknownSource)at org.apache.catalina.core.ContainerBase.invoke(UnknownSource)at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour ce) atorg.apache.catalina.connector.http.HttpProcessor.run(UnknownSource) at java.lang.Thread.run(Thread.java:536) </pre> </body> </html> ] at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:208) at org.apache.soap.rpc.Call.invoke(Call.java:255) at Example1_client.main(Example1_client.java:26) bash-2.05$-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>