Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 php5 肥皂的新手...
我需要使用第三方公司提供的 wsdl,出于测试目的,我应该为我需要的服务使用不同的访问地址位置,而不是 wsdl 文档中指定的访问地址位置。
有什么方法可以在 wsdl 模式下创建我的肥皂客户端,并覆盖 wsdl 中指定的地址位置以获得不同的位置?
使用可选的第二个参数传递位置,如下所示:
$sc = new SoapClient('urlofmywsdl', array('location' => 'urltowebservice'));