Hi,
I am using CXF 2.5.3 SNAPSHOT version and calling a REST webservice using
webclient. The webservice looks like this :
@Produces("application/json")
@POST
@Path("/EditUser")
public Status editUser(@FormParam("sessionid") String sessionid,
@FormParam("user") User user);
The code to call the WS is as follows:
WebClient wc =
WebClient.create(address,Collections.singletonList(new
JacksonJsonProvider()));
wc.path("/EditUser");
Status status = wc.post(new Form().set("sessionid",
strSessionId).set("user", userDataJSON), Status.class);
I get the following exception :
org.apache.cxf.interceptor.Fault: .No message body writer has been found for
class : class org.apache.cxf.jaxrs.ext.form.Form, ContentType :
application/xml.
What could be going wrong here?
Regards,
SJ
--
View this message in context:
http://cxf.547215.n5.nabble.com/POSTing-parameters-with-WebClient-post-throws-Exception-No-message-body-writer-tp5710561.html
Sent from the cxf-user mailing list archive at Nabble.com.