Hi,
Redirecting to the users,
On 27/09/12 19:17, bpirvali wrote:
Hi Guys,
I went through the documentation, which helped me figure out several issues
I had, but not the following two problems:
1) I have got a get(GET) method: get(@Context Request request,
@PathParam("isbn")String isbn)
How do I formulate the WADL for it so that I get the @Context in the
produced Java code?
It is not possible to express that in WADL because @Context is meant to
capture a request information for the benefit of a service.
Instead, get the tool to generate an interface only, and have 'Request'
injected into the implementation class field
2) I have got a update (PUT) method: update(@PathParam("isbn") String isbn,
BookState st)
How do I formuate the WADL to get the BookState in the produced Java code?
Here is my current WADL, which does not do it:
<resource path="/{isbn}">
....
<method name="GET" id="get">
<request />
<response>
<representation mediaType="application/xml"
element="prefix1:book" />
</response>
</method>
<method name="PUT" id="update">
<request>
<representation mediaType="application/xml"
element="prefix1:book" />
</request>
<response>
<representation mediaType="application/octet-stream" />
</response>
</method>
</resource>
what about a response type for 'get'? May be you can paste the schema
fragment ?
Sergey
Thank u so much,
Behzad
--
View this message in context:
http://cxf.547215.n5.nabble.com/Need-some-help-with-WADL2Java-Tool-tp5714978.html
Sent from the cxf-issues mailing list archive at Nabble.com.