andrew.tranquada

Accessing the Web Services with perl/php

Discussion created by andrew.tranquada on Jul 13, 2009
Latest reply on Jul 16, 2009 by andrew.tranquada
Does anyone have any examples of accessing the WebServices SOAP/API interface with perl/php?
I have been able to do it successfully with C# however am having issues with php.

so far I have:
<?php

$client = new
SoapClient('http://web1.web.dfw.mlsrvr.com/NimBUS/webservice/User.asmx?WSDL',
array('trace' => true, 'exceptions' => true));

try {
$res = $client->__soapCall('Login',Array('user' => '',
'password' => '', 'encrypted' => FALSE));
print_r($res);
} catch (Exception $e) {
print_r($e);
}
echo "REQUEST:\n" . $client->__getLastRequest() . "\n";

?> 
It never returns however, just hangs.




Outcomes