You need to sign in to do that
Don't have an account?
vjoshi
REST API sample application
Hi,
I have successfully completed most of the steps in the REST API tutorial page given in:
http://wiki.developerforce.com/index.php/Getting_Started_with_the_Force.com_REST_API
I got the link that says "Click here to retrieve contacts from salesforce via REST/Oauth" but when I click on it, the page gives me 404 error.
What could be the issue?
Double check all your URLs. 404 is Not Found and should be easily resolved.
Above is the code I have. I guess you are telling about the authurl that is being set here. But this is the same as given in sample application. I do not exactly know what is the issue.
which URL are you getting the 404 from? Is it possible that you are having a firewall or proxy issue inhibiting the callback?
It is:
https://<ip>/RESTAPITEST/oauth
RESTAPITEST is my context path that is in the webapps folder of the tomcat server
I tried turning off the firewall. Can you suggest some other way.?
To provide you more details:
I am developing project in NetBeans. I build the project in Netbeans and then get a war file called RESTAPITES.war.
Then, I am putting this war file in the webapps folder of the remote tomcat server where it gets compiled. Now when I go to :
https://<ip>:8448//RESTAPITEST
I can view the link but on clicking the link i get the 404 error.
May be a matter of troubleshooting your deployment to tomcat. Is the app listening on 8448 ( I know you could have changed the recommended 8443 from the demo). Code looks good, double check settings on app server.
I would take the approach of troubleshooting each point of communication and make sure it is accessible and responsive. You can debug, view the variables returned from SF login and eliminate or identify any issues there.
I am still getting /RESTAPITEST/oauth not available. I have Tomcat 7.0 on my Netbeans which I use to export my project to a war file. I put this file into the webapps folder of the remote Apache Tomcat 6.0 server. Can this Tomcat version change be a problem?