the name 'functionname' does not exist in the current context

W

weird0

When i am working on client side of a webservice, where i add a
reference to it(have written the function CheckPincode inside the
webservice), the compiler says:

the name CheckPincode does not exist in the current context...

What to do ?
 
A

Alberto Poblacion

weird0 said:
When i am working on client side of a webservice, where i add a
reference to it(have written the function CheckPincode inside the
webservice), the compiler says:

the name CheckPincode does not exist in the current context...

What to do ?

This means that you haven't properly specified the namespace and/or the
class of the function. You need to do something like this:

TheService.TheClass proxy = new TheService.TheClass();
result=proxy.CheckPincode(arguments);

"TheService" is the namespace that you specified when you did the "add
web reference..." on your client side. "TheClass" is the class name
specified inside the web service.
 
G

Guest

Did you set a WebReference using the "Add WebReference" dialog? In your
webservice, is your method decorated with the [WebMethod] attribute?

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top