cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Problem while creating a service to consume an xml web page

fmanniti
9-Granite

Problem while creating a service to consume an xml web page

Hi, I am following the course and I'm right now at the capter 3 "Connecting to External Data Sources with ThingWorx 6.5"; when I have to create a Service to consume an xml web page I have some issue:


I'm following the guide

  • Type ACMEV in the spotlight search field.
  • Select AcmeVendingCorp.
  • Click the Services link.
  • Click the Add My Service button.
  • Type GetThingWorxFeed in the Name field.
  • Type This service will retrieve the ThingWorx RSS Feed in the Description field.
  • Select the Inputs/Outputs tab.
  • Type Resulting Table in the Description field.
  • Click the Base Type drop-down list to expand it.
  • Select INFOTABLE.
  • Select the Snippets tab.
  • Click under the left-most scroll bar to scroll down to ContentLoaderFunctions.
  • Select ContentLoaderFunctions.
  • Click the Add button for the GetXML snippet.
  • Edit the URL parameter line to url: "http://www.ptc.com/feed/press",
  • Click the Done button.
  • Click the Save button.

Then I'm supposed to go on http://www.ptc.com/feed/press with my browser but it redirects me on the page www.ptc.com/news; I can't see any xml.

Plus, if I go further to the end, according to the video, I should see this message

Unable To Convert From com.sun.org.apache.xerces.internal.dom.DocumentImpl to INFOTABLE



​but what I see is:

Wrapped org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; DOCTYPE non è consentito se la funzione "http://apache.org/xml/features/disallow-doctype-decl" è impostata su true. Cause: DOCTYPE non è consentito se la funzione "http://apache.org/xml/features/disallow-doctype-decl" è impostata su true.

May you help me to understand where the problem is?

5 REPLIES 5
Aanjan
9-Granite
(To:fmanniti)

Fabio, the URL posted there does not work anymore. You would have to use different RSS feeds. Here's a thread posted by Scott and here's one more posted by Adam that has alternative links.

fmanniti
9-Granite
(To:Aanjan)

Thank you

Those links result in a message of "Access to this place or content is restricted." Can you provide links that work for public users or reproduce the content here?

cazares
6-Contributor
(To:fmanniti)

I Know this is very late, but I found a feed that you can use:

https://www.nasa.gov/rss/dyn/breaking_news.rss

In case someone is having the same problem, it helped me complete the training course.

Top Tags