开发者

Writing a RESTful service using WCF for public usage. Is providing WSDL really necessary?

开发者 https://www.devze.com 2023-03-18 09:38 出处:网络
As the question suggests, is providing the WSDL really necessary, or is it more of a \"nice to ha开发者_开发百科ve\" feature?I have written a RESTful service, using .Net 4.0.I see now that WSDL isn\'t

As the question suggests, is providing the WSDL really necessary, or is it more of a "nice to ha开发者_开发百科ve" feature? I have written a RESTful service, using .Net 4.0. I see now that WSDL isn't automatically generated by adding ?wsdl... and I can't get it to either after trying various suggestions :-/

I have written several ASMX services in the past - all well and good as the WSDL is accessible automatically. I want to move away from SOAP. I would prefer to provide potential users with a Class (C#, Java versions etc..) and sample code. Is that an equally viable option? Or am I being lazy in suggesting all that?

Thanks for your opinions.


WSDL = SOAP;

REST != WSDL;

For a REST Service, WSDL is not a nice-to-have it is a cannot-have.

If you are exposing a RESTful service then WSDL does not mean anything - WSDL means you have a SOAP web service.

You can expose a SOAP web service in addition to your REST service but the WSDL would be for that service.

0

精彩评论

暂无评论...
验证码 换一张
取 消