Hello Gabo,

Here is the output from tcpmon

POST /rest/peopleservice/groups/014773b8-b3a6-4c92-95be-97b760ff20d2/users
HTTP/1.1
Content-Length: 424
Content-Type: application/xml; charset=UTF-8
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.0-beta2 (java 1.5)
Expect: 100-Continue

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <listWrapper>
      <_data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xsi:type="xs:string">2a849ceb-205a-4bdf-921b-f215b78642bf</_data>
      <_data xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xsi:type="xs:string">c3ae8ba3-1ea2-4ef6-a813-c7656a6334f1</_data>
   </listWrapper>

I can see the request going in from the logging interceptor for jaxrs,but
the method is not invoked.

Thanks,
Vishal



Gabo Manuel wrote:
> 
> Hi Vishal,
> 
> In what way does the call to the second method fail? Does it get 
> invoked? Are the parameters empty or null? Was the post request properly 
> structured (you can check using tcpmon or some similar tool)?
> 
> Gabo
> 
> Vishal.a wrote:
>> Hello All,
>>
>> I am trying to haave multiple POST methods something like this
>>
>> @POST
>> @Path("/groups")
>> public Summary insertGroup(Group group)
>>
>> and
>>
>> @POST
>> @Path("/groups/{id}/users")
>> public void addUsersToGroup(@PathParam("id")UUID groupId,
>>                                 ListWrapper<UUID> userIds)
>>
>> The POST call to first method works absolutely fine,however call to the
>> addUsersToGroup method fails.
>> What could i be doing wrong?
>>
>> Thanks,
>> Vishal
>>   
>> ------------------------------------------------------------------------
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com 
>> Version: 8.0.238 / Virus Database: 270.11.58/2061 - Release Date:
>> 04/15/09 19:52:00
>>
>>   
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JAXRS%3A-Problems-with-POST-tp23090556p23091264.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to