Re: CXF REST MapString, String as argument can it handle it?

2009-12-03 Thread vickatvuuch
Yup, I did say that.. Thanks! I may actually switch to use a list of beans instead as to simplify things, anyway. Sergey Beryozkin-2 wrote: Hi, Sergey, I just wonder if you had a chance to implement this in 2.2.5? No, you said there was no rush :-). I actually did look at it briefly

Re: CXF REST MapString, String as argument can it handle it?

2009-12-01 Thread Sergey Beryozkin
Hi, Sergey, I just wonder if you had a chance to implement this in 2.2.5? No, you said there was no rush :-). I actually did look at it briefly just before the release but could not figure out, fast enough, how to do it cleanly...Still planning to do it for 2.2.6/2.3 cheers, Sergey

Re: CXF REST MapString, String as argument can it handle it?

2009-11-30 Thread vickatvuuch
Sergey, I just wonder if you had a chance to implement this in 2.2.5? Thanks, -Vitaly Sergey Beryozkin-2 wrote: You can still do it even now, but it will require you to do some manual coding. You can register a ParameterHandlerExecuteRequest and then parse a query string from within

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread vickatvuuch
Here is spring config: jaxrs:server address=/v1/rest jaxrs:serviceBeans ref bean=scriptoServiceBean/ /jaxrs:serviceBeans jaxrs:providers ref bean=aegisProvider/

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread Sergey Beryozkin
Hi, Here is spring config: jaxrs:server address=/v1/rest jaxrs:serviceBeans ref bean=scriptoServiceBean/ /jaxrs:serviceBeans jaxrs:providers ref bean=aegisProvider/ /jaxrs:providers Here is the impl method: @POST @Path(/execute) public ExecuteResult execute(@QueryParam() ExecuteRequest

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread vickatvuuch
Thanks, I understand your suggestion, however the destination of these params is a groovy script which is why I wanted to piece together params as name value pairs and map is what fits best. My understanding that passing a map is an open issue under CXF is it? Sergey Beryozkin-2 wrote: Hi,

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread Sergey Beryozkin
If you pass the information as a POST body then it should work (Aegis should handle it or JAXB + XmlJavaTypeAdapter on the field of type Map). If you pass it as a query, something like ?name=scriptNameparams=a%3DaValue%26b%3DbValue then no, params won't be injected into a Map...Dan is plaaning

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread vickatvuuch
Yes, I guess I will use POST in this case and this body does fill in my map. It would be nice to allow it on the Url as well. ie: params.k1=v1params.k2=v2 etc. ns1:ExecuteRequest ns2:type=ns1:ExecuteRequest xmlns:ns1=http://scripto.ports.v1.webservices.foo.com;

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread Sergey Beryozkin
You can still do it even now, but it will require you to do some manual coding. You can register a ParameterHandlerExecuteRequest and then parse a query string from within that handler and populate an ExecuteRequest instance accordingly... But I'll see if I can enhance the implementation a bit

Re: CXF REST MapString, String as argument can it handle it?

2009-11-12 Thread vickatvuuch
Sergey, I appreciate your help. There is no rush, I even think that in my case POST is better as I don't want to make it too easy to hit a groovy script on the server side from internet explorer anyway. So for now POST does it for me. It would of course be nice to have this support in the

CXF REST MapString, String as argument can it handle it?

2009-11-11 Thread vickatvuuch
Must be a simple one for anyone already done it. I have tried it today and couldn't figure out why it would not initialize my bean with a Map in it, anyone knows the trick? There seem to be a bug open on this, but I'm not sure if there is still an issue and if so is there a way to do this? Tried