Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
rsmits
Contributor
Contributor

Send message to RPC API by using tXMLRPCInput component

Hi All,

 

I have created a customer by using a RPC API according the specifications below:

0683p000009M6F6.jpg

This is how I have configured my tXMLRPCInput compontent in Talend:

 

0683p000009M6VF.jpg

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:

 

0683p000009M6SC.jpg

The XML structure should look something like this (to update the firstname):

0683p000009M67g.jpg

This is how I have configured my tXMLRPCInput component in Talend:

0683p000009M6VP.jpg

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

Labels (2)
1 Reply
Anonymous
Not applicable

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