You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 regels
610 B

  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Steven
  5. * Date: 2017/3/10
  6. * Time: 9:42
  7. */
  8. header('Content-Type:text/html;charset=utf-8');
  9. ini_set('soap.wsdl_cache_enabled',"0"); //关闭wsdl缓存
  10. $soap = new SoapClient('http://localhost:20083/Ctrip/Service.php?wsdl',array('soap_version'=> SOAP_1_2,'trace' => TRUE,'exceptions' => FALSE));
  11. try {
  12. $response = $soap->say(11, 33);
  13. print_r($soap->__getFunctions());
  14. print_r($soap->__getTypes());
  15. } catch (SoapFault $sf) {
  16. var_dump($sf);
  17. print ($soap->__getLastRequest());
  18. print ($soap->__getLastResponse());
  19. }
  20. //echo $soap->index(11,33);
  21. ?>