I'm new to wadl, I was expecting to fire up some open source tool to generate a whole load of client code from the wadl. I had a look at both CXF wadl2java
and java.net wadl2java
Both fail with the same error from the wadl Error compiling schema from WADL : Two declarations cause a collision in the ObjectFactory class.
I traced the error back to two declarations of "projects" within xsd1.xsd
<xs:element name="Projects" type="ns1:projects"/>
<xs:element name="projects" type="projects"/>
I hacked about with the wadl and managed to generate some code, however it appears that what is generated is not actually client code, but stub code for the server side implementation.
Question - what is the recommended way to programatically interact with the rest-api? I assume that manually constructing & parsing chunks of xml is not the way to go.
Are there any examples?
thanks in advance, Nathan