[ https://issues.apache.org/jira/browse/CXF-3909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13151211#comment-13151211 ]
Sergey Beryozkin commented on CXF-3909: --------------------------------------- You have Response r = client.accept("application/json") .type("application/json") .invoke("GET", inputBean); and thus it is the responsibility of the client code to check Response.getStatus() but you can do: client.accept("application/json") .type("application/json"); try { JSONBean bean = client.get(JSONBean.class); } catch (ServerWebApplicationException ex) { } > Sending a payload with GET doesn't work > --------------------------------------- > > Key: CXF-3909 > URL: https://issues.apache.org/jira/browse/CXF-3909 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 2.5 > Reporter: Benson Margulies > Assignee: Sergey Beryozkin > > git://github.com/bimargulies/cxf-jaxrs-archetype.git, branch 'get-mystery', > shows a problem discussed on the user list. If you try to send a blob of JSON > with GET, the server side doesn't see it. > While this code doesn't have the logging interceptors installed, I originally > diagnosed it by putting an out logger on the WebClient and an in logger on > the service side provider. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira