locked
WSDL 2.0 - Visual Studio Service Reference RRS feed

  • Question

  • I have a rest service that I've been tasked to create an SDK/ clients for in various languages.

    Then I came up with the idea.

    Why not wrap/describe the REST service in WSDL 2.0 and have Visual Studio add it as a service reference and generate the client for me. All other languages/IDEs that support this feature would also benefit.

    So I spent all this time learning WSDL 2.0. (4 hours) and it appears that Visual studio is unable to parse out the metadata for WSDL 2.0. 

    Is it possible to use WSDL 2.0 as a service reference at all in Visual Studio?

    Wednesday, August 3, 2016 9:55 PM

Answers

  • Hi Dondre,

    >> Is it possible to use WSDL 2.0 as a service reference at all in Visual Studio?

    In my option, it would not work for you. Add Service Reference uses WSDL of metadata or ws-metadataExchange, and rest service does not have metadata. If you have a WCF Service which is 4.0 or later, it will add a default basicHttpEndpoint, which means you could add a service reference, but it describes service for SOAP Service instead of rest service.

    To create an SDK for rest service, I suggest you try rest service help page. You could refer the link below:
    WCF Web HTTP Service Help Page
    https://msdn.microsoft.com/en-us/library/ee230442.aspx

    In addition, for .net 4.5, you may need to use “<webHttp helpEnabled="true" />”.

    Best Regards,

    Edward


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    Thursday, August 4, 2016 10:44 AM