From: Seshadri Venkataraman [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 19, 2002 3:42 PM
To: [EMAIL PROTECTED]
Subject: SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml"
HiI 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[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285
