Hello
I tried to look for a solution to this problem in the user group in
particular and Internet in general. Since I'm stuck, I'm hoping the user
group will be able to help me. Basically when I have a URL with Matrix
parameter appended to the end everything works fine however when the matrix
param is embedded in between path, it fails.
Get the customer record - PASS
URL: /customer/1234567890;idType=ssn
Get the the shipping address for a customer - FAILS (It doesn't even match
the URI with the method)
URL: /customer/1234567890;idType=ssn/address
My code snippet is as follows:
@Path("/customer/{id}")
.......
public class Customer {
@GET
public String getCustomer( @PathParam("id") final String custId,
@MatrixParam("idType") final idType) {
// This one works fine
}
@GET
@PATH("/address")
public String getAddress( @PathParam("id") final String custId,
@MatrixParam("idType") final idType) {
..............
}
}
Could you please let me know if I'm doing something wrong or there is
alternate approach to fix this problem with some code sample?
Thanks in advance
Regards
Chandru
--
View this message in context:
http://cxf.547215.n5.nabble.com/Matrix-Parameter-added-to-the-path-in-the-middle-doesn-t-work-tp5087559p5087559.html
Sent from the cxf-user mailing list archive at Nabble.com.