Generate REST from WSDL

rest, wsdl

Solution

It's not possible to generate REST API from WSDL. You can't mix oranges and apples

SOAP is a protocol build on top of HTTP. A WebService is represented by a set of methods/actions. You can see a WebService as sophisticated RPC. Generally we can say that WebServices are about verbs, to call remote methods/actions. A WebService also doesn't have uniform interface and that's the reason why WSDL exists.

REST is architectural style (scope is broader than just API). REST API is represented by a set of resources and representations. A resource is source of an information and is managed via uniform interface. Generally we can say that REST API is about nouns. Because all resources must have uniform interface there is no need for WADL (an unsuccessful attempt to create something like WSDL for REST).

I doubt you can automatically transform verbs into nouns, etc.

Problem

I'm looking for best way to automate generation of REST ws. We have collection of web services (SOAP) with WSDLs generated for them. I was required to provide different APIs to invoke these web services. (PHP, Pyton, REST, CLI ...) One of requirement is to have REST API for these ws. What is the best way to generate REST client/server, is there any automatic tools for that? There is a chance that WSDLs will change each release. Thanks

Original source