• dileep1.392893620949561E12
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi,
 I have a custom button on a vf page, which will call the Webservie class (Note: webserice class doesn't make any webservice callouts) and i need to create a test class for the Webservice class inorder to create a package.
Now the problem is how to call the webservie method in my  test class?
The Webservice class looks like this:

Global class MyClass
{
      webservice static string insertRec(string Id)
     {
        -----------
        -----------
      }

}

I tried to call the webservice call in my testclss like this:

Myclass mc=new Myclass();
mc.insertRec();

ERROR: Method doesn't exist or incorrect signature [myclass].insertRec().

Any help would be much appreciated.
Hi,
 I have a custom button on a vf page, which will call the Webservie class (Note: webserice class doesn't make any webservice callouts) and i need to create a test class for the Webservice class inorder to create a package.
Now the problem is how to call the webservie method in my  test class?
The Webservice class looks like this:

Global class MyClass
{
      webservice static string insertRec(string Id)
     {
        -----------
        -----------
      }

}

I tried to call the webservice call in my testclss like this:

Myclass mc=new Myclass();
mc.insertRec();

ERROR: Method doesn't exist or incorrect signature [myclass].insertRec().

Any help would be much appreciated.