通过SOAP将第三方扩展与linnworks API搞混了

时间:2018-07-31 12:09:54

标签: xml api web-services magento soap

我希望有人能帮助我。我在这个部门不是很了解。我有个人来开发第三方扩展并将其安装到我的网站中,以允许客户使用文本来个性化产品。启用扩展后,我的Linnworks订单管理API收到有关库存同步的错误。 Linnworks尝试更改Magento中的库存水平,但会引发错误。问题仅在于产品启用时,任何人都可以帮助您更多地了解问题的可能原因。

这是完整的API调用和响应。我已经更改了站点名称并删除了一些数字,以防它们是某种类型的钥匙-

请求

POST http://www.mywebsite.co.uk/index.php/api/v2_soap/ HTTP/1.1
User-Agent: Linnsystems
VsDebuggerCausalityData: uIDPo68QtFPs/eJpoVYAAAAA/J4O4SIRFL7vc2mEnU431ZAueBPVqzuWsUACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: www.mywebsite.co.uk
Content-Length: 628
Expect: 100-continue

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><catalogProductUpdateRequestParam xmlns="urn:Magento"><sessionId xmlns="">ed6f9b178cf42ee0426690</sessionId><productId xmlns="">802</productId><productData xmlns=""><stock_data><qty>10</qty><is_in_stock>1</is_in_stock><manage_stock>1</manage_stock></stock_data></productData><store xmlns="" /><identifierType xmlns="">id</identifierType></catalogProductUpdateRequestParam></soap:Body></soap:Envelope>

响应

HTTP/1.1 500 Internal Server Error
Set-Cookie: PHPSESSID=28hh90bp49o7nj0; expires=Mon, 30-Jul-2018 16:56:59 GMT; Max-Age=7200; path=/; domain=mywebsite.co.uk
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/xml; charset=utf-8
Content-Length: 308
Date: Mon, 30 Jul 2018 14:58:23 GMT
Accept-Ranges: bytes
Server: LiteSpeed
Connection: Keep-Alive

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Call to a member function getId() on null</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

0 个答案:

没有答案