我需要使用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));