3 Replies Latest reply on Feb 23, 2016 6:49 AM by veronicamih RSS
    kkabak Newbie

    Predictive weather mashup exercise

    Hello,

     

    I am having trouble with the 2 services which get the weather information from open weather and yahoo weather site. I have implemented them just like in the tutorials, but I´m receiving the following error codes:

     

    [context: com.thingworx.webservices.context.HttpExecutionContext@511e1e46][message: Execution error in service script [WeatherThing GetYahooWeatherInformation] : Wrapped org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. Cause: Content is not allowed in prolog.]

     

    [context: com.thingworx.webservices.context.HttpExecutionContext@6b492dd3][message: Execution error in service script [WeatherThing GetOpenWeatherForecastData] : Wrapped java.net.MalformedURLException: no protocol: api.openweathermap.org/data/2.5/weather?lat=39.0&lon=-111.0&units=imperial&type=accurate&mode=xml Cause: no protocol: api.openweathermap.org/data/2.5/weather?lat=39.0&lon=-111.0&units=imperial&type=accurate&mode=xml]

     

    Can you please advise?

     

    Two days ago the services were functional and I did not change anything.

     

    Enclosed you can find the project files.

     

    Thank you,

     

    Kübra Kabak