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.
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
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.
error-in-cxf-rest-service-tp5786955p5786966.html
Sent from the Camel - Users mailing list archive at Nabble.com.