【问题标题】:Magento multicall XML/soapMagento 多重调用 XML/soap
【发布时间】:2013-09-25 07:18:43
【问题描述】:

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

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

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

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

【问题讨论】:

    标签: xml magento soap


    【解决方案1】:

    我在新西兰的好朋友给我发了这个 sn-p。这是多重调用的一个例子..

    谢谢丹!

    <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> 
    

    【讨论】:

      猜你喜欢
      • 2012-03-26
      • 1970-01-01
      • 1970-01-01
      • 2011-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-13
      相关资源
      最近更新 更多