Hi all,
I am working on parsing the xml feed . My xml file is in secure server
for parsin this secure xml feed i need to add certificates
i have added the certificates to my activty
but i am unable to get response from xml feed but getting ssl error
following is my code
String shopapi = "
https://api.shopvisible.com/ProductService.asmx/CreateBasicProduct?ClientName=IncipioBespoke&guid=fa63b21c-115a-e011-96ff-0026b95352bb&InboundProductXML=%3CProduct%3E%3CProductPartNo%3EBCC-IPH-5449%3C/ProductPartNo%3E%3CProductUPC%3Ebespoke%3C/ProductUPC%3E%3CProductCode%3Ebespoke%20Custom%20Case%3C/ProductCode%3E%3CName%3ECustomized%20Case%3C/Name%3E%3CBrand%3E23%3C/Brand%3E%3CSubCategory%3E1%3C/SubCategory%3E%3CImageName%3Ehttp://ncpo.cc/android/bespokecaseimages/6409072.jpg%3C/ImageName%3E%3CPrice%3E29.99%3C/Price%3E%3COrderable%3Etrue%3C/Orderable%3E%3CQuantity%3E50%3C/Quantity%3E%3CWeight%3E0.0%3C/Weight%3E%3CSubWeight%3E3%3C/SubWeight%3E%3CCustomText%3E%3C/CustomText%3E%3CXtra2%3E%3C/Xtra2%3E%3C/Product%3E
";
URL sourceUrl = new URL(shopapi);
/**
* Create handler to handle XML Tags ( extends
DefaultHandler )
*/
try {
XmlhandlerForShopapi myXMLHandler = new
XmlhandlerForShopapi();
Log.d("sdfgf", "shopapi 1" + shopapi);
xr.setContentHandler(myXMLHandler);
Log.d("sdfgf", "shopapi 2" + shopapi);
xr.parse(new InputSource(sourceUrl.openStream()));
Log.d("sdfgf", "shopapi 3" +
shopapi);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
please anyone help me
Thanks
Naveen
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en