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 req)

and ExecuteRequest bean class:

@XmlRootElement
public class ExecuteRequest extends WSBaseRequest
{
  private String scriptName;
  private Map<String, String> params;

  getters..
  setters..
}


Sergey Beryozkin-2 wrote:
> 
> Hi
> 
> I really need more information please. Which bean, a JAXB one, with one of
> its fields being of Map type ?
> Is it a form submission ? what is the resource method signature ?
> 
> thanks, Sergey
> 
>>
>> 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 to post app xml in the POST body and on the Url all ends up
>> with null set instead of the map with key value pairs.
>>
>> Thanks,
>> -Vitaly
>> -- 
>> View this message in context: 
>> http://old.nabble.com/CXF-REST-Map%3CString%2C-String%3E-as-argument-can-it-handle-it--tp26312629p26312629.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/CXF-REST-Map%3CString%2C-String%3E-as-argument-can-it-handle-it--tp26312629p26318928.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to