• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
We can walk to school together. And we can both read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic