Is there a clever way to expose WSDL from a WCF service hosted on one IIS server automatically on another server?
Thanks
Is there a clever way to expose WSDL from a WCF service hosted on one IIS server automatically on another server?
Thanks
The WSDL is automatically generated from the WCF infrastructure. So if you don't deploy the web service on this server you cannot expose the WSDL. You could of course manually copy the generated XML files but if the original web service changes you will need to update them on other server.
Well if you want to make the WSDL from another server accurate for yours and you're just passing on all requests you'll probably only have to update the wsdl:service element of the WSDL with the new correct end-points (Likely by replacing the internal domain with the external one).
You can either do this by hand and just update the public-facing WSDL whenever you change the back-end code or do it on-the-fly by parsing it with an XmlDocument and updating the relevant nodes before rendering the output. I don't believe anything will automate this for you.