Skip to main content
1-Visitor
June 28, 2017
Question

How can I post/send my xml file to another url?

  • June 28, 2017
  • 1 reply
  • 1567 views

Hi Developers,

I want to send my xml file to another url which is in different environment(not in thingworx). How can this happen in thingworx? If answer is Postxml then can you provide smple code here.

Please reply this will very useful for me

1 reply

22-Sapphire I
June 28, 2017

I would say that PostXML would be the way to go, maybe PostText

If you look at the snippet when you bring it in, it should be fairly self-explanatory.

If you wonder about how to get the xml that you want to post.

You could 1. just hard code it var myXML = <xml here>

or 2. Perhaps pull it from a file in the file repository (you would be doing a LoadXML from the repository to get your payload)