File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes sending and receiving soap msg with JWSDP1.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "sending and receiving soap msg with JWSDP1.4" Watch "sending and receiving soap msg with JWSDP1.4" New topic

sending and receiving soap msg with JWSDP1.4

Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
I have the following code to send and receive soap msg.

Send request and get the response
SOAPMessage response =, destination);
where "message" is of type SOAPMessage, and destination is URL String.

Before getting the response I get the following exception:
the request gets into the server, and server sends a response and then the exception happens.

[ July 27, 2004: Message edited by: Garandi Garandi ]
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
Apparently the SAAJ implementation strictly requires a specific content-type (text/xml). You might want to repeat this question in Sun's own discussion forum for web services at

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: sending and receiving soap msg with JWSDP1.4
Similar Threads
"SAAJ0537: Invalid Content-Type" Exception
saaj problems
Internal server error in web service
JAXR problem
Exception when query the UDDI by JAXR