File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Response from the SOAP server

 
Kiran Kumar
Ranch Hand
Posts: 91
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13047
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic