<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: RESTful Web Service Callout using POST with Salesforce.com</title>
	<atom:link href="http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=restful-web-service-callout-using-post</link>
	<description>Get your head out of your #@! and into the clouds!</description>
	<lastBuildDate>Wed, 08 Feb 2012 07:57:55 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Jeff Douglas</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-4808</link>
		<dc:creator>Jeff Douglas</dc:creator>
		<pubDate>Sat, 24 Sep 2011 11:51:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-4808</guid>
		<description>I believe there are some recipes on http://developer.force.com/cookbook.</description>
		<content:encoded><![CDATA[<p>I believe there are some recipes on <a href="http://developer.force.com/cookbook" rel="nofollow">http://developer.force.com/cookbook</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chayakiran</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-4769</link>
		<dc:creator>chayakiran</dc:creator>
		<pubDate>Thu, 22 Sep 2011 20:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-4769</guid>
		<description>Hi,
Can we consume RPC based WSDL using HTTP Callouts?
Could you please provide some references?
Thanks,
Chayakiran</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can we consume RPC based WSDL using HTTP Callouts?<br />
Could you please provide some references?<br />
Thanks,<br />
Chayakiran</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajesh</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-4323</link>
		<dc:creator>rajesh</dc:creator>
		<pubDate>Mon, 18 Jul 2011 11:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-4323</guid>
		<description>i want to integrate salesforce with campaign monitor 
please help me</description>
		<content:encoded><![CDATA[<p>i want to integrate salesforce with campaign monitor<br />
please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rajesh</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-4322</link>
		<dc:creator>rajesh</dc:creator>
		<pubDate>Mon, 18 Jul 2011 11:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-4322</guid>
		<description>this is my code

public class lll {

public string errormessage;



 public  void Login()
    { 
     Http h = new Http();
        HttpRequest req = new HttpRequest();
        //ErrorMessage=&#039;&#039;;
       final string baseUrl = &#039;http://dskvapconsultancyservices.createsend.com/&#039;; 
        final string username = &#039;05b88f78dfc4f00ce93553a79be93d04&#039;; 
        final string password = &#039;rajesh12&#039;;
       
  string apikey=&#039;05b88f78dfc4f00ce93553a79be93d04&#039;;
     Blob headerValue = Blob.valueOf(username + &#039;:&#039; + password);
     String authorizationHeader = &#039;BASIC &#039; +
     //EncodingUtil.urlEncode(headerValue);
     EncodingUtil.base64Encode(headerValue);
     req.setHeader(&#039;Host&#039;,&#039;http://api.createsend.com&#039;);
    req.setHeader(&#039;Content-length&#039;, &#039;1753&#039; );
    
    req.setHeader(&#039;Connection&#039;,&#039;keep-alive&#039;);
    req.setHeader(&#039;Content-Type&#039;, &#039;application/xml;charset=UTF-8&#039;);
    req.setHeader(&#039;Authorization&#039;,authorizationHeader);
    //req.setHeader(&#039;Authorization&#039;,&#039;Basic 05b88f78dfc4f00ce93553a79be93d04==&#039;);
  //req.setHeader(&#039;content-type&#039;, &#039;text/xml;charset=utf-8&#039;);
  //req.setHeader(&#039;Content-Length&#039;,&#039;1024&#039;);
  //req.setHeader(&#039;Host&#039;,&#039;http://dskvapconsultancyservices.createsend.com/&#039;);
  //req.setHeader(&#039;Connection&#039;,&#039;keep-alive&#039;);
     string body1=&#039;&#039;;
     body1+=&#039;&#039;;  
      body1+=&#039; &#039;;
      body1+=&#039;05b88f78dfc4f00ce93553a79be93d04&#039;;
      body1+=&#039;&#039;;
          body1+=&#039;05b88f78dfc4f00ce93553a79be93d04&#039;;
          body1+=&#039;23&#039;;
          body1+=&#039;&#039;;
          body1+=&#039;&#039;;
          body1+=&#039;&#039;;
          body1+=&#039;&#039;;
          body1+=&#039;&#039;;
         body1+=&#039;&#039;;   
        
        req.setMethod(&#039;GET&#039;);
        req.setBody(body1);

        //req.setEndpoint(baseUrl + &#039;?loginType=&amp;un=&#039;+username+&#039;&amp;pw=&#039;+password);
       //req.setEndpoint(&#039;http://api.createsend.com/05b88f78dfc4f00ce93553a79be93d04/v3/clients/clients.xml&#039;);
        req.setEndPoint(&#039;http://api.createsend.com/api/v3/clients.xml&#039;);
        //req.setbody(&#039;http://api.createsend.com/api/v3/clients.xml&#039;);
    
        
        HttpResponse res = h.send(req);
         //req.setEndpoint(baseUrl + &#039;apex/UploadFile_DifferentOrg&#039;);
           
         // res = h.send(req);
           system.debug(&#039;********&#039;+res.getbody());
           if (res.getBody().indexOf(&#039;success=true&#039;)&gt;-1)
           {
              system.debug(&#039;Success&#039;);
           }  
        }
        
        public void detail()
        {
        
        }
        
        
}


i am getting errors like
&lt;Code&gt;400&lt;/Code&gt;Failed to deserialize your request.
Please check the documentation and try again.
Fields in error: client
..
System.HttpResponse[Status=Bad Request, StatusCode=400]

please help me in this area

thank you in advance</description>
		<content:encoded><![CDATA[<p>this is my code</p>
<p>public class lll {</p>
<p>public string errormessage;</p>
<p> public  void Login()<br />
    {<br />
     Http h = new Http();<br />
        HttpRequest req = new HttpRequest();<br />
        //ErrorMessage=&#8221;;<br />
       final string baseUrl = &#8216;http://dskvapconsultancyservices.createsend.com/&#8217;;<br />
        final string username = &#8217;05b88f78dfc4f00ce93553a79be93d04&#8242;;<br />
        final string password = &#8216;rajesh12&#8242;;</p>
<p>  string apikey=&#8217;05b88f78dfc4f00ce93553a79be93d04&#8242;;<br />
     Blob headerValue = Blob.valueOf(username + &#8216;:&#8217; + password);<br />
     String authorizationHeader = &#8216;BASIC &#8216; +<br />
     //EncodingUtil.urlEncode(headerValue);<br />
     EncodingUtil.base64Encode(headerValue);<br />
     req.setHeader(&#8216;Host&#8217;,'http://api.createsend.com&#8217;);<br />
    req.setHeader(&#8216;Content-length&#8217;, &#8217;1753&#8242; );</p>
<p>    req.setHeader(&#8216;Connection&#8217;,'keep-alive&#8217;);<br />
    req.setHeader(&#8216;Content-Type&#8217;, &#8216;application/xml;charset=UTF-8&#8242;);<br />
    req.setHeader(&#8216;Authorization&#8217;,authorizationHeader);<br />
    //req.setHeader(&#8216;Authorization&#8217;,'Basic 05b88f78dfc4f00ce93553a79be93d04==&#8217;);<br />
  //req.setHeader(&#8216;content-type&#8217;, &#8216;text/xml;charset=utf-8&#8242;);<br />
  //req.setHeader(&#8216;Content-Length&#8217;,&#8217;1024&#8242;);<br />
  //req.setHeader(&#8216;Host&#8217;,'http://dskvapconsultancyservices.createsend.com/&#8217;);<br />
  //req.setHeader(&#8216;Connection&#8217;,'keep-alive&#8217;);<br />
     string body1=&#8221;;<br />
     body1+=&#8221;;<br />
      body1+=&#8217; &#8216;;<br />
      body1+=&#8217;05b88f78dfc4f00ce93553a79be93d04&#8242;;<br />
      body1+=&#8221;;<br />
          body1+=&#8217;05b88f78dfc4f00ce93553a79be93d04&#8242;;<br />
          body1+=&#8217;23&#8242;;<br />
          body1+=&#8221;;<br />
          body1+=&#8221;;<br />
          body1+=&#8221;;<br />
          body1+=&#8221;;<br />
          body1+=&#8221;;<br />
         body1+=&#8221;;   </p>
<p>        req.setMethod(&#8216;GET&#8217;);<br />
        req.setBody(body1);</p>
<p>        //req.setEndpoint(baseUrl + &#8216;?loginType=&amp;un=&#8217;+username+&#8217;&amp;pw=&#8217;+password);<br />
       //req.setEndpoint(&#8216;http://api.createsend.com/05b88f78dfc4f00ce93553a79be93d04/v3/clients/clients.xml&#8217;);<br />
        req.setEndPoint(&#8216;http://api.createsend.com/api/v3/clients.xml&#8217;);<br />
        //req.setbody(&#8216;http://api.createsend.com/api/v3/clients.xml&#8217;);</p>
<p>        HttpResponse res = h.send(req);<br />
         //req.setEndpoint(baseUrl + &#8216;apex/UploadFile_DifferentOrg&#8217;);</p>
<p>         // res = h.send(req);<br />
           system.debug(&#8216;********&#8217;+res.getbody());<br />
           if (res.getBody().indexOf(&#8216;success=true&#8217;)&gt;-1)<br />
           {<br />
              system.debug(&#8216;Success&#8217;);<br />
           }<br />
        }</p>
<p>        public void detail()<br />
        {</p>
<p>        }</p>
<p>}</p>
<p>i am getting errors like<br />
<code>400</code>Failed to deserialize your request.<br />
Please check the documentation and try again.<br />
Fields in error: client<br />
..<br />
System.HttpResponse[Status=Bad Request, StatusCode=400]</p>
<p>please help me in this area</p>
<p>thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Suravajhula</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-4167</link>
		<dc:creator>Girish Suravajhula</dc:creator>
		<pubDate>Wed, 08 Jun 2011 01:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-4167</guid>
		<description>Awsome post. Helped me a lot. Thanks</description>
		<content:encoded><![CDATA[<p>Awsome post. Helped me a lot. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Integrate reCAPTCHA with Force.com at Cloud Giga</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-2921</link>
		<dc:creator>Integrate reCAPTCHA with Force.com at Cloud Giga</dc:creator>
		<pubDate>Sat, 19 Mar 2011 18:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-2921</guid>
		<description>[...] only a rather simple &#8216;GET&#8217; example. Jeff Douglas had in his blog thrown out some good example of snippets on this topic. Here&#8217;s what I [...]</description>
		<content:encoded><![CDATA[<p>[...] only a rather simple &#8216;GET&#8217; example. Jeff Douglas had in his blog thrown out some good example of snippets on this topic. Here&#8217;s what I [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikram nanduri</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-2883</link>
		<dc:creator>Vikram nanduri</dc:creator>
		<pubDate>Wed, 16 Mar 2011 14:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-2883</guid>
		<description>Thats a great example, thanks Jeff.
but when I run the same example and run the Test, the code coverage is 0% , can you please explain me in brief how to write a test class for such a WebService Callout please.</description>
		<content:encoded><![CDATA[<p>Thats a great example, thanks Jeff.<br />
but when I run the same example and run the Test, the code coverage is 0% , can you please explain me in brief how to write a test class for such a WebService Callout please.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-2277</link>
		<dc:creator>Phillip</dc:creator>
		<pubDate>Tue, 21 Dec 2010 20:26:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-2277</guid>
		<description>How do I actually test this. I&#039;m getting the following exception:

15:22:57.270&#124;FATAL_ERROR&#124;System.TypeException: Methods defined as TestMethod do not support Web service callouts, test skipped</description>
		<content:encoded><![CDATA[<p>How do I actually test this. I&#8217;m getting the following exception:</p>
<p>15:22:57.270|FATAL_ERROR|System.TypeException: Methods defined as TestMethod do not support Web service callouts, test skipped</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghavender</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-2029</link>
		<dc:creator>Raghavender</dc:creator>
		<pubDate>Thu, 04 Nov 2010 17:52:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-2029</guid>
		<description>Hi, 
Thanks for the above article.Can you helo m eunderstand if we can make a https post from SFDC with an Example.
Thanks.

Raghu</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thanks for the above article.Can you helo m eunderstand if we can make a https post from SFDC with an Example.<br />
Thanks.</p>
<p>Raghu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Simonds</title>
		<link>http://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/comment-page-1/#comment-124</link>
		<dc:creator>Mike Simonds</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jeffdouglas.com/?p=525#comment-124</guid>
		<description>Well I was messing around with it and removed the compression:


req.setCompressed(true); // otherwise we hit a limit of 32000

now it works !!

But what can happen if we do not compress it</description>
		<content:encoded><![CDATA[<p>Well I was messing around with it and removed the compression:</p>
<p>req.setCompressed(true); // otherwise we hit a limit of 32000</p>
<p>now it works !!</p>
<p>But what can happen if we do not compress it</p>
]]></content:encoded>
	</item>
</channel>
</rss>

