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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.