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.