File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark ""SAAJ0537: Invalid Content-Type" Exception" Watch ""SAAJ0537: Invalid Content-Type" Exception" New topic
Author

"SAAJ0537: Invalid Content-Type" Exception

Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
Hi All,

I am using SAAJ and JAXM API implementations. When I send request soap message to the service I am getting back response soap message from the service but the client is abnormally terminating with exception "SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message". The details are hereunder.

Can anyone please tell me why I am getting this exception. As you see my client and service soap message consrtruction, I am using the same soap message for sending and receiving. Also, I see there are some junk characters like "179", "0" in my response soap message. I dont why they are generated by JAXM/SAAJ API








MessageReceiver.java
---------------------------------------------------------------------------





Response SOAP Message
---------------------------------------------------------------------------







Exception on Client Side
---------------------------------------------------------------------------







Thanks & Regards,


RR Kumaran
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "SAAJ0537: Invalid Content-Type" Exception