• 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
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can i captor xml response return from http non web app

 
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all its not exactly web services but its like ...
im using WBEM
http://wbemservices.sourceforge.net/#Development
client to communicate to distant server , this is some kind of simple way
to send and receive object thorough xml ( like light version of web services ) .

im sending the requests via http with requests throw the client but i have no way to receive the xml errors that are sending
back via http response , the only way for me to get the xml response back is to sniff the network and capture the packets coming back
from the distant server , the return error are not related to the WBEM client this is simple response coming back from the server
my question is how can i capture this xml coming back from the server with java code .
my code does not run under web server , its simple application .

Thanks
 
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
Exactly how are you constructing the request?

If you are creating a URLConnection or HttpURLConnection, the getInputStream method is provided so you can get the body of the response.

Bill
 
ben josh
Ranch Hand
Posts: 620
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello

im creating the request throw the WBEM services lib client that making the http request , the problem is that i can't find any

way in that lib to catch the http response , so im looking some kind of java native way to that
 
Seriously? That's what you're going with? I prefer this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic