Webservice Private reference

T

timb

Hi all,
am developing an vb dotnet application (windows exe) which references a
(vbdotnet) dll. This dll makes use of a webservice and as such has a
webreference set in the visual studio project to this resource. However i
have noticed that (since the application has a reference to the dll) i can
see the webservice reference from the application and can instantiate an
instance and call a webmethod. I would like the webreference to be private
to the dll only. However i cannot see any obvious way to change this, apart
from amending the code in the autogenerated reference.vb file created which
is visible when the show all files option is enabled. The problem with
using this method is that as i am developing the applicaiton and the
webservice i may need to refresh the webreference which in theory will reset
the reference to be public. Does anyone know a way around this?


Thanks greatly in advance
 

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