在magento中通过SOAP上传图像时出错


Error while uploading images through SOAP in magento

我在通过我的soap api上传magento ce 1.7中的图像时遇到了麻烦。我正在上传图像,但它正在var/api/sessionid/imgname内创建一个临时路径。有时在这个路径中,我得到图像不存在的错误。

这是我正在做的事情的详细描述。

我的图片上传功能-

catalogProductAttributeMediaCreate(lstr_sessionId, lstr_productId, oProductImage, StoreId.ToString(), "");

My error -

System.Web.Services.Protocols。SoapHeaderException: File C:'xampp'htdocs'mymagento'var'api'dece42536f86f2996f38d2bd9ab4a23f'SHIMANO ULTEGRA BR/66X BK BAK.jpg does not exists

问题解决了,我发现webservice不接受带有特殊字符的文件名传递没有特殊字符的图像名称解决了我的问题