On 05/10/12 10:20, jbright wrote:
Here is another interesting question which I've related to CXF JAX-RS.I do have a schema like below: <xs:element name="FruitRequest"> <xs:complexType> <xs:sequence> <xs:element name="Credentials" type="Credentials"/> <xs:element minOccurs="0" name="FruitSearch" type="FruitSearch"/> </xs:sequence> </xs:complexType> </xs:element> <xs:complexType name="FruitSearch"> <xs:sequence> <xs:element maxOccurs="unbounded" name="FruitSearchParams" type="FruitSearchParams"/> </xs:sequence> </xs:complexType> <xs:complexType name="FruitSearchParams"> <xs:sequence> <xs:element minOccurs="0" name="Color" type="xs:string"/> <xs:element minOccurs="0" name="Taste" type="xs:string"/> <xs:element minOccurs="0" name="Type" type="xs:string"/> </xs:sequence> </xs:complexType> In the JAVA code its like this: @GET @Path("/findFruit") @Produces ("application/xml") public SpaSalesRepResponse findFruit(@QueryParam("")FruitRequest request) { } Now when I deploy the service and get the WADL I get like below: <resources base="http://localhost:8080/storewell/services/fruits"> <resource path="/"> <resource path="findFruit"> <method name="GET"> <request> <param name="credentials.appid" style="query" type="xs:string"/> <param name="credentials.token" style="query" type="xs:string"/> <param name="fruitsearch.fruitsearchparams" style="query" repeating="true"/> </request> <response> <representation mediaType="application/xml" element="prefix1:FruitResponse"/> </response> </method> </resource> </resource> </resources> Now when I make the request url in the browser.... I do have the problem.. URL I framed is like this :: http://..../storewell/services/fruits/findFruit?credentials.appid=frontshop&credentials.token=AsaBb34TTILil&fruitsearch.fruitsearchparams.color=RED The response from the url is Response-Code: 204
I guess your service does not return anything, hence 204 Sergey
Kindly advice.. -- View this message in context: http://cxf.547215.n5.nabble.com/Multi-Level-complexType-not-set-by-JAX-RS-WADL-tp5715784.html Sent from the cxf-user mailing list archive at Nabble.com.
-- Sergey Beryozkin Talend Community Coders http://coders.talend.com/ Blog: http://sberyozkin.blogspot.com
