时间:2021-07-01 10:21:17 帮助过:46人阅读
SOAP_1_2));$server->setClass("service");$server->handle();?>
SOAP_1_2));$soap = new SoapClient("TestSoap.wsdl", array('soap_version' => SOAP_1_2));echo $soap->Add(1,6);echo $soap->HelloWorld()."
";?>
$soap = new SoapClient("http://localhost/web/service.php?wsdl", array('soap_version' => SOAP_1_2));
第二个参数可以不要
$soap = new SoapClient("http://localhost/web/service.php?wsdl", array('soap_version' => SOAP_1_2));
第二个参数可以不要
第二个参数删了结果还是一样
看看你的wsdl文件的soap:address返回的地址端口是否正确的
WSDL-Endpoint:
我也遇到这个问题,求解答。