在修改了 wsdl.xml 文件后,需要刷新 magento 缓存,
http://yourdomain/index.php/api/v2_soap/?wsdl
应该就会有变化。
如果有变化,但是实际没有效果,可以考虑删除 soap 的缓存文件。(尤其是在 wamp 、 xampp 等集成环境中)
php.ini 中关于 SOAP 缓存的设置
; Enables or disables WSDL caching feature.
; http://php.net/soap.wsdl-cache-enabled
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
; http://php.net/soap.wsdl-cache-dir
soap.wsdl_cache_dir="D:/wamp64/tmp"
Magento 1 中后台相关设置:
System -> Configuration -> Magento Core API -> General Settings