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("">server:17778/.../InformationService, array("login" => "xxx", "password" => "xxx", "trace" => "1"));$q = 'SELECT IpNodeId FROM IPAM.IPNode';$qo = array();print_r($sc->Query($q, $qo));Here's the error I get:PHP Fatal error: Uncaught SoapFault exception: [a:InternalServiceFault] End element 'Body' from namespace 'schemas.xmlsoap.org/.../' expected. Found element 'param1' from namespace ''. Line 2, position 229. in \Documents\port\iprepo.php:9Stack trace:#0 \Documents\port\iprepo.php(9): SoapClient->__call('Query', Array)#1 \Documents\port\iprepo.php(9): SoapClient->Query('SELECT IpNodeId...', Array)#2 {main} thrown in \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 thread will be of some help.