You need to sign in to do that
Don't have an account?
Sapthagiri Reddy
Salesforce Web Service Execution
Hi,
There is a requirement wherein, I need to have a connection established between Salesforce and AS400. The AS400 developers will be providing us with web services and similarly, I need to provide web services (RESTful) to them to have the connection built.
Me being new to web service, I am little confused about where to start in order to execute Salesforce web services (RESTful).
Could anyone help me in this regard.
There is a requirement wherein, I need to have a connection established between Salesforce and AS400. The AS400 developers will be providing us with web services and similarly, I need to provide web services (RESTful) to them to have the connection built.
Me being new to web service, I am little confused about where to start in order to execute Salesforce web services (RESTful).
Could anyone help me in this regard.
On other hand, You have to create REST web service that you will expose to AS400 team. Please read the following link
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest.htm
Let me know if this make sense!
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_rest_code_sample_basic.htm
Web service in APEX(to connect salesforce from other applications):
It is a normal apex class with the global access specifier and webserice keyword. This webserice keyword makes our apex class visible/accessible globally from any application(with the help of WSDL generated from it)
Web service in external applications(to connect salesforce with other applications):
Here we get an WSDL from the third party application and we get apex classes generated from it by the help of "Generate from WSDL" button and the respective classes get generated in salesforce by that. Now again same procedure, just call the methods of the classes, those generated from WSDL by passing required parameters.
Just treat them as normal apex classes and nothing complex from them.
Regards,
- Harsha.
Let me make myself more clear.
The other party had sent me a url link, which when pasted in a browser url (by passing the parameters), it returns an output in JSON format. For example: the url would be like : " https://www.test.com/services/test.php?username=xxxx&password=**** ".
Similarly, if I needed to give the other party a url to the salesforce service, how could I be doing that. I could execute a service using cURL command line. curl -H "Authorization: Bearer sessionId" "https://instance.salesforce.com/services/apexrest/Account/accountId"
And I can't be sending this cURL for the other party, rather I am supposed to send a URL link. So, how can I generate that url?