非 wsdl 模式下的 php SOAPClient 和 SOAPServer 需要一组选项。
选项中用于指向 Web 服务服务器文件的位置
但是选项中的 uri 是什么?因为我将其更改为所有内容并且网络服务器工作正常
$options = array(
'uri' => 'http://aahshhs.com', //wath do this line?????
'location' => 'http://localhost/exer/Server.php',);
最佳答案
一系列选项。如果在 WSDL 模式下工作,则此参数是可选的。如果在非 WSDL 模式下工作,则必须设置 location 和 uri 选项,其中:
来源:https://www.php.net/manual/en/soapclient.construct.php
关于web-services - 什么是 SOAP 非 wsdl 模式选项中的 uri,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37993014/