Hi,
I am trying to set up a JSR-311 REST "like" service and POSTing a string
of JSON to my /service/init/{id} address. The server seems to recognise
the address because catalina.out reports:
Mar 18, 2008 11:11:37 AM org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor
handleMessage
INFO: Found operation: init
The problem is that my init service function is never actually called. I
figure that something is going wrong with the JAXB? interpretation of my JSON
data. Is there some way to switch on debugging of this process to see
what is or isn't going on?
After the above server message my client connection eventually
just times out.
I am just assuming that consuming application/json works ...?
@POST
@Path("init/{clientId}")
@ProduceMime("text/plain")
@ConsumeMime("application/json")
public String init(@UriParam("clientId") String id, @HttpContext
UriInfo
info, CrystalParameters cp) {
System.out.println("-----------received the sucker!----------");
MultivaluedMap params = info.getQueryParameters();
// nothing happening here yet ...
String url = "/ReflnCover/" + id + "/basic";
return url;
}
Thanks
Doug
P.S. I'm using apache-cxf-2.1-incubator-20080306.021818-37.zip under
apache-tomcat-5.5.20 on kubuntu.