I am making ASP.Net MVC2 Web Service not WCF. How do I easily create WSDL for it?
If I use WCF getting a WSDL response or file is a piece of cake.
I'm not.., I am using MVC2 to create my web service that will serialize eventually XML and Json.
Schema definition aside.., I want to easily have my ASP.Net MVC2 Web Service have a service definition defining the methods, types, param开发者_开发百科eters, and etc. Hopefully you get the picture.
Am I missing something in VS 2010 that does this, a codeplex project, or whatever. Is it that I have to build a WSDL pro-grammatically from scratch?
Please help.
If you want a WSDL then use WCF as it already has this functionality built-in and don't reinvent wheels. If you go the ASP.NET MVC way of generating JSON and XML you are pretty much on your own. And don't forget that WSDL is a SOAP artifact and not JSON or XML.
If you decide to go the REST route, make sure you follow the well established conventions and write a good documentation for your service consumers.
精彩评论