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.