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.
views:
92answers:
1
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
2010-03-12 14:00:07
I have believed it too so far, but situation mentioned in this question is quite contrary to our beliefs :)
cand
2010-03-12 14:03:51