REST web service WSDL?

2019-01-11 09:00发布

I am implementing a web service and I have implemented both a REST and SOAP version to see which suited my needs.I have decided to choose REST because of its simplicity and that I will probably be developing an iPhone app to consume it. My question is simple really, is it possible to create a WSDL or WADL for my REST service and is it necessary?

Thanks

7条回答
ゆ 、 Hurt°
2楼-- · 2019-01-11 10:01

As @GiuliaDiFederico said, "of course it's possible" (with WSDL2), showing a good source link about how to do. @DonalFellows, by other hand, does not encouraged the use of WSDL...

I think the use of WSDL is a question of

  • FORMALIZATION LEVEL: with WSDL you can express more formally all relevant details of your webservice.
  • STABILITY LEVEL: if you need long term contracts, and avoid risks of changes in the enviroment where your webservice is exposed, WSDL helps to mantain stability.
  • NEED FOR STANDARDS: if customers prefer webservices that can be said "standard compliant", use standards. The only one is W3C, and W3C requires XML, SOAP and WSDL.
查看更多
登录 后发表回答