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

How to load an xml file from the system in the script. I tried:

SOLVED
Highlighted
Newbie

How to load an xml file from the system in the script. I tried:

var params = {

url:"file://C:/Users/ShaurabhKumar/Documents/MATLAB/AGENT.xml",

timeout:160

};

Got Error:

Wrapped org.apache.http.client.ClientProtocolException Cause: null

I am trying to read an xml file on my system.

Is there any other way to do the same?

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to load an xml file from the system in the script. I tried:

Uploaded file would only be a snapshot.

if you have something that is updating the XML file continuously, if you can, you could post the incremental updates to Thingworx using either the Edge MicroServer or the REST API

View solution in original post

5 REPLIES 5
Highlighted

Re: How to load an xml file from the system in the script. I tried:

Not sure if that is possible, could be a variety of reasons, I recommend you create a mashup and do an upload of the file to a repository and process it from there.

Highlighted

Re: How to load an xml file from the system in the script. I tried:

Yes I believe that would be one way of doing it. But what if the xml file keeps updating with time(real time data). If i store it in the repository would it simply store a version of it?

Highlighted

Re: How to load an xml file from the system in the script. I tried:

Uploaded file would only be a snapshot.

if you have something that is updating the XML file continuously, if you can, you could post the incremental updates to Thingworx using either the Edge MicroServer or the REST API

View solution in original post

Highlighted

Re: How to load an xml file from the system in the script. I tried:

Hi Pai,

Since i am new to this, Could you please guide me towards a tutorial perhaps or some sort of help for implementing REST API in thingworx? Since i need to read an xml from my system through the service javascript. or perhaps you could guide me through the steps.

Thank you

Highlighted

Re: How to load an xml file from the system in the script. I tried:

Thingworx Fundamentals has a section on this.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!