嘗試使用v2 API從magento獲取產品信息時,出現了一些有名的「產品不存在」錯誤。然而,通常的補救措施似乎都不起作用。舉例來說,我檢查這個線程:magento soap api v2 catalogProductInfo not workingmagento soap api v2目錄產品信息「產品不存在」錯誤
這裏是我的請求數據:
<?xml version="1.0" encoding="utf-8"?>
<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:catalogProductInfo>
<sessionId xsi:type="xsd:string">291b294f0a5ec652069dfbd2ba1f42a3</sessionId>
<productId xsi:type="xsd:string">917</productId>
</ns1:catalogProductInfo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
這裏是我試過到目前爲止:
- 驗證和regenereted會話ID
- 用戶的完全訪問權限
- 多個產品ID(已驗證存在,無論是在管理員還是使用目錄產品清單中)
- 同時使用ID和SKU
- SKU與<storeView>參數
- 添加<productIdentifierType>參數的上述
接下來會發生什麼
...現在我注意到它也被稱爲wsdl中的「產品」。 Evenso,文件應該更正。 – DukeOf1Cat