Re: RS service method accepting 2 parameters

2015-12-21 Thread Maxim Solodovnik
OK Thanks for the help Sergey! On Thu, Dec 17, 2015 at 4:10 PM, Sergey Beryozkin wrote: > Hi > I may have got confused > > So you need a form sequence where every value is a complex property ? > Unfortunately JAX-RS does not support helping in this case, but you can > have a method signature wit

Re: RS service method accepting 2 parameters

2015-12-17 Thread Sergey Beryozkin
Hi I may have got confused So you need a form sequence where every value is a complex property ? Unfortunately JAX-RS does not support helping in this case, but you can have a method signature with multiple @FormParam() parameters, and use a proxy based API, so in this case by registering a cus

Re: RS service method accepting 2 parameters

2015-12-16 Thread Maxim Solodovnik
Hello Sergey, thanks for the quick response, maybe you have some example/test I can take a look at? cause currently I need to create methods like: Response resp = getClient(USER_SERVICE_URL) .path("/hash") .query("sid", r.getMessage()) .form(new Form().param("user", new JSONObject(user).toString(

Re: RS service method accepting 2 parameters

2015-12-16 Thread Sergey Beryozkin
Hi Max It is unfortunate Form accepts parameters with String values, I think we missed it should be Object instead given that ParamConverterProvider is available in JAX-RS 2.0. form() can deal with MultipartMap - CXF ships MetadataMap which implements it, and JAX-RS 2.0 ships a simple implem

RS service method accepting 2 parameters

2015-12-16 Thread Maxim Solodovnik
Hello All, I'm currently trying to write RS service accepting 2 objects of different types as parameters: ex. code: @WebService(serviceName="org.apache.openmeetings.webservice.UserWebService") @Features(features = "org.apache.cxf.feature.LoggingFeature") @Produces({MediaType.APPLICATION_JSON}) @