<?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 Hi Varun, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071544#M58360</link>
    <description>&lt;P&gt;Hi Varun,&lt;/P&gt;

&lt;P&gt;You may use jquery ajax, something like this:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;
	$.ajax({
		type:'POST', 
		url: 'http://localhost:3000/endpoint',
		data: '{"email":"'+mail+'", "password":"'+pass+'"}',
		dataType: "json",
		success: function (response) {
                   //use response on success
                   console.log('success');
		},
		error: function (response) {
		   console.log('error');
		}
	});	
&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Diego&lt;/P&gt;</description>
    <pubDate>Sat, 13 Feb 2016 16:02:54 GMT</pubDate>
    <dc:creator>Diego_Calp</dc:creator>
    <dc:date>2016-02-13T16:02:54Z</dc:date>
    <item>
      <title>Webservice JSON in post body</title>
      <link>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071543#M58359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; I am trying to call the post method of a Nodejs webservice which expects a json object in the body.&lt;/P&gt;

&lt;P&gt;How would I do this with XDK &amp;amp; IODOCS?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Varun&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 12:00:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071543#M58359</guid>
      <dc:creator>Varun_R_</dc:creator>
      <dc:date>2016-02-13T12:00:34Z</dc:date>
    </item>
    <item>
      <title>Hi Varun,</title>
      <link>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071544#M58360</link>
      <description>&lt;P&gt;Hi Varun,&lt;/P&gt;

&lt;P&gt;You may use jquery ajax, something like this:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;
	$.ajax({
		type:'POST', 
		url: 'http://localhost:3000/endpoint',
		data: '{"email":"'+mail+'", "password":"'+pass+'"}',
		dataType: "json",
		success: function (response) {
                   //use response on success
                   console.log('success');
		},
		error: function (response) {
		   console.log('error');
		}
	});	
&lt;/PRE&gt;

&lt;P&gt;Regards&lt;/P&gt;

&lt;P&gt;Diego&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:02:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071544#M58360</guid>
      <dc:creator>Diego_Calp</dc:creator>
      <dc:date>2016-02-13T16:02:54Z</dc:date>
    </item>
    <item>
      <title>Hi Diego, </title>
      <link>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071545#M58361</link>
      <description>&lt;P&gt;Hi Diego,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Thanks for the reply&lt;/P&gt;

&lt;P&gt;I modified the iodocs js file that exports the webservice to this&lt;/P&gt;

&lt;P&gt;return $.ajax({&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; url: url,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; type: 'POST',&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; data:data,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dataType: "json"&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/P&gt;

&lt;P&gt;The service isnt getting the json data&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Varun&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Feb 2016 16:52:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071545#M58361</guid>
      <dc:creator>Varun_R_</dc:creator>
      <dc:date>2016-02-13T16:52:32Z</dc:date>
    </item>
    <item>
      <title>Hi Diego,</title>
      <link>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071546#M58362</link>
      <description>&lt;P&gt;Hi Diego,&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Thanks. I got it working after making a few modification to the code that you suggested&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Varun&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 12:59:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Webservice-JSON-in-post-body/m-p/1071546#M58362</guid>
      <dc:creator>Varun_R_</dc:creator>
      <dc:date>2016-02-15T12:59:39Z</dc:date>
    </item>
  </channel>
</rss>

