You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Singleton, Owen" <ow...@csg.ch> on 2001/01/16 16:23:53 UTC

Slighlty different content type error with new soap-nightly.jar

Dug,

I grabbed the new soap.jar and have gotten a new, certainly more verbose error.  I've attached the command line output and the request.

Thanks for your support!

Owen

-----------------------------------------------------------
command line error
------------------------------------------------------------

[osinglet@luxdev mime]$ java samples.mime.MimeTestClient $SOAP_URL sendFile NYUDiploma.jpg
Caught SOAPException (SOAP-ENV:Protocol): Unsupported response content type "text/html", must be: "text/xml". Response was:
<h1>Error: 500</h1>
<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br><pre>javax.servlet.ServletException: Error building response envelope: java.io.IOException: Message is empty!
	at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:337)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
</pre>


[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<h1>Error: 500</h1>
<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet Error:</b><br><pre>javax.servlet.ServletException: Error building response envelope: java.io.IOException: Message is empty!
	at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:337)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
</pre>

]
	at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
	at org.apache.soap.rpc.Call.invoke(Call.java:210)
	at samples.mime.MimeTestClient.main(MimeTestClient.java:155)

-------------------------------------------------------------------------------
Request Message
------------------------------------------------------------------------------

POST /soap/servlet/rpcrouter HTTP/1.0 
Host: localhost:8010 
Content-Type: multipart/related; ; type="text/xml"; start="3708984.979661619847.apache-soap.osinglet.luxdev" 
Content-Length: 73622 
SOAPAction: ""  

------=_Part_0_6631688.979661619693 
Content-Type: text/xml; charset=utf-8 
Content-Transfer-Encoding: 8bit Content-ID: <3708984.979661619847.apache-soap.osinglet.luxdev> Content-Length: 427  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP-ENV:Body>
<ns1:sendFile xmlns:ns1="urn:mimetest" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<addedfile href ="cid:558937.979661619682.apache-soap.osinglet.luxdev"/>
</ns1:sendFile>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> ------=_Part_0_6631688.979661619693 Content-Type: image/jpeg Content-Transfer-Encoding: 8bit Content-ID: <558937.979661619682.apache-soap.osinglet.luxdev> Content-Length: 72772

This message is for the named person's use only.  It may contain 
confidential, proprietary or legally privileged information.  No 
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify the
sender.  You must not, directly or indirectly, use, disclose, distribute, 
print, or copy any part of this message if you are not the intended 
recipient. CREDIT SUISSE GROUP and each of its subsidiaries each reserve
the right to monitor all e-mail communications through its networks.  Any
views expressed in this message are those of the individual sender, except
where the message states otherwise and the sender is authorised to state 
them to be the views of any such entity.