Web Reference difference between projects
-
I have a solution with two projects. One is a web site project and the other is a DLL. I want to move a web reference from my web site project to my DLL but the "Add Web Reference" doesn't work with my DLL as it does with the web site. 1. If I add a web reference to my web site, I get a folder underneath App_WebReferences listing the following: MyWebService.disco MyWebService.discomap MyWebService.wsdl I can then reference the web service in my web site's code. 2. If I add the same web reference to my DLL I get a single object under the "Web References" folder. I CAN'T then reference the web service in my DLL's code. The only way around this is to manually create a proxy class using the WSDL tool. What's the difference? Why is it like this?
-
I have a solution with two projects. One is a web site project and the other is a DLL. I want to move a web reference from my web site project to my DLL but the "Add Web Reference" doesn't work with my DLL as it does with the web site. 1. If I add a web reference to my web site, I get a folder underneath App_WebReferences listing the following: MyWebService.disco MyWebService.discomap MyWebService.wsdl I can then reference the web service in my web site's code. 2. If I add the same web reference to my DLL I get a single object under the "Web References" folder. I CAN'T then reference the web service in my DLL's code. The only way around this is to manually create a proxy class using the WSDL tool. What's the difference? Why is it like this?
mail572352 wrote:
What's the difference? Why is it like this?
What is the type of DLL project?? I have the ASP web application and C# Dll for Business logic having references to web services... Then it should work for other types of dlls. Knock out 't' from can't, You can if you think you can :cool: