On 08/10/12 11:06, jbright wrote:
I'm using @Path, @GET and both @Produces, @Consumes.
Is that not acceptable?
It is acceptable, but a match is not guaranteed, so I explained below
why you may get either 415 or 406.
Try to isolate the issue. Have a single resource method only and then
add the next one, as soon as the match for the next method fails you
will know what is interfering
Sergey
John
Getting these 415, 406 while I send XML input request thru the Firefox
RESTClient.
On Sun, Oct 7, 2012 at 9:56 PM, Sergey Beryozkin-5 [via CXF]<
[email protected]> wrote:
One thing I'd like to clarify.
Consider a number of resource method candidates, all of them having
@Path and http verb (ex, @POST) matching, but failing either @Consumes
or @Produces match - this is when you can get either 415 or 406,
depending on which this properties is mismatched more
Sergey
On 05/10/12 15:58, Sergey Beryozkin wrote:
On 05/10/12 15:17, jbright wrote:
/Got the below issue when I gave XML input for my REST service./
ID: 54
Response-Code: 400
Content-Type: text/plain
Headers: {Content-Type=[text/plain], Date=[Fri, 05 Oct 2012 14:09:57
GMT]}
Payload: JAXBException occurred : Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]. Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0].
*Now I set the Content-Type to text/plain*
ID: 55
Response-Code: 415
Content-Type: text/xml
Headers: {Date=[Fri, 05 Oct 2012 14:10:59 GMT], Content-Length=[0]}
Despite of setting Content-Type to text/xml, still I'm facing the same
issue.
So I did Accept=text/xml, now the issue is..
ID: 56
Response-Code: 406
Content-Type: text/xml
Headers: {Date=[Fri, 05 Oct 2012 14:15:49 GMT], Content-Length=[0]}
What is wrong?
It is difficult to advice anything specific without having a test case.
Can you please assemble a simple one ?
Cheers, Sergey
--
View this message in context:
http://cxf.547215.n5.nabble.com/Status-Code-415-406-repeating-tp5715818.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com
------------------------------
If you reply to this email, your message will be added to the discussion
below:
http://cxf.547215.n5.nabble.com/Status-Code-415-406-repeating-tp5715818p5715926.html
To unsubscribe from Status Code: 415, 406 repeating, click
here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715818&code=am9obmJyaWdodC5qQGdtYWlsLmNvbXw1NzE1ODE4fDYzMzE2Mzg1MA==>
.
NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
--
View this message in context:
http://cxf.547215.n5.nabble.com/Status-Code-415-406-repeating-tp5715818p5715987.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com