You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by rjadrian <rj...@nc.rr.com> on 2013/06/03 15:08:54 UTC

wAdl2java not creating floating point data types properly

The interface resource created by wadl2java (using maven
cxf-wadl2java-plugin) is always setting the parameter data type to String
for any floating point types defined in the wadl.

<request>
  <doc>Request</doc>
  
    <doc>Search radius in miles</doc>
  
</request>

results in

 @GET
 @Produces("text/xml")
 ListingListType get(@QueryParam("miles") String miles);



--
View this message in context: http://cxf.547215.n5.nabble.com/wAdl2java-not-creating-floating-point-data-types-properly-tp5728638.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: wAdl2java not creating floating point data types properly

Posted by rjadrian <rj...@nc.rr.com>.
will do. Thx!



--
View this message in context: http://cxf.547215.n5.nabble.com/wAdl2java-not-creating-floating-point-data-types-properly-tp5728638p5728728.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: wAdl2java not creating floating point data types properly

Posted by Sergey Beryozkin <sb...@gmail.com>.
On 04/06/13 14:23, rjadrian wrote:
> sorry, i don't understand.
>
> I also just noticed my initial post got cut off (wadl above, generated
> Resource result below).
>
>
>
> @GET
>   @Produces("text/xml")
>   ListingListType get(@QueryParam("miles") String miles);
>
I believe the reason you are seeing 'String' instead of 'float' or Float 
(if 'miles' is an optional parameter) is because xsd:float was not 
recognized, due to the internal map where XSD types are mapped to Java 
types had no info about xsd:float.

So I updated that map and you should see it now working as expected (try 
the snapshots in a day or two)

Sergey

>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/wAdl2java-not-creating-floating-point-data-types-properly-tp5728638p5728719.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



Re: wAdl2java not creating floating point data types properly

Posted by rjadrian <rj...@nc.rr.com>.
sorry, i don't understand.  

I also just noticed my initial post got cut off (wadl above, generated
Resource result below).



@GET
 @Produces("text/xml")
 ListingListType get(@QueryParam("miles") String miles); 



--
View this message in context: http://cxf.547215.n5.nabble.com/wAdl2java-not-creating-floating-point-data-types-properly-tp5728638p5728719.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: wAdl2java not creating floating point data types properly

Posted by Sergey Beryozkin <sb...@gmail.com>.
I've updated a schema to Java type map to included 'float' and 'double' 
types too

Cheers, Sergey
On 03/06/13 14:08, rjadrian wrote:
> The interface resource created by wadl2java (using maven
> cxf-wadl2java-plugin) is always setting the parameter data type to String
> for any floating point types defined in the wadl.
>
> <request>
>    <doc>Request</doc>
>
>      <doc>Search radius in miles</doc>
>
> </request>
>
> results in
>
>   @GET
>   @Produces("text/xml")
>   ListingListType get(@QueryParam("miles") String miles);
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/wAdl2java-not-creating-floating-point-data-types-properly-tp5728638.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