1

是否有一种工具可以用来查找为 magento php 调用而调用的 SOAP?

我正在尝试从 magento 站点写入/读取数据。我不在现场,我的代码是用 PHP 以外的语言实现的。我一直在摇摆不定,但最近注意到 V1 中的多调用方法。

我遇到的问题是我在 multicall api 上找不到任何文档。当我谷歌时,我看到很多关于它的问题,但没有文档。

我想知道那里的 Magento Guy/Girl 是否可以发布 SOAP/XML 以进行对多路呼叫的简单调用。我可以用它作为跳下的基础..

4

1 回答 1

2

我在新西兰的好朋友给我发了这个片段。这是多路通话的一个例子..

谢谢丹!

<SOAP-ENV:Envelope 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:multiCall>
<sessionId xsi:type="xsd:string">55444333222111c5eccf0bc5e3aea54d8</sessionId>
<calls SOAP-ENC:arrayType="xsd:ur-type[4]" xsi:type="ns1:FixedArray">
  <item SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
    <item xsi:type="xsd:string">catalog_product.info</item>
    <item xsi:type="xsd:string">51</item>
  </item>
  <item SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
    <item xsi:type="xsd:string">catalog_product.info</item>
    <item xsi:type="xsd:string">52</item>
  </item>
  <item SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
    <item xsi:type="xsd:string">catalog_product.info</item>
    <item xsi:type="xsd:string">53</item>
  </item>
  <item SOAP-ENC:arrayType="xsd:string[2]" xsi:type="SOAP-ENC:Array">
    <item xsi:type="xsd:string">catalog_product.info</item>
    <item xsi:type="xsd:string">54</item>
  </item>
</calls>
<options xsi:nil="true"/>
</ns1:multiCall>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> 
于 2013-09-25T23:15:31.777 回答