Hi, I'm not too familiar with CXF but I'd like to answer some questions that you have raised. BTW Axis2 supports WSDL 2.0.
* REST does not require a WSDL but it could very well use it. Yes. Having a WSDL for a RESTfull service would give you an advantage cause you could use tools such as java2wsdl that comes with Axis2 or JavaScript stub generators that come with the WSO2 Mashup Server to generate client stubs making it very simple to invoke such services. If the description was informal (for e.g plain english) I'd have to read through it before writing a client and it could be error prone. * In the REST world, WADL (Web Application Description Language) is more appropriate than a WSDL. I don't think WSDL 2.0 is more complex than WADL. I will do a write up this and get back to you. * A SOAP client could work with a RESTful service implementation. Yes it could. FYI every service deployed in Axis2 is exposed as both SOAP and REST. Even the example I had posted in my blog entry http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.html can be accessed over both SOAP and REST. Thanks, Keith. Sergey Beryozkin wrote: > > Hi > >> >> Are these mutually exclusive? > > WSDL 1.1 is indeed pretty limited in what it can do > >> Or, is it common to have RESTful services that >> actually have a WSDL definition? > > Have a look at this blog entry : > > http://www.keith-chapman.org/2008/09/restfull-mashup-with-wsdl-20-wso2.h tml > > I guess for CXF be able to generate document descriptions of the (JAX-RS) > services, doing some > WADL support on the server side (auto-generation) would be a good step > forward. WADL is simple and effective language. WSDL 2.0 is a > much more complex 'beast', though more flexible too, it will let you do > REST over TCP-IP if you'd like :-). For CXF evolving as a > strong platform for combining different types of services doing some > (minimal) WSDL 2.0 can be a possible option. I reckon if there > were now a WSDL2.0 aware client runtime wishing to talk REST to CXF, then > it woudn't be too hard just to auto-generate some WSDL 2.0 > instance off the JAX-RS-enabled resource class, in a request CXF JAX-RS > filter... > > Cheers, Sergey > >> -- >> View this message in context: >> http://www.nabble.com/REST-and-WSDL-tp19520452p19520452.html >> Sent from the cxf-user mailing list archive at Nabble.com. > > ---------------------------- > IONA Technologies PLC (registered in Ireland) > Registered Number: 171387 > Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland > > -- View this message in context: http://www.nabble.com/REST-and-WSDL-tp19520452p19535214.html Sent from the cxf-user mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/REST-and-WSDL-tp19520452p19621238.html Sent from the cxf-user mailing list archive at Nabble.com.
