Answer the question
In order to leave comments, you need to log in
Php SoapClient via wsdl - why are parameters not being passed?
https://www.onvif.org/ver10/search.wsdl
$this->client = new SoapClient($this->wsdl, array(
'trace' => true,
'exceptions' => true,
# 'cache_wsdl' => WSDL_CACHE_NONE,
'ssl' => array(
'verify_peer' => false,
'allow_self_signed' => true
),
'soap_version' => SOAP_1_2,
));
$this->client->__setLocation($service);
$params = array(
'Scope' => array(
'IncludedSources' => array('Token' => ''),
'Extension' => array(
'CameraUuid' => $CameraUuid,
'StartTime' => $StartTime,
'StopTime' => $StopTime,
),
),
'KeepAliveTime' => $KeepAlive
);
return $this->client->FindRecordings($params);
<env:Body>
<ns2:FindRecordings>
<ns2:Scope>
<ns1:IncludedSources>
<ns1:Token />
</ns1:IncludedSources>
<ns1:Extension />
</ns2:Scope>
<ns2:KeepAliveTime>PT10S</ns2:KeepAliveTime>
</ns2:FindRecordings>
</env:Body>
return $this->client->GetStreamUri(array(
'StreamSetup' => array(
'Stream' => $stream_type,
'Transport' => array(
'Protocol' => $protocol,
),
),
'ProfileToken' => $profile
));
<env:Body>
<ns2:GetStreamUri>
<ns2:StreamSetup>
<ns1:Stream>RTP-Unicast</ns1:Stream>
<ns1:Transport>
<ns1:Protocol>TCP</ns1:Protocol>
</ns1:Transport>
</ns2:StreamSetup>
<ns2:ProfileToken>1892abb3d4c0e916b79a2fe02f338069</ns2:ProfileToken>
</ns2:GetStreamUri>
</env:Body>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question