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
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.