SOAP 错误代码列表
我正在开发一个 magento 脚本,以使用 API 和 SOAP wsdl 连接从 XML 文件导入产品。
我想知道故障代码列表,我已经搜索了好几天了,但没有运气,有人知道是否有一个以及在哪里可以找到它?
我需要处理错误代码以避免代码停止,而不是仅仅跳过错误并继续导入正确的内容。
目前我刚刚发现故障代码101是“产品不存在”。
I'm developing a magento script to import products from a XML file using the API and a SOAP wsdl connection.
I would like to know the faultcode list, I've been searching it for several days without luck, anyone know if there is one at all and where I can find it?
I need to handle the error codes to avoid the code to stop instead of just skipping the errors and continue importing what is correct.
At the moment I just discovered that the faultcode 101 is "Product not exists.".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是如何获取适合您的 Magento 版本的列表。 (我无法想象这在版本之间会有根本不同,但人们永远不知道对系统做了什么)
找到所有
api.xml
文件。每个文件将有一个或多个包含代码和消息的
节点。可能值得一提的是,数字代码并不是唯一的。每个“肥皂对象”(不确定如何称呼它们)都定义了自己的。
祝你好运!
Here's how to grab the list for your version of Magento. (I can't imagine this would be radically different between versions, but one never knows what's been done to a system)
Find all your
api.xml
files.Each file will have one or many
<faults/>
nodes which will contain the code and message.It's probably worth mentioning that the numeric codes aren't unique. Each "soap object" (unsure what to call these) defines its own.
Good luck!