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: 
M4ST3R
Contributor
Contributor

tWebservice + String Array - SOAP API

Hello Community,

could need some help with a webservice combined with a string array.

What I want to do is read data from a SQL Server -> create XML structure and send it to a webservice (soap)

0693p00000BE3njAAD.png0693p00000BE45TAAT.jpgkeys and values type stringArray

 

 

 

SOAP example call

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://myurl.com">

  <soapenv:Header/>

  <soapenv:Body>

   <impl:verbucheBeleg>

     <orgunit>100</orgunit>

     <keys>

      <!--Zero or more repetitions:-->

      <item>XmlContent</item>

       <item>immerLoeschen</item>

        <item>belegNichtKontieren</item>

</keys>

     <values>

      <!--Zero or more repetitions:-->

      <item><![CDATA[<?xml version="1.0" encoding="UTF-8"?>

<xml>

<firmaNr>100</firmaNr>

</xml>]]></item>

        <item>true</item>

        <item>true</item>

     </values>

     <language>?</language>

   </impl:verbucheBeleg>

  </soapenv:Body>

</soapenv:Envelope>

So I have 3 keys and 3 items. Is there a possibility to use the twebservice for that? Otherwise I have to build the structure in java code and use the tsoap instead.

Thank you for your help.

Labels (6)
2 Replies
MattE
Creator II
Creator II

If you use tXMLMap instead of tMap it should build the xml you need

M4ST3R
Contributor
Contributor
Author

Hey MattE, thank you for your reply. The XML ist ok. The Problem is the part to have 3 keys and 3 values as a string array. I can transfer 1 value without any problems. The twebservice always shows the error that I have to insert a map instead of array