views:

92

answers:

1

I'm creating interface to an external web service with C# client generated from WSDL. And in this client class I have methods with signature like: public ResponseType InvokeMethod(RequestType request). I want to change its access modifier to protected, but then web service responds with "web service method name is not valid" exception. Do You know why is that so? I understand that maintaining method name can be important for some reasons, but why can't I change this access modifier? Shouldn't it be a matter of my code what access I want to give to this method? Thanks for all the answers in advance.

A: 

I believe if you expose methods in your web service interface, then the notion of public/private/protected isn't really relevant.

Jamie Chapman
I have believed it too so far, but situation mentioned in this question is quite contrary to our beliefs :)
cand