*
The moose likes Web Services and the fly likes Handling response not contained in Soap envelope [JAX-WS] 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 "Handling response not contained in Soap envelope [JAX-WS]" Watch "Handling response not contained in Soap envelope [JAX-WS]" New topic
Author

Handling response not contained in Soap envelope [JAX-WS]

Mayank Soni
Greenhorn

Joined: Oct 05, 2009
Posts: 3
I am calling web service which accepts request as per soap protocol but response is not contained in soap:envelope.The service responds with plain xml.
As a result i m getting exception "First Element must contain the local name, Envelope ". how one can deal with such services in JAX-WS

Please Help.

Thanks in advance
Mayank
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
See section 9.4 in my SCDJWS 5 study notes document, which you can download here: http://www.javaforum.se/jforum/posts/list/549.page
Complete example with web service and client, all developed with JAX-WS (Metro in GlassFish).
Best wishes!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Handling response not contained in Soap envelope [JAX-WS]
 
Similar Threads
new to soap web service
Can't generate java classes from WSDL file
JAX-WS generated client request missing SOAP body
Reading soap header
Is it possible to intercept a message ?