+ Start a Discussion
JeffStevensJeffStevens 

Calling class via REST API

I've used Dan Boris sample at http://danlb.blogspot.com/2010/10/salesforcecom-rest-api.html to get my oAuth2.0 connecting, and calling a sample query with this code...

string results = HttpGet(token.instance_url + @"/services/data/v26.0/query?" + "SELECT Id,Name FROM Account", "");

 

And this is working just fine.   But if I want to call a webservice called sampleWS - how is that done?  It's not just like this is it?

 

string results = HttpGet(token.instance_url + @"/sampleWS", "");

 

thanks.