Hi guys. Does anyone have any example code for accessing IPAM via SOAP and PHP? Here's what I have so far:
$sc = new SoapClient("https://server:17778/SolarWinds/InformationService?wsdl", array("login" => "xxx", "password" => "xxx", "trace" => "1"));
$q = 'SELECT IpNodeId FROM IPAM.IPNode';
$qo = array();
Here's the error I get:
PHP Fatal error: Uncaught SoapFault exception: [a:InternalServiceFault] End element 'Body' from namespace 'http://schemas.xmlsoap.org/soap/envelope/' expected. Found element 'param1' from namespace ''. Line 2, position 229. in D:\Documents\port\iprepo.php:9
#0 D:\Documents\port\iprepo.php(9): SoapClient->__call('Query', Array)
#1 D:\Documents\port\iprepo.php(9): SoapClient->Query('SELECT IpNodeId...', Array)
thrown in D:\Documents\port\iprepo.php on line 9
Looks like the message sent was not formatted properly.
Unfortunately I've never used the soap client in php, but we've had someone use perl to access the web service.
Maybe this Problem consuming wsdl will be of some help.