In Android, wie komplexe Array in Magento mit ksoap2 Bibliothek senden?

Komplexes Array wie:

$id = "value";

$customer = array("key" => "value", "key" => "value");

$set = $soap->call($sessionID, 'abc.set', array($id, $customer));

So senden Sie Anfrageformular Android mit dieser Art von komplexen Array in Seife.

ich benutzeksoap2 Bibliothek zum Senden von Anfragen in Magnetseife.

Bei der SoapUi-Software-Formatierung wird diese Art von komplexem Array folgendermaßen aufgerufen:

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:Magento" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://xml.apache.org/xml-soap" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
   <SOAP-ENV:Body>
      <call>
         <sessionId xsi:type="xsd:string">??</sessionId>
         <resourcePath xsi:type="xsd:string">abc.set</resourcePath>
         <args xsi:type="SOAP-ENC:Array">
            <item xsi:type="xsd:int">id</item>
            <item xsi:type="ns2:Map">
               <item>
                  <key xsi:type="xsd:string">key</key>
                  <value xsi:type="xsd:string">value</value>
               </item>
               <item>
                  <key xsi:type="xsd:string">key</key>
                  <value xsi:type="xsd:string">value</value>
               </item>
               <item>
                  <key xsi:type="xsd:string">key</key>
                  <value xsi:type="xsd:string">value</value>
               </item>
            </item>
         </args>
      </call>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Antworten auf die Frage(1)

Ihre Antwort auf die Frage