PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Parsing XML Web Result

edited Dec 1, 2017 6:53AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 3 commentsAnswered ✓

I am trying to get distance data from MapQuest using the ParseXmlFromURL method.

The URL I am using works as it returns an XML string, if I type it into my browser.  However using the following line of code - generates an exception:

   Local string &sMapQuest_URL;

   Local XmlDoc &inXMLDoc;

   Local boolean &ret;

    &sMapQuest_URL = "myURL"

   &inXMLDoc = CreateXmlDoc("");

   &ret = &inXMLDoc.ParseXmlFromURL(&sMapQuest_URL);

 

Here is my error:

XML parser error CreateXmlDoc Fatal Error: at file   line: 0  column: 0  message: An exception occurred! Type:NetAccessorException, Message:Could not open file: http://open.mapquestapi.com/directions/v2/alternateroutes?key=mysecretkey&from=11069 Bailey Road,RavennaFatal

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center