aspose file tools*
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 Spring in Action this week in the Spring 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: 12806
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: Response from the SOAP server