如何更改目标主机的端口?

时间:2019-03-22 19:19:49

标签: php soap

我需要使用soapclient发送请求,但是我无法更改目标端口,如果我尝试向其发送诸如“ 192.168.1.1:60000”之类的地址,则会收到错误消息“ Error Fetching http headers”。 / p>

我的代码:

    $this->client = new SoapClient($wsdlPath, array(
        'trace' => 1, 
        'exceptions' => true, 
        'ssl' => array(
            'verify_peer' => false,
            'allow_self_signed' => true
        ),
        'soap_version' => SOAP_1_2
    ));

$this->client->__setLocation($deviceAddr);      

$this->client->__setSoapHeaders($this->soapClientWSSecurityHeader($user,$pass));

0 个答案:

没有答案