Link to home
Start Free TrialLog in
Avatar of lankapala
lankapala

asked on

Hide web services records from DLL file

Hi Expert
I have added the web service to the Class Library file and created the DLL file.
so my issues are when I added to another project to this DLL file the web services classes method is can call from DLL file.
I need to hide the web service method from the new project. I need to allow only a few methods I have created.
How to do that.if any idea much appreciated.
Avatar of Kelvin McDaniel
Kelvin McDaniel
Flag of United States of America image

1. You need to make the web service class internal so that it is not visible outside of the DLL.

2. Create your own public, pass-through function(s) in the DLL which take at least all the parameters that the necessary web service functions need and hook them up to their counterparts in the web service.

3. Create a public Interface which your DLL callers can use.

4. Then, based on the caller, allow the wrapper function(s) to process the request (or not). You'll need to come up with a scheme for forcing the calling application to identify itself when your wrapping function(s) is called.[/list]
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.