views:

68

answers:

2

I have a Web Service Project and a Web Site Project both within the same solution. I have a simple link on a web page within the Web Site Project that needs to point to a web services WSDL (example: Webservice.asmx?WSDL) within the Web Service Project. Is this possible?

Would I be better off using a hardcopy of the WSDL document and just putting that in my web site project?

+1  A: 

I don't believe so. You will need to have the webservice run, in either IIS, or through visual studio.

Alan
A: 

Why not add a Web reference to the Webservice (Browse for "Web services in this solution") ?

That's what adding the reference does, basically... along with creation of the class mapping. Then you could always update references without having to worry about hard coded wsdl links.

AmitK
I am not sure how or if this accomplishes what I want. Added the reference would allow me to access the web service, but what I need is to basically load the page WebService.asmx with the "?WSDL" Appended to it.
Jeff