Updated 2 years, 2 months and 6 days ago
Talend SOAP and REST WebServices Usage Document :
Procedure for SOAP Web service Usage in talend as follows:
Drag and drop tWebserviceInput components from palette and provide SOAP URL in WSDL as shown in screenshot .
Creating Stubs for using SOAP API in Talend job :
Go to Advanced setting TAB - - >Enable Advance Use - - > Click button beside WSDL2Java , which create stubs as shown in below screenshot .
Magento Java Stubs Generated in routines as shown in screen shot:
Stubs usage for SOAP API as shown in below screenshot :
Using Prototype produced by Stubs to interact with SOAP API .
Getting SessionID with Login Method with parameters : Magento API Username, Magento Password .
After that using Call method with parameters as SessionID , Custom/Predefined Method name which gives Response depending on method .
Sample Magento Response as shown in below screen-shot :
Procedure for REST Web service Usage in talend as follows:
Drag and drop tRestClient component from palette and provide Rest instance URL in URL Location as shown in below screen shot .
Use Http Method : Get and Accept Type : JSON .
Select Advanced settings Tab and provided details as shown in screen shot :
Http Headers : We can pass API Username and Password in Http Headers if any exist for Rest API .
Here we can Provide ConnectionTimeout and Receive Timeout in Seconds .
3. Extracting Json Response getting from REST API using tParseJSON as shown Screen-Shot :
After executing the job , REST Response is as follows :
Screen-Shot of talend job of parsing REST API Json response .