This is the deprecated HTTP binding that you use so I'm not sure what is 
happening. Please consider migrating to JAX-RS

cheers, Sergey 

-----Original Message-----
From: sevenhills [mailto:[email protected]]
Sent: Thu 1/7/2010 12:21 AM
To: [email protected]
Subject: RestFull Webservices with POST method
 

Hi, i'm getting problem with POST for sending big data with json format
..please help me out.

i'm getting "null" in  my implementation class.

I have created cxf.xml files and done the configuration.

I'm pasting my interface and my implementation  classes here :

package com.server.rest;

import javax.jws.WebParam;
import javax.jws.WebService;
import org.codehaus.jra.HttpResource;
import org.codehaus.jra.Post;


@WebService
public interface ICompanyServices {
        
        @Post
        @HttpResource(location="/companyservices/{name}/saveItem")
        com.server.dto.User saveItem(@WebParam (name="name") String name,
                                                @WebParam (name="user") 
com.server.dto.User pUser);
}



package com.server.rest;
import com.server.dto.User;

public class ImpCompanyServices implements ICompanyServices{
        
        public com.server.dto.User saveItem(String name, com.server.dto.User 
pUser)
{
                com.server.dto.User lUser = new com.server.dto.User();  
                lUser.setName("json");  
                lUser.setLocation("US");        
                return lCatClient;
        }
}


i hopes i can get quick reply.

Thanks,
Malli.

-- 
View this message in context: 
http://old.nabble.com/RestFull-Webservices-with-POST-method-tp27053193p27053193.html
Sent from the cxf-user mailing list archive at Nabble.com.


Reply via email to