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 Roman Rorat <ro...@martquest.com> on 2000/12/04 03:51:30 UTC

text/html?

I have downloaded the latest soap.jar for the apache site and as a result I
am getting the following exception when executing a basic client that uses
'call.envoke'. It looks like the soap does not set the content type to
text/xml as it should. But why?

Roman

[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported content type
"text/
html", must be: "text/xml" or "multipart/related"]
        at
org.apache.soap.transport.TransportMessage.read(TransportMessage.java
:191)
        at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java, Compiled
Code
)
        at
org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
tion.java:155)
        at org.apache.soap.rpc.Call.invoke(Call.java:151)
        at
com.martquest.webservice.translation.TranslatorProxy.isSupported(Tran
slatorProxy.java:94)
        at
com.martquest.webservice.translation.TranslationClient.main(Translati
onClient.java:14)