Hi,
I've created a webclient and posted a POJO to remote REST service.
I was expecting the response to be unmarshalled as POJO of type .
My code:
WebClient authenticationClient = WebClient.create(AUTH_URL);
AuthenticationResponse authenticationResponse =
authenticationClient.post(authenticationRequest,AuthenticationResponse.class);
I've checked that I'm getting response by putting an interceptor.
The response xml contains lot of elements in it. I'm interested in mapping
few properties into my POJO.
Hence my POJO doesn't contain getters/setters for all the elements in the
response xml. Is this a problem?
I've put debug points for the existing POJO constructor and setters.
JAXBProvider is invoking these, but all are being set as null.
So, after the above call I'm getting authenticationResponse object created
but with all properties as null.
There is no exception being thrown.
Can someone please help, how I can unmarshal properly.
Thanks,
Kiran Sireesh
--
View this message in context:
http://cxf.547215.n5.nabble.com/Unable-to-unmarshal-REST-response-into-POJO-tp5713694.html
Sent from the cxf-user mailing list archive at Nabble.com.