Imran M Yousuf wrote:
> Hi,
>
> I am fairly new to RESTful WS in terms of using it and as steps of
> learning it I am interested in generating WADL and using it for
> generating client stubs. Following the generate-wadl sample I
> succeeded in producing the wadl file :) but I am not sure whether its
> content are appropriate or not.
I do not see any element attribute on the representation referencing an
element in the schema. This requires you reference it as follows:
@request.representation.qname {
http://www.example.com}item
> Additionally the schema file seemed to
> referred to from the wadl rather than including its content.
>
Yes, we either need to include the XSD or make sure it can be referenced
relative to the base URI. BTW if you generate the application.html it
does have XSD embedded but it is making use of xsltproc.
Could you log an issue?
> Firstly, I would be grateful if someone could please confirm whether
> their content is okey or not.
>
> Then I tried to create client stub from the WADL file in NetBeans
> WebApplication project. But inspecting the JavaScript it shows that it
> did could initialize the location but it did not read the resources
> from the WADL. Is this normal?
I do not know, i will forward this email to the tooling guys.
> I was under the impression it would
> also create operations for the resources as well. Can someone point me
> to a ANT or Maven plugin to generate the client stubs for Java or JS?
>
See
http://wadl.dev.java.net
> I would also be grateful if someone would be kind enough to point me
> to an example or sample on how to use the Jersey Client API.
>
http://blogs.sun.com/sandoz/entry/ehcache_using_jersey
http://blogs.sun.com/sandoz/entry/jersey_client_api
http://blogs.sun.com/sandoz/entry/jersey_client_api
Paul.
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109