Hi Doug

There's a system test verifying that a json text can be converted into a 
JAXB-annotated
Book class, please see 
systests/jaxrs/JAXRSClientServerBookTest.updateBookWithJSON();

Jettison 1.0 (MappedXMLInputStream) is used as a message body reader for JSON data, can it be that it can not handle the incoming JSON stream ? I know that after Dan K has upgraded the version of Jettison he had to update the test Json fragments too...
Another possibility is that  CrystalParameters is not having an @XMLRootElement 
annotation ?

Perhaps a BadgerFishProvider can do better ? Please see a 
systest/jaxrs/JAXRS...SpringProviderTest

Cheers, Sergey

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.

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to