You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by "Lele, Prashant" <Pr...@airbus.com> on 2003/06/05 14:35:19 UTC

Unsupported response content type "text/html", must be "text/xml"

Hi,

I'am stuck at a point where my Soap service running on the client gives the
following message:

Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type
"text/html", must be: "text/xml". Response was:
<HTML>
<HEAD><TITLE>Bad request</TITLE></HEAD>
<BODY>
Content type must be: 'text/xml'.
</BODY>
</HTML>

The RPC Router throws the following exception:

2003/06/05-11:01:07.934#:#fid027#:#fid028.servlet#:#[SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Content type must be: 'text/xml'.]
        at
com.infoengine.soap.SoapRPCRouter$RequestDispatcher.run(SoapRPCRouter.java:4
05)
        at com.infoengine.soap.SoapRPCRouter.doPost(SoapRPCRouter.java:345)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
etRunner.java:891)
        at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
064)
        at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
r.java:953)

The Web Server I'am using is Iplanet Enterprise Edition 6.0. The SOAP RPC
servlet has been configured properly. The required
jar files (soap.jar,mail.jar,activation.jar,xerces.jar) are present in the
CLASSPATH of the embedded servlet engine. Additionally, I tried
to add the path of the SoapRPCRouter to the above classpath without any
success.

Also, I tried editing the mime types on the Web Server so that it recognizes
the 'text/xml' content type but this dosen't seem to work either.

I would like to know how to resolve this issue.

Best Regards,
Prashant

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

Re: Unsupported response content type "text/html", must be "text/xml"

Posted by Scott Nichol <sn...@scottnichol.com>.
What are you using as a client?  It does not seem to be setting the 
HTTP Content-Type header to text/xml.

On 5 Jun 2003 at 13:35, Lele, Prashant wrote:

> Hi,
> 
> I'am stuck at a point where my Soap service running on the client gives the
> following message:
> 
> Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type
> "text/html", must be: "text/xml". Response was:
> <HTML>
> <HEAD><TITLE>Bad request</TITLE></HEAD>
> <BODY>
> Content type must be: 'text/xml'.
> </BODY>
> </HTML>
> 
> The RPC Router throws the following exception:
> 
> 2003/06/05-11:01:07.934#:#fid027#:#fid028.servlet#:#[SOAPException:
> faultCode=SOAP-ENV:Protocol; msg=Content type must be: 'text/xml'.]
>         at
> com.infoengine.soap.SoapRPCRouter$RequestDispatcher.run(SoapRPCRouter.java:4
> 05)
>         at com.infoengine.soap.SoapRPCRouter.doPost(SoapRPCRouter.java:345)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at
> com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServl
> etRunner.java:891)
>         at
> com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1
> 064)
>         at
> com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunne
> r.java:953)
> 
> The Web Server I'am using is Iplanet Enterprise Edition 6.0. The SOAP RPC
> servlet has been configured properly. The required
> jar files (soap.jar,mail.jar,activation.jar,xerces.jar) are present in the
> CLASSPATH of the embedded servlet engine. Additionally, I tried
> to add the path of the SoapRPCRouter to the above classpath without any
> success.
> 
> Also, I tried editing the mime types on the Web Server so that it recognizes
> the 'text/xml' content type but this dosen't seem to work either.
> 
> I would like to know how to resolve this issue.
> 
> Best Regards,
> Prashant
> 
> This e-mail is intended only for the above addressee. It may contain
> privileged information. If you are not the addressee you must not copy,
> distribute, disclose or use any of the information in it. If you have
> received it in error please delete it and immediately notify the sender.
> Security Notice: all e-mail, sent to or from this address, may be
> accessed by someone other than the recipient, for system management and
> security reasons. This access is controlled under Regulation of
> Investigatory Powers Act 2000, Lawful Business Practises.
> 


Scott Nichol

Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.