This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes Response from the SOAP server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Response from the SOAP server" Watch "Response from the SOAP server" New topic
Author

Response from the SOAP server

Kiran Kumar
Ranch Hand

Joined: Jan 06, 2003
Posts: 91
Dear All,
In my quest to make a client communicate with a SOAP server in a SOAP-free manner, I am at a point where I can create my own XMLPayload as request(thereby saving maximum time a SOAP client spends) and sending it over HTTP. But once I get the response from the server, I am unable to process it and extract the required element.
I get a XML document as response from server. Can anyone tell me how to process it using place java(without using SOAP)?
Thanks,
Kiran Devaram
Kansas State University


------------<br />SCJP
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12809
    
    5
If you are indeed getting a well formed XML document back from the server, then all standard XML processing techniques are available to you. You can treat the input stream from the response just like any other input stream and create a DOM or do SAX processing. If you are using SDK 1.4 you already have the required classes.
For minimum overhead you could just grab the whole thing to a String and search for the opening element tag.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Response from the SOAP server