Java – How to generate RESTful client in JAVA for REST defined in WSDL

javarestweb serviceswsdl

I know that WSDL is for defining SOAP based web services but in most of the WSDLs I saw on net, in the WSDL is defined also RESTful "web service"-http:binding.

To generate client for the SOAP I used wsimport tool from JAX-WS (it also generates client classes for the REST but it doesnt work).

So the question is, how to generate REST client based on the WSDL?

Best Answer

I've never heard of anyone using WSDL for generating REST clients. WADL yes, but not WSDL.

Anyway, generating clients for REST services does not make sense. If you think you want to do that then you are missing the benefits of REST and trying to follow the REST constraints is going to make you do extra work for nothing.