Hi,
On 21/11/11 10:00, Kiren Pillay wrote:
Hi
We have a partner running .NET, who is trying to integrate with our
REST-ful cxf web services. Their toolset can consume WSDL only and not
WADL.
Is it WSDL 2.0 that their toolset supports ?
Can someone recommend the easiest way for them to integrate with us?
Perhaps the simplest option in this case is to transform a generated
WADL into a corresponding WSDL2 document.
Right now, it's not possible to use XSLTJaxbProvider in combination with
WADLGenerator which would only require registering a stylesheet which
can do the transformation, CXF may even ship such a stylesheet.
So a bit more work is needed at the moment, you'd need to explicitly
register a WADLGenerator (as a jaxrs:provider), set an
"ignoreMessageWriters" property on it to false, and also register a
custom MessageBodyWriter<String> implementation with
@Produces(WADLGenerator.WADL_TYPE). This provider will then use a custom
stylesheet to transform a string wadl representation into WSDL 2.0 doc,
a generic stylesheet may become quite involved but the one optimized to
handle an individual WADL doc will be simple enough
Hope it helps, Sergey
Regards
Kiren
--
Sergey Beryozkin
http://sberyozkin.blogspot.com
Talend Community Coders
http://coders.talend.com/