GET response from hitting a wsdl

Seven Stars

GET response from hitting a wsdl

hi 

i am trying to hit a WSDL and get the response in tlogrow

case:

i am using soap ui to test and get the response from it which is possible in that soap ui. now same  thing i want to do i have table in my db and want to take that as input schema or request and then in between i have used tESBconsumer to hit the WSDL but but not able to do it and get the same response as i am getting in soap ui.

 

please suggest me how can i achieve the above condition.

 

input ----->xmlmap----->tesbconsumer---->tlogrow..

 

 

Six Stars JVL
Six Stars

Re: GET response from hitting a wsdl

Hi,

 

Can you provide us the tESBconsumer configuration + the error message from the Talend studio.

Right now it is difficult to say: it can be the tXMLmap (your input)/ configuration/ ...

 

Kr,

Jvl

Seven Stars

Re: Talend JOB To GET response by calling a wsdl same like SOAP request.

i am still in process of building this job, so let me expain what i want

please help me achieving below scenario through Talend Job by calling a wsdl .

This is the example input and output i am getting after soap request and resonpse.

 

requesting

<inp:ET_EMPLOYEEMaster_Test>
     <inp:EMPORGID>2</inp:EMPORGID>
    <inp:EMPID>1we</inp:EMPID>
    <inp:NAME>test</inp:NAME>
    <inp:CODE>?</inp:CODE>
</ET_EMPLOYEEMaster_Test>

 

Response :

<inp:ET_EMPLOYEEMaster_Test>
     <inp:EMPORGID>2</inp:EMPORGID>
    <inp:EMPID>1we</inp:EMPID>
    <inp:NAME>test</inp:NAME>
    <inp:CODE> 1</inp:CODE>
</ET_EMPLOYEEMaster_Test>

 

How to build a job so that it can request that WSDL and get me the above response in Talend.

Seven Stars

Re: Talend JOB To GET response by calling a wsdl same like SOAP request.

if i am trying with tsoap component i am getting below mntioned error:

ug 16, 2019 2:21:37 PM com.sun.xml.messaging.saaj.soap.SOAPPartImpl lookForEnvelope
SEVERE: SAAJ0514: Unable to create envelope from given source because the root element is not named Envelope
Aug 16, 2019 2:21:37 PM com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
SEVERE: SAAJ0511: Unable to create envelope from given source
Six Stars JVL
Six Stars

Re: Talend JOB To GET response by calling a wsdl same like SOAP request.

It is recommended to use tESBConsumer instead of tSoap. Build in logging, activiate SAM...

tESBConsumer will encapsulate the request into an eveloppe. 

 

How I would do this:

Build your Talend flow step by step

1) tFixedflowInput with the parameters

2) tXmlMap: import your xml

3) tESBConsumer: execute call (refer to your WSDL)

4) Log response (success and failure

 

Kr,

jvl7

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

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog