cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muhammad Sheraz Siddiqi" <mshe...@folio3.com>
Subject @Produces programmatically
Date Tue, 31 Aug 2010 10:38:30 GMT
Hi,

I want to expose a webmethod like this:

@WebMethod
public List<CustonBean> test(String output) 
{
	If(output == "xml")
	{
		//use XML Provider i.e. output XML
	}	
	Else if(output == "json")
	{
		//use JSON Provider i.e. output JSON
	}
}

I do not want to use @Produces or rely on "Accept" request header.

Any help please ?




Mime
View raw message