*
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 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 "sending and receiving soap msg with JWSDP1.4" Watch "sending and receiving soap msg with JWSDP1.4" New topic
Author

sending and receiving soap msg with JWSDP1.4

Garandi Garandi
Ranch Hand

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

Send request and get the response
SOAPMessage response = connection.call(message, 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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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 forum.java.sun.com.


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