I have created a customer by using a RPC API according the specifications below:
This is how I have configured my tXMLRPCInput compontent in Talend:
In this case I have already prefilled some values in global variables and I'm also using a context variable. This works perfect!!!
I also want to update a user in case the user already exists. This are my specifications to edit a user:
The XML structure should look something like this (to update the firstname):
This is how I have configured my tXMLRPCInput component in Talend:
My question is how I need to define the "struct" part (highlighted in yellow)? I can't define a struct class in this case.
I basically need to add this part to the message:
Please help me because I'm out of options right now.
Thanks in advance
What's your source file? Are you trying to parse data from an XML file and pass its elements as parameter values to a RPC API by using tXMLRPCInput component?
If so, you could read your XML file and then retrive the root element node, parse it and store the values in globalMap on tJavaRow.
Let us know if it is what you are looking for.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Take a look at this technical overview video of Talend API Designer
Find out how to get started with APIs