Is it possible to convert WSDL file back to Service Contract Interface for hosting? (WCF) RRS feed

  • Question

  • Hi there,

    I would like to convert WSDL file to Service Contract Interface for hosting purposes. I know there is an option  to create proxy classes for clients using SVCUtil.exe or WSDL.exe. But this is not i would like to do.

    I have a situation where, one of our clients have already hosted webservice. And I need to host a similar webservice. so to do it I must hand craft whole service contract Interface from the scratch. So without writing from the start can I use the existing WSDL to create the service contract Interface and the implementation class automatically with some tool?



    Tuesday, October 19, 2010 8:14 AM


All replies

  • svcutil.exe and wsdl.exe can be used for server stubs as well.

    wsdl.exe has the /serverInterface flag:


    svcutil generates the client code as an interface + implementation. So just take the interface and create a service that implements it.

    WCF Security, Interoperability And Performance Blog
    • Proposed as answer by Yaron Naveh Tuesday, October 19, 2010 4:44 PM
    • Marked as answer by Allen Chen - MSFT Wednesday, October 27, 2010 8:55 AM
    Tuesday, October 19, 2010 4:44 PM
  • Thanks Yaron. Will try and will get back to you.
    Thursday, October 21, 2010 8:49 AM
  • Does this helps ? I just created the contract by using /mc option in SVCutil, I got entity objects and service interface created, but not sure if it will really work ? has anyone tried it
    Friday, July 8, 2011 6:57 AM