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
kito kidkito kid 

servlet logic with Apex

I want to implement for the below flow.

 

I do post http request to the another end point url.

that end point system will do http posting to the return url that I have specified for more information.

 

In that case, How can I set up or make a Apex class which can process the http post from other system?

So that I can capture the information from the http post and proceess the necessary things.

 

In java, we can create servlet and get the information back to our system.

 

As I am new to Apex, how can I make the url that can be exposed to other system and allow to capture information from post request by other system?

 

IMPORTANT NOTE: No authentication should be needed. As I just want to get the result of other system.

 

I am starting with RestResource. I think I am on right track while waiting for answers.

 

Thanks ahead.

Avidev9Avidev9
Well you can always generate APEX Rest services that can respond to REST/HTTP request.

Have a look here. http://wiki.developerforce.com/page/Creating_REST_APIs_using_Apex_REST

Since you want public webservice you need to host the webservice via a site. Refer this http://forceguru.blogspot.se/2012/09/creating-public-web-service-in.html this blog for the same