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
laxmilaxmi 

please help me out......

hi all,

is this correct? to call the external webservice

global class testSalesforce{
WebService static string test1(string arg)
{

dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort stub =
   new dbappsMywebservice1Wsdl.MyWebService1SoapHttpPort();

  string result = stub.placeOrder(1, 2, 3);
return result;

}}

i have created s-control for this and webtab .
if i click on the tab its giving an error...

Failed:{faultcode:'soapenv:Client',faultstring:'No service available for class 'testSalesforce",}
  what does it mean, how to overcome from this problem

thanks
laxmi
Ron WildRon Wild
We'll need to see the callout in your s-control.  That looks like the error you might get when invoking your Apex webservice incorrectly.

You might also want to run the webservice anonymously (from inside eclipse if you're developing with the Force.com toolkit for Eclipse) to make sure test1() works.