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 Seshadri Venkataraman <se...@oracle.com> on 2002/01/20 21:40:11 UTC
Re: SOAP-ENV:Protocol; msg=Unsupported response content type
"text/html", must be: "text/xml"
I don't see any problem with my request.
I also get the following error message on the soap server side - Any
hint is appreciated.
java.lang.NullPointerException
at
org.apache.soap.server.SOAPFaultRouter.notifyListeners(SOAPFaultRouter.java:101)
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:304)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at
com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)
at
com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)
at
com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
at
com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
at
com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62)
thanks
Seshadri
William Brogden wrote:
> -----Original Message-----
> From: Seshadri Venkataraman [mailto:seshadri.venkataraman@oracle.com]
> Sent: Saturday, January 19, 2002 3:42 PM
> To: soap-user@xml.apache.org
> Subject: SOAP-ENV:Protocol; msg=Unsupported response content type
> "text/html", must be: "text/xml"
>
>
> Hi
>
> I get the following exception when trying some basic
> examples using SOAP.
>
> [SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported
> response content type "text/html", must be: "text/xml".
> Response was:
>
> That message is generated by your client because the soap
> server threw a null pointer exception so your client got a
> HTML error message instead of XML SOAP message.
>
> possibly due to a malformed SOAP request message??
>
> <HTML><HEAD><TITLE>500 Internal Server
> Error</TITLE></HEAD><BODY><H1>500 Internal Server
> Error</H1><PRE>Servlet error: Error building response
> envelope:
> java.lang.NullPointerException</PRE></BODY></HTML></BODY></HTML>
>
> ]
> at java.lang.Throwable.fillInStackTrace(Native
> Method)
> at java.lang.Throwable.fillInStackTrace(Compiled
> Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Exception.<init>(Exception.java:42)
> at
> org.apache.soap.SOAPException.<init>(SOAPException.java:71)
> at
> org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)
> at org.apache.soap.rpc.Call.invoke(Call.java:212)
> at myexamples.CDAdder.add(CDAdder.java:34)
> at myexamples.CDAdder.main(CDAdder.java:67)
>
> thanks
> Seshadri
>
>
> wbrogden@bga.com
> Author of Soap Programming with Java - Sybex; ISBN:
> 0782129285
>
>