Re: Consuming mutiple xml representations on resource

2015-10-06 Thread Sergey Beryozkin
I think in earlier versions if you had only aplication/json with an element ref then it would still not generate a class like Session/etc. But now both application/json and application/xml with element refs will generate it. Next, some users want to have say multiple XML representations but po

Re: Consuming mutiple xml representations on resource

2015-10-06 Thread Vjacheslav V. Borisov
2015-10-05 18:28 GMT+04:00 Sergey Beryozkin : > Done for 3.1.4-SNAPSHOT > Thanks again, we will try it. Upgrading from 3.0.4 found strange behavior (started at 3.0.6) When method request contains xml and json representation and both contain "element" reference

Re: Consuming mutiple xml representations on resource

2015-10-05 Thread Sergey Beryozkin
Done for 3.1.4-SNAPSHOT Sergey On 05/10/15 08:30, Vjacheslav V. Borisov wrote: 2015-10-05 0:56 GMT+04:00 Sergey Beryozkin : Re Patch/etc - yes wadl-to-java can not generate the custom annotation classes - it is time to do it though, will take care of it Thanks ! -- Sergey Beryozkin Ta

Re: Consuming mutiple xml representations on resource

2015-10-05 Thread Vjacheslav V. Borisov
> > -Original Message- > > From: Vjacheslav V. Borisov [mailto:slav...@gmail.com] > > Sent: Donnerstag, 1. Oktober 2015 15:35 > > To: users@cxf.apache.org > > Subject: Re: Consuming mutiple xml representations on resource > > > > 2015-10-01 14:16 GMT+04

Re: Consuming mutiple xml representations on resource

2015-10-05 Thread Vjacheslav V. Borisov
2015-10-05 0:56 GMT+04:00 Sergey Beryozkin : > > Re Patch/etc - yes wadl-to-java can not generate the custom annotation > classes - it is time to do it though, will take care of it > Thanks !

Re: Consuming mutiple xml representations on resource

2015-10-04 Thread Sergey Beryozkin
Hi The method parameters do not affect the selection algorithm. You can try a custom CXF ResourceComparator - then you can tell the runtime which of the two equal candidates wins. Re Patch/etc - yes wadl-to-java can not generate the custom annotation classes - it is time to do it though, will

RE: Consuming mutiple xml representations on resource

2015-10-04 Thread Andrei Shakirin
deal with multiple error codes in fault case. Regards, Andrei. > -Original Message- > From: Vjacheslav V. Borisov [mailto:slav...@gmail.com] > Sent: Donnerstag, 1. Oktober 2015 15:35 > To: users@cxf.apache.org > Subject: Re: Consuming mutiple xml representations on resource

Re: Consuming mutiple xml representations on resource

2015-10-01 Thread Vjacheslav V. Borisov
2015-10-01 14:16 GMT+04:00 Vjacheslav V. Borisov : > Hi! > > I am trying to model rest api which can consume different xml > representations, but without success > I have two methods on same url which accepts application/xml, but > different objects: single object and collection of objects > > ht