Hi
I have a question
the Parameter and Response Type of EndPoint is interface
public interface ProtoTypeBizService<I extends CustomerIF, R extends
CustomerIF> {
@POST
@Path("doSomething")
@Produces(MediaType.APPLICATION_XML)
@Consumes(MediaType.APPLICATION_XML)
R doSomething(I customer);
}
and the Abstact Implement is
public abstract class AbstractProtoTypeService<I extends AbstractCustomer, R
extends AbstractCustomer> implements ProtoTypeBizService<I, R> {
@Override
public R doSomething(I customer) {
return doSomeInternal(customer);
}
abstract protected R doSomeInternal(I customer);
}
and the Implement is
@Path("/ProtoTypeService")
public class ProtoTypeServiceImpl extends AbstractProtoTypeService<Customer,
Customer> {
@Override
protected Customer doSomeInternal(Customer customer) {
return customer;
}
}
when I send the request in WinkClient. I get a error message on server
The following error occurred during the invocation of the handlers chain:
WebApplicationException (415 - Unsupported Media Type) with message 'null'
while processing POST request sent to
http://localhost:8080/WinkServer/ProtoTypeService/doSomething
My setting is OK, I test it on Jersey and Apache CXF. they are all OK.
I want to ask that, Is there any possible to make this case runable in Wink.
Thanks.
--
View this message in context:
http://apache-wink-users.3471013.n2.nabble.com/JAXB-interface-415-Unsupported-Media-Type-tp7572669.html
Sent from the Apache Wink Users mailing list archive at Nabble.com.