• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Junilu Lacar
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • 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)?
Kiran Devaram
Kansas State University
Author and all-around good cowpoke
Posts: 13078
  • 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.
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic