aspose file tools*
The moose likes Web Services and the fly likes Error in Simple Client-Server sending SOAP messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error in Simple Client-Server sending SOAP messages" Watch "Error in Simple Client-Server sending SOAP messages" New topic
Author

Error in Simple Client-Server sending SOAP messages

chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

I'm started reading the following tutorial to come up with a simple Client Server that sends SOAP messages. I'm getting the following error:
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?

I'm using apache tomcat - 6.0.32. I have also attached my log file. I have spent almost 3 hrs on it, but couldnt find what went wrong. The following is my code:

SOAPClient.java


SOAPServer.java


web.xml


LOG:



Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

The problem is solved. The problem was with missing jar's. I had them in my classpath, but i forgot to add them in my Tomcat/lib folder.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in Simple Client-Server sending SOAP messages
 
Similar Threads
webservice using servlet
"SAAJ0537: Invalid Content-Type" Exception
Soap response contains wsdl
Servlet using SAAJ and HTTP Authorization Header
Saaj attachments through HttpServlet