August 15, 2023

Scenario: Guessing the State name from an XMLRPC – Docs for ESB 6.x

Scenario: Guessing the State name from an XMLRPC

This scenario describes a two-component Job aiming at using a RPC method and
displaying the output on the console view.

Use_Case_tXMLRPC1.png
  • Drop the tXMLRPCInput and a tLogRow components from the Palette to the design workspac.

  • Set the tXMLRPCInput basic settings.

Use_Case_tXMLRPC2.png
  • Define the Schema type as Built-in for this use case.

  • Set a single-column schema as the expected output for the called method is
    only one parameter: StateName.

Use_Case_tXMLRPC3.png
  • Then set the Server url. For this demo, use:
    http://phpxmlrpc.sourceforge.net/server.php

  • No authentication details are required in this use case.

  • The Method to be called is:
    examples.getStateName

  • The return class is not compulsory for this
    method but might be strictly required for another. Leave the default setting for
    this use case.

  • Then set the input Parameters required by the
    method called. The Name field is not used in
    the code but the value should follow the syntax expected by the method. In this
    example, the Name used is State Nr and the value randomly
    chosen is 42.

  • The class has not much impact using this demo method but could have with
    another method, so leave the default setting.

  • On the tLogRow component Component view, check the box: Print schema column name in front of each value.

  • Then save the Job and press F6 to execute
    it.

Use_Case_tXMLRPC4.png

South Dakota is the state name found using the
GetStateName RPC method and corresponds the 42nd State of the United
States as defined as input parameter.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x