I have recently completed a project where I connect to a database via a web service running on the same machine as the DB. I have compiled the "service.asmx" with WSDL.exe and CSC.exe into a dll because i want to protect the code in the service.
I reference the dll as normal but I can only access the public structs I have created in the web service, the public web methods are not exposed when I declare a variable as my web dll. Have I done something wrong? Is there something that needs to change?
I can access the public web methods if I import namespace like this : "Imports wserv.service" but then it still needs the "Service.vb" which includes all your source code. That seems a bit risky! Any other way?