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 Jack Byrne <jb...@aol.com> on 2002/12/19 18:05:08 UTC

SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Hello,

I have registered my SOAP Service and checked with SOAP Admin using 
http://localhost:8080/soap/admin/index.html. My service is listed under 
urn: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 talk to 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 Example2 registered.

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 my routing 
is correct.

Could this mean that my Servlet is not being invoked on the Server side 
or 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 
&quot;text/html&quot;, must
be: &quot;text/xml&quot;. Response was:
<html>
<head>
<title>Tomcat Exception Report</title>
</head>
<body bgcolor=&quot;white&quot;>
<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)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.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)
        at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContextValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.valves.CertificatesValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
        at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
Source)
        at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
        at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
        at 
org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
ce)
        at org.apache.catalina.connector.http.HttpProcessor.run(Unknown 
Source)
        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$


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Scott Nichol <sn...@scottnichol.com>.
If the problem was that your servlet was not in the CLASSPATH, the
message you were getting would not contain a stack dump from an
exception thrown from RPCRouterServlet.

In any case, glad to hear you are up and running.

Scott Nichol

----- Original Message -----
From: "Jack Byrne" <jb...@aol.com>
To: <so...@xml.apache.org>
Sent: Friday, December 20, 2002 4:11 AM
Subject: Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
response content type


> Hi Scott,
>
> 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
>
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install
>./*
>
> 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,
>
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install
>/* /*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 at
> >
> >
>
>org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.ja
v
> >a:418)
> >
> >Scott Nichol
> >
> >----- Original Message -----
> >From: "Jack Byrne" <jb...@aol.com>
> >To: <so...@xml.apache.org>
> >Sent: Thursday, December 19, 2002 12:05 PM
> >Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
> >response content type
> >
> >
> >
> >
> >>Hello,
> >>
> >>I have registered my SOAP Service and checked with SOAP Admin using
> >>http://localhost:8080/soap/admin/index.html. My service is listed
> >>
> >>
> >under
> >
> >
> >>urn: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 talk
> >>
> >>
> >to 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 Example2
> >>
> >>
> >registered.
> >
> >
> >>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 my
> >>
> >>
> >routing
> >
> >
> >>is correct.
> >>
> >>Could this mean that my Servlet is not being invoked on the Server
> >>
> >>
> >side
> >
> >
> >>or 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
> >>&quot;text/html&quot;, must
> >>be: &quot;text/xml&quot;. Response was:
> >><html>
> >><head>
> >><title>Tomcat Exception Report</title>
> >></head>
> >><body bgcolor=&quot;white&quot;>
> >><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)
> >>        at
> >>
> >>
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >
> >
> >>        at
> >>
> >>
> >javax.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)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardContextValve.invoke(Unknown
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at
org.apache.catalina.valves.CertificatesValve.invoke(Unknown
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.StandardContext.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.StandardHostValve.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> >>
> >>
> >
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Sour
> >>ce)
> >>        at
> >>
> >>
> >org.apache.catalina.connector.http.HttpProcessor.run(Unknown
> >
> >
> >>Source)
> >>        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:
<ma...@xml.apache.org>
> >For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
> >
> >
>
>


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Scott Nichol <sn...@scottnichol.com>.
If the problem was that your servlet was not in the CLASSPATH, the
message you were getting would not contain a stack dump from an
exception thrown from RPCRouterServlet.

In any case, glad to hear you are up and running.

Scott Nichol

----- Original Message -----
From: "Jack Byrne" <jb...@aol.com>
To: <so...@xml.apache.org>
Sent: Friday, December 20, 2002 4:11 AM
Subject: Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
response content type


> Hi Scott,
>
> 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
>
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install
>./*
>
> 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,
>
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install
>/* /*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 at
> >
> >
>
>org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.ja
v
> >a:418)
> >
> >Scott Nichol
> >
> >----- Original Message -----
> >From: "Jack Byrne" <jb...@aol.com>
> >To: <so...@xml.apache.org>
> >Sent: Thursday, December 19, 2002 12:05 PM
> >Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
> >response content type
> >
> >
> >
> >
> >>Hello,
> >>
> >>I have registered my SOAP Service and checked with SOAP Admin using
> >>http://localhost:8080/soap/admin/index.html. My service is listed
> >>
> >>
> >under
> >
> >
> >>urn: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 talk
> >>
> >>
> >to 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 Example2
> >>
> >>
> >registered.
> >
> >
> >>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 my
> >>
> >>
> >routing
> >
> >
> >>is correct.
> >>
> >>Could this mean that my Servlet is not being invoked on the Server
> >>
> >>
> >side
> >
> >
> >>or 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
> >>&quot;text/html&quot;, must
> >>be: &quot;text/xml&quot;. Response was:
> >><html>
> >><head>
> >><title>Tomcat Exception Report</title>
> >></head>
> >><body bgcolor=&quot;white&quot;>
> >><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)
> >>        at
> >>
> >>
> >javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >
> >
> >>        at
> >>
> >>
> >javax.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)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardContextValve.invoke(Unknown
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at
org.apache.catalina.valves.CertificatesValve.invoke(Unknown
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.StandardContext.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.StandardHostValve.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
org.apache.catalina.core.StandardEngineValve.invoke(Unknown
> >>
> >>
> >
> >
> >
> >>Source)
> >>        at
> >>
> >>
> >org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> >
> >
> >>Source)
> >>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
> >>
> >>
> >Source)
> >
> >
> >>        at
> >>org.apache.catalina.connector.http.HttpProcessor.process(Unknown
Sour
> >>ce)
> >>        at
> >>
> >>
> >org.apache.catalina.connector.http.HttpProcessor.run(Unknown
> >
> >
> >>Source)
> >>        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:
<ma...@xml.apache.org>
> >For additional commands, e-mail:
<ma...@xml.apache.org>
> >
> >
> >
> >
>
>


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Jack Byrne <jb...@aol.com>.
Hi Scott,

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 
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install>./*

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, 
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install>/* /*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 at
>
>
>org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
>a:418)
>
>Scott Nichol
>
>----- Original Message -----
>From: "Jack Byrne" <jb...@aol.com>
>To: <so...@xml.apache.org>
>Sent: Thursday, December 19, 2002 12:05 PM
>Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
>response content type
>
>
>  
>
>>Hello,
>>
>>I have registered my SOAP Service and checked with SOAP Admin using
>>http://localhost:8080/soap/admin/index.html. My service is listed
>>    
>>
>under
>  
>
>>urn: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 talk
>>    
>>
>to 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 Example2
>>    
>>
>registered.
>  
>
>>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 my
>>    
>>
>routing
>  
>
>>is correct.
>>
>>Could this mean that my Servlet is not being invoked on the Server
>>    
>>
>side
>  
>
>>or 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
>>&quot;text/html&quot;, must
>>be: &quot;text/xml&quot;. Response was:
>><html>
>><head>
>><title>Tomcat Exception Report</title>
>></head>
>><body bgcolor=&quot;white&quot;>
>><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)
>>        at
>>    
>>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>  
>
>>        at
>>    
>>
>javax.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)
>>        at
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(Unknown
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardContext.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardHostValve.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
>>    
>>
>
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
>>ce)
>>        at
>>    
>>
>org.apache.catalina.connector.http.HttpProcessor.run(Unknown
>  
>
>>Source)
>>        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:   <ma...@xml.apache.org>
>For additional commands, e-mail: <ma...@xml.apache.org>
>
>
>  
>


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Jack Byrne <jb...@aol.com>.
Hi Scott,

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 
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install>./*

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, 
<http://xml.apache.org/soap/docs/trouble/install/index.html#test-install>/* /*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 at
>
>
>org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
>a:418)
>
>Scott Nichol
>
>----- Original Message -----
>From: "Jack Byrne" <jb...@aol.com>
>To: <so...@xml.apache.org>
>Sent: Thursday, December 19, 2002 12:05 PM
>Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
>response content type
>
>
>  
>
>>Hello,
>>
>>I have registered my SOAP Service and checked with SOAP Admin using
>>http://localhost:8080/soap/admin/index.html. My service is listed
>>    
>>
>under
>  
>
>>urn: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 talk
>>    
>>
>to 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 Example2
>>    
>>
>registered.
>  
>
>>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 my
>>    
>>
>routing
>  
>
>>is correct.
>>
>>Could this mean that my Servlet is not being invoked on the Server
>>    
>>
>side
>  
>
>>or 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
>>&quot;text/html&quot;, must
>>be: &quot;text/xml&quot;. Response was:
>><html>
>><head>
>><title>Tomcat Exception Report</title>
>></head>
>><body bgcolor=&quot;white&quot;>
>><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)
>>        at
>>    
>>
>javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>  
>
>>        at
>>    
>>
>javax.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)
>>        at
>>    
>>
>org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardContextValve.invoke(Unknown
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardContext.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardHostValve.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
>>    
>>
>
>  
>
>>Source)
>>        at
>>    
>>
>org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>  
>
>>Source)
>>        at org.apache.catalina.core.StandardPipeline.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at org.apache.catalina.core.ContainerBase.invoke(Unknown
>>    
>>
>Source)
>  
>
>>        at
>>org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
>>ce)
>>        at
>>    
>>
>org.apache.catalina.connector.http.HttpProcessor.run(Unknown
>  
>
>>Source)
>>        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:   <ma...@xml.apache.org>
>For additional commands, e-mail: <ma...@xml.apache.org>
>
>
>  
>


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Scott Nichol <sn...@scottnichol.com>.
What version of Apache SOAP are you using?  I want to see what's
happening at


org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:418)

Scott Nichol

----- Original Message -----
From: "Jack Byrne" <jb...@aol.com>
To: <so...@xml.apache.org>
Sent: Thursday, December 19, 2002 12:05 PM
Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
response content type


> Hello,
>
> I have registered my SOAP Service and checked with SOAP Admin using
> http://localhost:8080/soap/admin/index.html. My service is listed
under
> urn: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 talk
to 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 Example2
registered.
>
> 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 my
routing
> is correct.
>
> Could this mean that my Servlet is not being invoked on the Server
side
> or 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
> &quot;text/html&quot;, must
> be: &quot;text/xml&quot;. Response was:
> <html>
> <head>
> <title>Tomcat Exception Report</title>
> </head>
> <body bgcolor=&quot;white&quot;>
> <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)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at
javax.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)
>         at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown

> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at
> org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
> ce)
>         at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown
> Source)
>         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$
>
>


Re: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type

Posted by Scott Nichol <sn...@scottnichol.com>.
What version of Apache SOAP are you using?  I want to see what's
happening at


org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.jav
a:418)

Scott Nichol

----- Original Message -----
From: "Jack Byrne" <jb...@aol.com>
To: <so...@xml.apache.org>
Sent: Thursday, December 19, 2002 12:05 PM
Subject: SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
response content type


> Hello,
>
> I have registered my SOAP Service and checked with SOAP Admin using
> http://localhost:8080/soap/admin/index.html. My service is listed
under
> urn: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 talk
to 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 Example2
registered.
>
> 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 my
routing
> is correct.
>
> Could this mean that my Servlet is not being invoked on the Server
side
> or 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
> &quot;text/html&quot;, must
> be: &quot;text/xml&quot;. Response was:
> <html>
> <head>
> <title>Tomcat Exception Report</title>
> </head>
> <body bgcolor=&quot;white&quot;>
> <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)
>         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at
javax.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)
>         at
org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardContextValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.valves.CertificatesValve.invoke(Unknown
> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.valves.AccessLogValve.invoke(Unknown
Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown

> Source)
>         at
org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
> Source)
>         at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
>         at org.apache.catalina.core.ContainerBase.invoke(Unknown
Source)
>         at
> org.apache.catalina.connector.http.HttpProcessor.process(Unknown Sour
> ce)
>         at
org.apache.catalina.connector.http.HttpProcessor.run(Unknown
> Source)
>         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$
>
>