You can use file_get_contents() to get the xml file string of the WSDL, then use dom to get the data you want.
我看了一些网上例子,是用PHP的soap函数来写,我也把网上的代码试下,说我找不到soapClient这个类,我的网站是LINUX环境的。我看了PHP的PHP.INI文件的SOAP配置部分[soap] ; Enables or disables WSDL caching feature. soap.wsdl_cache_enabled=1 ; Sets the directory name where SOAP extension will put cache files. soap.wsdl_cache_dir="/tmp" ; (time to live) Sets the number of second while cached file will be used ; instead of original one. soap.wsdl_cache_ttl=86400
Please download "nusoap.php" and use "include('nusoap.php');" in your code.
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400