Parse a response from the SOAP call

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


Accepted Solutions
Highlighted
Eight Stars

Re: Parse a response from the SOAP call

in a cProcessor,

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

All Replies
Highlighted
Eight 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?
Eight 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?
Eight 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

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read