Six Stars

Parse a response from the SOAP call

When I call the SOAP service with cCXF component(RAW mode) I get back the respons in the log

...BodyType: sun.net.www.protocol.http.HttpURLConnection.HttpInputStream, Body: [Body is instance of java.io.InputStream], Out: null: ]

How can I see the response?

 

This is my setting

image.png

1 ACCEPTED SOLUTION

Accepted Solutions
Seven Stars

Re: Parse a response from the SOAP call

in a cProcessor,

 system.out.println(exchange.getIn().getBody(String.class))
5 REPLIES
Seven Stars

Re: Parse a response from the SOAP call

in a cProcessor,

 system.out.println(exchange.getIn().getBody(String.class))
Six Stars

Re: Parse a response from the SOAP call

What Java object contains response and how can I retrieve it?
Seven Stars

Re: Parse a response from the SOAP call

The one I said in my previous comment : exchange

Six Stars

Re: Parse a response from the SOAP call

Can you write Java code?
Seven Stars

Re: Parse a response from the SOAP call

exchange.getIn().getBody(String.class).

 

This is very basic route stuff, I guess you should first take time to learn thoses basics