soap吗?http://www.ibm.com/developerworks/library/os-phpws/?ca=dgr-lnxw06PHP5soap

解决方案 »

  1.   

    是的,请问PHP怎样写,今天测试一天,对方没有收到XML包
      

  2.   

    You can use file_get_contents() to get the xml file string of the WSDL, then use dom to get the data you want.
      

  3.   

    我看了一些网上例子,是用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
      

  4.   

    Please download "nusoap.php" and use "include('nusoap.php');" in your code.