Call Web Service from https and parse responded xml data in Java

Posted by Nirmal on Stack Overflow See other posts from Stack Overflow or by Nirmal
Published on 2010-03-12T13:15:35Z Indexed on 2010/03/12 13:17 UTC
Read the original article Hit count: 231

Filed under:
|
|

Hello All..

I need to get connect with https url, send my request schema and I will get some xml response from web service.

For https url connection I am using :

HttpURLConnection con = (HttpURLConnection)myurl.openConnection();
                con.setDoOutput(true);
                con.setDoInput(true);
                con.setUseCaches(false);
InputStream ins = con.getInputStream();
con.setRequestProperty("Content-type","text/xml");

So, from above code I am getting responded XML from server. Now my question is which would be best parser for me to parse responded xml data to my Simple Java Object.

I have goggled alot on that, and getting various solutions but I have confuse for choosing appropriate one.

if anybody have suggestion with some sample example, then please provide..

Thanks in advance...

© Stack Overflow or respective owner

Related posts about java

Related posts about xmlparser