1 Reply Latest reply on Jun 28, 2017 4:55 PM by pchung RSS
    rsalunkhe Explorer

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

    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

      • Re: How can I post/send my xml file to another url?
        pchung Collaborator

        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)