Hi guys,
I was trying to get an XML document the site:
http://nds1.nds.nokia.com/uaprof/N6630r100.xml
I tried to read it:
SAXReader reader = new SAXReader();
HttpConnection conn;
DataInputStream istream = null;
conn = (HttpConnection) Connector.open(profile);
int resp = conn.getResponseCode();
istream = conn.openDataInputStream();
Document doc = reader.read(istream);
Conn returns null when Connector.open(profile) is called. The host URL http://nds1.nds.nokia.com returns page not found, however the complete URL
http://nds1.nds.nokia.com/uaprof/N6630r100.xml has the xml info of Nokia6630.
When I tried using the URL class it throws an exception at URL url = new URL(profile); cos the host URL is not available.
Any ideas?

Reply With Quote

