W Androidzie jak wysłać złożoną tablicę w Magento przy użyciu biblioteki ksoap2?
Kompleksowa tablica jak:
$id = "value";
$customer = array("key" => "value", "key" => "value");
$set = $soap->call($sessionID, 'abc.set', array($id, $customer));
Jak wysłać wniosek z Androida z tego typu złożoną tablicą w mydle.
ja używamksoap2
biblioteka do wysyłania żądań w mydle magneto.
W SoapUi Software formatowanie wywoływania tego typu złożonej tablicy, takie jak:
<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>