Re: http 415 error in cxf rest service

2016-08-31 Thread cacert
hi, as you said i could be able to solve this by defining a json provider.thank you. -- View this message in context: http://camel.465427.n5.nabble.com/http-415-error-in-cxf-rest-service-tp5786955p5787009.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: http 415 error in cxf rest service

2016-08-30 Thread Sergey Beryozkin
usually causes the error you are seeing. Does your Book class have an @XmlRootElement at its top? If you're using JAXB that is required even for JSON. Brad -- View this message in context: http://camel.465427.n5.nabble.com/http-415-error-in-cxf-rest-service-tp5786955p5786966.html Sent fro

http 415 error in cxf rest service

2016-08-30 Thread cacert
url command: curl -H "Content-Type: application/json" -X POST -d '{"name":"xyz","isbn":"xyz"}' http://localhost:8080/api/servlet/rest/bookstore/books -- View this message in context: http://camel.465427.n5.nabble.com/http-415-error-in-cxf-rest-service-tp5786955.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: http 415 error in cxf rest service

2016-08-29 Thread Ranx
error-in-cxf-rest-service-tp5786955p5786966.html Sent from the Camel - Users mailing list archive at Nabble.com.