none
Hosting WSDL file. RRS feed

  • Question

  • Hello,

    I have a web service URL : http://webservieurl?wsdl , and want to host it in another server !

    what is needed to do that. ?

    Can we host wsdl files without source code or DLL ?!

    Thanks 

    Tuesday, March 19, 2013 12:01 PM

Answers

  • I am not familiar with all the intricacies of IIS in regards to pubishing content and best practices associated with it, but you should be able to setup a web site in IIS and add your WSDL definitions to it to make them available.  You might consider posting your IIS related questions to a forum focused on IIS (http://forums.iis.net/), as you may get some better responses to your general IIS questions.

    Tuesday, March 19, 2013 2:47 PM

All replies

  • WCF does not support that type of behavior out of the box as far as I know... so to accomplish that you would have to jump through a few hoops outside of WCF (i.e. manually publishing the WSDL file where you wanted it to be available, etc...).

    In my experience you typically publish the WSDL via a web get and/or mex address along side the service the WSDL represents on the same server, and more specifically in the same service hosting process/appdomain.  I am not clear on why you would like to do this, but the features that allow a service to publish its WSDL (web get and mex endpoints) are infrastructure endpoints and cannot be hosted independently of the service, they need to be defined in association with a service that also has non-infrastructure endpoints (i.e. http, netTcp, etc...).

    So again, the only way I am aware of to accomplish what you are trying to do is to generate the WSDL files and publish them in the place you want them to be available.  This would allow you to publish the WSDL files without source code and/or DLL's independent of the actual service.  You can obtain the WSDL by running the svcutil.exe application over your service or by getting it from a published wsdl endpoint (web get or mex).



    • Edited by BotHead Tuesday, March 19, 2013 2:18 PM
    Tuesday, March 19, 2013 2:15 PM
  • Thanks a lot Bothead, Actually I generate wsdl files using svcutil.exe but what is the steps to host it in IIS ?!
    Tuesday, March 19, 2013 2:23 PM
  • I am not familiar with all the intricacies of IIS in regards to pubishing content and best practices associated with it, but you should be able to setup a web site in IIS and add your WSDL definitions to it to make them available.  You might consider posting your IIS related questions to a forum focused on IIS (http://forums.iis.net/), as you may get some better responses to your general IIS questions.

    Tuesday, March 19, 2013 2:47 PM