Hi,

I have below two methods for CXF Rest. The getProducts returns list but
getProduct(int id) fails with error:
org.apache.cxf.interceptor.Fault: Invalid URL/Verb combination. Verb: GET
Path: /product/9


@WebResult(name="product")
@Path("/product/{product_id}")
@Get
public Product getProduct(@PathParam("product_id")int id);

@WebResult(name="product_list")
@Get
@Path("/products")
public List<Product> getProducts();


When method has @Post then incoming xml elements will be mapped to method
parameters using PathParam or WebParam ?

Regards,

Miten.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Get-parameter-not-mapping-tp5664787p5664787.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to