• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

Response from the SOAP server

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic