【问题标题】:what is uri in SOAP non wsdl mode optionsSOAP 非 wsdl 模式选项中的 uri 是什么
【发布时间】:2016-06-23 13:26:18
【问题描述】:

非 wsdl 模式下的 php SOAPClient 和 SOAPServer 需要一系列选项。 选项中的位置用于指向 Web 服务服务器文件的位置 但是选项中的uri是什么?因为我将其更改为所有内容,并且网络服务器工作正常

$options = array(
'uri' => 'http://aahshhs.com',   //wath do this line?????
'location' => 'http://localhost/exer/Server.php',);

【问题讨论】:

    标签: web-services soap


    【解决方案1】:

    一系列选项。如果工作在 WSDL 模式,这个参数是可选的。如果在非 WSDL 模式下工作,则必须设置 location 和 uri 选项,其中:

    • location 是将请求发送到的 SOAP 服务器的 URL
    • uri 是 SOAP 服务的目标命名空间。

    来源:https://www.php.net/manual/en/soapclient.construct.php

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-15
      • 2010-09-13
      • 1970-01-01
      • 1970-01-01
      • 2013-11-08
      • 1970-01-01
      相关资源
      最近更新 更多