How to add a web service reference in a DLL
Posted
by dan
on Stack Overflow
See other posts from Stack Overflow
or by dan
Published on 2010-02-11T21:22:32Z
Indexed on
2010/04/10
22:23 UTC
Read the original article
Hit count: 159
I'm creating a DLL with a reference to web services (I don't have the choice to do so) but I have to add web service references to the project that uses the DLL for it to work.
Example, I have the DLL called API.DLL that calls a web service called WebService.svc that I want to use in a project called WinForm. First, I have to add a "Service Reference" to WebService.svc in API.DLL. Then, I add a reference API.DLL to WinForm but it doesn't work unless I also add a service reference to WebService.svc in WinForm.
What can I do to avoid that last step?
© Stack Overflow or respective owner