Here, an example of XRD file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <XRD> <Subject>/path/to/service/A</Subject> <Link rel="describedBy" type="contentType" href="/info/about/the/contentType" /> <http-methods> <http-method type="GET"> <primary-uri>/path/to/service/A</primary-uri> <query-parameters /> <headers> <header type="Accept"> <Link rel="describedBy" type="application/xrd+xml" href="/info/about/the/contentType" /> <representations> <representation>contentType</representation> <representation>contentTypeB</representation> </representations> </header> </headers> </http-method> <http-method type="DELETE" async="true"> <primary-uri>/path/to/service/A</primary-uri> <query-parameters> <query-parameter required="true"> <name>param!</name> <type>string</type> </query-parameter> <query-parameter> <name>paramB</name> <type>string</type> </query-parameter> </query-parameters> <headers> <header type="Accept"> <Link rel="describedBy" type="contentType" href="/info/about/the/contentType" /> <representations> <representation>contentType</representation> <representation>contentTypeB</representation> </representations> </header> </headers> </http-method> </http-methods> </XRD>
It seems that it contains enough information describing the service. Anyway I think I will need to write the interfaces manually. On 23 July 2013 13:16, Julio Carlos Barrera Juez < [email protected]> wrote: > Well, > > XRD and XRDS are used by OpenID and pretend to be WS definition standards > (more info here: > http://wiki.openid.net/w/page/12995256/XRD-based%20Service%20Discovery). > Anyway I'm having same problem, because I found XSD's defining WS model, > but not WADLs defining the service itself. > > XRD's seems to define the service, but I don't want to create my client > manually, I'd prefer having a tool generating it from XRD. > > > On 23 July 2013 12:39, Sergey Beryozkin <[email protected]> wrote: > >> Hi >> >> On 23/07/13 11:28, Julio Carlos Barrera Juez wrote: >> >>> Well, I have found that in the service I'm using, I have links to XSD >>> schemas inside the XRD files. It would help a lot ;-). >>> >>> I'm not sure XRD is as 'capable' as WADL in providing enough metadata >> to the client application or a generic one which can offer something on top >> of WADL. May be I'm not yet appreciating what XRD is :-) >> >> Cheers, Sergey >> >> >>> On 23 July 2013 12:17, Julio Carlos Barrera Juez < >>> [email protected]> wrote: >>> >>> Hi all! >>>> >>>> I want to generate a REST client of a REST service defined by XRD. Is it >>>> possible to generate Java classes of the model and the service with an >>>> XRD? >>>> I know how to generate Java classes form WSDL and WADL files with >>>> command >>>> line tools or Maven plugins and goals, but not with XRD. >>>> >>>> Thank you! >>>> >>>> >>> >> >
