Paul,
I was thinking something along the lines of:
<xsd:element name="bank">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="link">
<xsd:annotation>
<xsd:appinfo>
<wadlb:bindings>
<wadlb:definition>
http://otherApplication.com/application.wadl#resourceName</wadlb:definition>
</wadlb:bindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="ref" default="self" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Although this is a bit wordy it would allow a generation tool to grab
and generate an interface for this WADL, and if it contains suitable
grammar links it should be able to give you the correct types also. I
would be happy if someone has a better suggestion though....
(Still waiting to hear back about the code)
Gerard
On 19:59, Paul Sandoz wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">On Oct 6,
> 2009, at 2:30 PM, gerard davison wrote:
>
>>
>> A few weeks ago Paul S was kind enough to post the following proposal
>> of mine in a thread about clients that use dynamic proxies to give a
>> static programming interface:
>>
>> http://kingsfleet.blogspot.com/2009/09/javalangreflectproxy-client-based-on.html
>>
>>
>> I have since revised this proposal a bit with a few simplification
>> that should make it work on the server side also:
>>
>> http://kingsfleet.blogspot.com/2009/10/proxy-client-based-on-jersey-with-bit.html
>>
>>
>> I would be interested in any feedback. I plan to be thinking next on
>> how to annotation a XML Schema so that a generator could generate the
>> correct interfaces.
>
> How can the XSD be used to derive the resource interfaces? are you
> referring to generating interfaces from WADL and also utilizing any
> XSD that the WADL refers to?
>
> It would be great to have a working prototype to experiment with :-)
>
> Paul.
>
>> I know that many prefer the fluent API, me included on some days, but
>> certain classes of users a static client has advantages.
>>
>> Cheers,
>>
>> Gerard
>>
>> --
>> Gerard Davison | Senior Principal Software Engineer | +44 118 924 5095
>> Oracle JDeveloper Web Service Tooling Development
>> Oracle Corporation UK Ltd is a company incorporated in England & Wales.
>> Company Reg. No. 1782505.
>> Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.
>>
>> Blog http://kingsfleet.blogspot.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
> </div>
>
--
Gerard Davison | Senior Principal Software Engineer | +44 118 924 5095
Oracle JDeveloper Web Service Tooling Development
Oracle Corporation UK Ltd is a company incorporated in England & Wales.
Company Reg. No. 1782505.
Reg. office: Oracle Parkway, Thames Valley Park, Reading RG6 1RA.
Blog http://kingsfleet.blogspot.com