<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Service to authenticate and POST to external system in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529792#M23175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sushant for all the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Oct 2016 15:17:42 GMT</pubDate>
    <dc:creator>ykrysko</dc:creator>
    <dc:date>2016-10-26T15:17:42Z</dc:date>
    <item>
      <title>Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529780#M23163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to ThingWorx,&amp;nbsp; and I am currently evaluating the product. I am trying to create a service in ThingWorx that will execute upon certain alert on a thing and post alert content to an external system via external system's REST API. With that, does ThingWorx offer a client lib like XMLHttpRequest for javascripting, or how do one normally handles authentication and GET/POST requests to external web APIs in ThingWorx?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2016 18:31:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529780#M23163</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-21T18:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529781#M23164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuriy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should look at Snippets / ContentLoaderFunctions there you will find GET ( GetJSON, GetText,.. ), PUT ( PutJSON, PutText,... ) , POST and DELETE Calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 08:04:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529781#M23164</guid>
      <dc:creator>CarlesColl</dc:creator>
      <dc:date>2016-10-22T08:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529782#M23165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Carles! This worked out well. However, one more question arises: it seems like &lt;EM&gt;PostJSON&lt;/EM&gt; snippet does not honor optional &lt;STRONG&gt;headers&lt;/STRONG&gt; (JSON) parameter. At least I am not seeing any headers coming to my web server, when I specify them in the ThingWorx snippet and then try to trace them on my web server side. I wonder if I am doing something wrong, or maybe it's a bug. &lt;SPAN style="font-size: 10pt;"&gt;Thanks again.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2016 18:12:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529782#M23165</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-22T18:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529783#M23166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuriy,&lt;/P&gt;&lt;P&gt;Extending on Carles's response you can also check the &lt;A href="http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/index.jspx?id=thingworx10&amp;amp;action=show"&gt;ThingWorx REST API&lt;/A&gt; documentation if you haven't already examples on &lt;A href="http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/index.jspx?id=thingworx1002&amp;amp;action=show"&gt;Updating, Deleting and Executing&lt;/A&gt;&amp;nbsp; and also for the best practices needed when you are considering the REST API&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 09:35:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529783#M23166</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-24T09:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529784#M23167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know sorry, you will need to dig by yourself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:30:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529784#M23167</guid>
      <dc:creator>CarlesColl</dc:creator>
      <dc:date>2016-10-24T12:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529785#M23168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuriy, are these parameters set to null or empty?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:34:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529785#M23168</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-24T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529786#M23169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your responses! So, I am setting headers parameter to one of my variables, named &lt;STRONG&gt;headers, &lt;/STRONG&gt;which contains JSON-encoded value of headers string.&lt;STRONG&gt; &lt;/STRONG&gt;But it has no effect, headers come empty to the web server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var params = {&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;proxyScheme: undefined /* STRING */,&lt;/P&gt;&lt;P&gt; headers: headers /* JSON */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;ignoreSSLErrors: true /* BOOLEAN */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;useNTLM: false /* BOOLEAN */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;workstation: undefined /* STRING */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;useProxy: false /* BOOLEAN */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;withCookies: true /* BOOLEAN */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;proxyHost: undefined /* STRING */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;url: me.baseURL+me.srURL /* STRING */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;content: sr_dto /* JSON */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;timeout: 60 /* NUMBER */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;proxyPort: undefined /* INTEGER */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;password: undefined /* STRING */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;domain: undefined /* STRING */,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/SPAN&gt;username: undefined /* STRING */&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;// result: JSON&lt;/P&gt;&lt;P&gt;var result = Resources["ContentLoaderFunctions"].PostJSON(params);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:47:50 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529786#M23169</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-24T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529787#M23170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just so i understand correctly which of these params come up empty? How are you setting it? While debugging it in the browser have you noted any errors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be aware that ThingWorx REST API does not accept null parameter values (see below data types to which this is applied) and return Unable to To Parse JSON Request error 406 Not Acceptable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BLOB, BOOLEAN, DATETIME, IMAGE, INFOTABLE, INTEGER, LOCATION, LONG, JSON, NUMBER, QUERY, TAGS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 14:46:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529787#M23170</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-24T14:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529788#M23171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for response. The task that I am doing is very simple. I am creating a service, which uses &lt;STRONG&gt;PostJSON&lt;/STRONG&gt; snippet. Above, I have posted the parameters that I am using. I apologize if I was not clear enough: I am posting from ThingWorx to a 3rd-party system (not to ThingWorx). Also, I am not using any &lt;STRONG&gt;null&lt;/STRONG&gt; values, but leaving the as &lt;STRONG&gt;undefined,&lt;/STRONG&gt; if I do not have any value for them. My main problem is that no matter what I put as &lt;STRONG&gt;headers&lt;/STRONG&gt; /*JSON*/ (JSON-enconded string) input parameter for &lt;STRONG&gt;PostJSON&lt;/STRONG&gt; function, HTTP request headers come empty to my other system from ThingWorx. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 15:17:12 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529788#M23171</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-24T15:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529789#M23172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yuriy for sharing the details. Have you checked the debugger for any possible hints there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:34:26 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529789#M23172</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-25T13:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529790#M23173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Thank you all! After trying different things what worked for me was grabbing the cookie that I had received during authentication and setting it in my subsequent requests in the headers&amp;nbsp; as "Cookie" and not "Set-Cookie" (like browsers do), and then converting it to JSON payload, as below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var json = &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;me.Authenticate();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;var cookie = {"Content-Type":"application/json","Cookie": json["_cookies"]}; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;var headers = JSON.stringify(cookie);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;........ etc.......&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also believe this link might have some answers &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://support.ptc.com/apps/solution_preview/solution/lang/presolution?lang=en&amp;amp;n=CS245905" rel="nofollow"&gt;https://support.ptc.com/apps/solution_preview/solution/lang/presolution?lang=en&amp;amp;n=CS245905&lt;/A&gt;&lt;SPAN&gt; but, unfortunately, I cannot see it at the moment, as I don't have support account. Still evaluating Thigworx...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 03:37:51 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529790#M23173</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-26T03:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529791#M23174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yuriy, here's what the resolution contains for that article, (BTW could you try creating an account on support.ptc.com under ThingWorx if you haven't already)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Cookies are sent to a service as a string of key-value pairs that are passed in as part of the HTTP Request headers.&lt;UL style="margin: 10px 0 10px 2.5em; background-position: initial; list-style: disc;"&gt;&lt;LI style="background-position: initial;"&gt;They use the format "key1=value1; key2=value2;..."&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;In order to send a cookie to a service using the ContentLoaderFunctions.PostJSON service, a "Cookie" header needs to be defined.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: open_sansregular, sans-serif; font-size: 14px;"&gt;Example Code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="cs ckeditor_codeblock hljs" style="margin: 1.2em 0 1em 40px; padding: 0.5em; font-size: 11.375px; background: #f8f8ff; color: #000000;"&gt;&lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;// Define the headers that need to be sent with our service call&lt;/SPAN&gt; &lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;// The "Cookie" header passes in a semi-colon separated list of cookies (attribute=value pairs)&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; headers = {&lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"Cookie"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"JSESSIONID=AB12397DCFB2342;myCookie=value123"&lt;/SPAN&gt;};&amp;nbsp; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;params&lt;/SPAN&gt; = { headers: headers &lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;/* JSON */&lt;/SPAN&gt;, url: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/Services/MyService" rel="nofollow"&gt;http://myserver.com/Services/MyService&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;/* STRING */&lt;/SPAN&gt;, };&amp;nbsp; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; result = Resources[&lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"ContentLoaderFunctions"&lt;/SPAN&gt;].PostJSON(&lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;params&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: open_sansregular, sans-serif; font-size: 14px;"&gt;Similarly, other headers can be added to the JSON request by adding additional attributes in the JSON object:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="cs ckeditor_codeblock hljs" style="margin-top: 1.2em; margin-bottom: 1em; padding: 0.5em; font-size: 11.375px; background: #f8f8ff;"&gt;&lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;// Define all headers to be included with the request&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; headers = { &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"Cookie"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"JSESSIONID=AB12397DCFB2342;myCookie=value123"&lt;/SPAN&gt;, &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"Content-Type"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"application/json"&lt;/SPAN&gt;, &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"appKey"&lt;/SPAN&gt;: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"a4823bdc48555aff"&lt;/SPAN&gt; };&amp;nbsp; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;params&lt;/SPAN&gt; = { headers: headers &lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;/* JSON */&lt;/SPAN&gt;, url: &lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myserver.com/Services/MyService" rel="nofollow"&gt;http://myserver.com/Services/MyService&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="hljs-comment" style="background: transparent; color: #408080; font-style: italic;"&gt;/* STRING */&lt;/SPAN&gt; };&amp;nbsp; &lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;var&lt;/SPAN&gt; result = Resources[&lt;SPAN class="hljs-string" style="background: transparent; color: #219161;"&gt;"ContentLoaderFunctions"&lt;/SPAN&gt;].PostJSON(&lt;SPAN class="hljs-keyword" style="background: transparent; color: #954121;"&gt;params&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 14:29:36 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529791#M23174</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2016-10-26T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Service to authenticate and POST to external system</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529792#M23175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sushant for all the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2016 15:17:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Service-to-authenticate-and-POST-to-external-system/m-p/529792#M23175</guid>
      <dc:creator>ykrysko</dc:creator>
      <dc:date>2016-10-26T15:17:42Z</dc:date>
    </item>
  </channel>
</rss>

