Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scope of web service in a class library
Message
From
22/04/2008 12:24:53
 
 
To
21/04/2008 09:23:22
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Web Services
Miscellaneous
Thread ID:
01310550
Message ID:
01312414
Views:
14
The problem is that the Web Service reference is actually a class and making it protected just doesn't work. This is why I don't think that you're going to be able to totally "hide" this from any class that is using your "utility" class ... but, perhaps you can use Interfaces to interact with your utility class and hide stuff that way? I'd have to play with it a bit to see if this would work, but I'm thinking that it might.

~~Bonnie


>>>I have a reference to a web service in my class library. When I use my class library in another application, I can browse the classes and see the references to my web service. Is there a way to change the reference to my web service to be protected instead of public? Thanks!
>>
>>I doubt if you can realistically do this ... since the web references are all generated through VS and any change you *did* make would have to be duplicated everytime you updated your web reference.
>>
>>I'm curious why you want to?
>>
>>~~Bonnie
>
>I have a web service set up to send email. We have to set up each client individually on our web server to allow for programmatic emails. We set up this web server and all automated emails will go through the web service. I am creating a utility class to interface with the web service, but I don't want the client to interface with the web service directly.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform