I want to send a POST request to test my local webservice. The request body is an XML body and i generated the classes using JAXB.
Everything is fine but when I execute the following code
ClientResponse response = service.path("api")
.path("v1")
.path("shipments")
.path("package")
.path("order")
.path("status")
.accept(MediaType.APPLICATION_XML)
.post(ClientResponse.class, orderStatusRequest);
I get the following error
com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class com.api.shipments.model.OrderStatusRequestType, and MIME media type, application/octet-stream, was not found
Can someone point me to a direction, what i am missing here?