Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $username = 'wsdatumpos';
- $password = 'w$D4tuM#p0$';
- $placa = 'todos';
- $soapURL = "http://190.143.101.58:2998/VideoData.asmx?WSDL";
- $client = new SoapClient($soapURL,array());
- $auth = array(
- 'sUser' => $username,
- 'sPassw' => $password,
- 'sPlate' => $placa,
- 'GetLastPosition'=> array(
- 'Fecha/Hora Evento' => '',
- 'Velocidad' => '',
- 'Latitud' => '',
- 'Longitud' => '',
- 'Sentido' => '',
- 'Curso' => '',
- 'Informacion de la ubicacion' =>'',
- 'Evento' => '',
- 'Zona' => '',
- )
- );
- /*Header authentication*/
- $header = new SoapHeader('http://190.143.101.58:2998/','GetLastPositionResult',$auth,false);
- $client->__setSoapHeaders($header);
- /* Executing a fuction, for example isAlive method */
- $result = $client->GetLastPosition($auth)->GetLastPositionResult;
- print_r( $result);
Add Comment
Please, Sign In to add comment