Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
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:
<struct>
<member>
<name>firstname</name>
<value>
<string>piet2</string>
</value>
</member>
</struct>
Please help me because I'm out of options right now.
Thanks in advance
Hello,
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.
tFileInputXML--main--tJavaRow--oncomponentok--tXMLRPCInput--main--tLogRow
Let us know if it is what you are looking for.
Best regards
Sabrina