- print_r: documentation ( source)
<?php
$endpoint = 'http://www.corretor-online.com.br/HostWS.asmx?WSDL';
try {
$client = new SoapClient( $endpoint, array( 'soap_version' => SOAP_1_2, 'trace' => 1 ) );
$data = array(
'corretora' => 'COLWEB',
'userName' => 'luca01',
'password' => '123456'
);
try {
$response = $client->Login( $data );
echo '<pre>';
print_r( $response );
} catch (Exception $e) {
echo $e->getMessage();
}
} catch (SoapFault $e) {
echo $e->getMessage();
}
?>