Hi
On 02/01/12 04:45, chetan wrote:
Hi,
I have the auto-generated CXF WADL which has the grammar tag containing the
XML schema for the request and response.
In the resource definition, however, I can't link the representation with
this grammar.
<resource path="/">
<doc>XYZ</doc>
<method name="GET">
<doc title="myGet">Gets information about ...</doc>
<request/>
<response>
<representation mediaType="application/xml">
<doc>Details of ....</doc>
</representation>
</response>
I was wondering if there is a way to link the representation tag with
grammar
something like:
<representation mediaType="application/xml" element="ns:myShema">
How can I do this? Which annotation can be used?
Or is there any other way to achieve the same?
XML namespaces need to be set for the links to be created, ex, set the
one in XmlRootElement
Cheers, Sergey
Thanks in advance.
--
View this message in context:
http://cxf.547215.n5.nabble.com/CXF-WADL-How-to-link-grammar-and-representation-tags-tp5114027p5114027.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com