function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sigit Kusuma 25Sigit Kusuma 25 

Rest API with Apache HttpComponents 4.4

Hi

I managed to get my Java Environment up and running using the following:
https://developer.salesforce.com/docs/atlas.en-us.salesforce_developer_environment_tipsheet.meta/salesforce_developer_environment_tipsheet/?state=id

The above uses HttpComponents 4.4.

There are examples using the Rest API here:
https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

This appears to be using the old version of HttpComponents (v3 maybe?). In particular, I'm trying to get the SOQL code working for HttpComponents 4.4. Has anyone successfully managed to do so and have code samples?

Thanks
 
Gaurav KheterpalGaurav Kheterpal
I recently did a project where we used HttpComponents 4.4 and I didn't face any major issues. Are you getting any errors?

If my answer helps resolve your query, please mark it as the 'Best Answer' and upvote it to benefit others and improve the overall quality of Discussion Forums.

Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker


 
Sergey TrusovSergey Trusov
Post your code and error that you got.
Stanley He (skype: konafornia)Stanley He (skype: konafornia)
This is the one I am following:
http://www.javacodegeeks.com/2014/06/how-to-use-salesforce-rest-api-with-your-javaserver-pages.html