cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sbery...@progress.com>
Subject RE: RestFull Webservices with POST method
Date Thu, 07 Jan 2010 11:07:19 GMT

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:malliseven.hills@gmail.com]
Sent: Thu 1/7/2010 12:21 AM
To: users@cxf.apache.org
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.



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message