How do I extract data from a WSDL?

Seven Stars

How do I extract data from a WSDL?

Hi Community,

Can anyone please assist. I need to extract data from a WSDL webservice and publish the data to tlog.

 

I have the following input XML:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:inc="http://www.service-now.com/incident" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <inc:getRecords>
		 <!--Optional:-->
         <__encoded_query>active=true</__encoded_query>
         <!--Optional:-->
         <__limit>10</__limit>
         <!--Optional:-->
         <__first_row/>
         <!--Optional:-->
         <__last_row/>
         <!--Optional:-->
         <__order_by/>
         <!--Optional:-->
         <__order_by_desc/>
         <!--Optional:-->
         <__exclude_columns/>
      </inc:getRecords>
   </soapenv:Body>
</soapenv:Envelope>

I tried using the tWebServiceInput, but cannot see where I can define my input variables

 

Thanks

Eight Stars sgv
Eight Stars

Re: How do I extract data from a WSDL?

Hi germatrix,

 

I will try to assist you, i think the tWebServiceInput is the good component.
 In Advanced Setting of this component you have a check box : Use Advanced (or somethink like that) . Check it !
Then Talend will generate some code routine. You have some exemple code in the Java part Code of you tWebServiceInput.

Then you have to do something like that :

 

GetRecords gr = new GetRecords();

gr.setEncodedQuery(true);

gr.setLimit(10);

 

etc ...

 

Hope this help,

Good luck ,

 

SGV

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

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

Talend API Designer – Technical Overview

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

Watch Now