Call Web Service from https and parse responded xml data in Java
- by Nirmal
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...