Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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)
keys 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.
If you use tXMLMap instead of tMap it should build the xml you need
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