Here’s this pressing problem that haven’t worked out after working on it for days.
http://www.tabernus.com/ws/soap/server.php?WSDL should give you the WSDL file.
Inside the server.php, I wanted to return an incremented serial Number when “GetAuditInformation” method is called.
So I wrote this simple function at top:
<?php
function GetAuditInformation($serialNumber) {
$serialNumber=$serialNumber +1;
return $serialNumber;
}
ini_set("soap.wsdl_cache_enabled", "0");
$server = new SoapServer('wsMRMAudit.wsdl');
$server->addFunction("GetAuditInformation");
$server->handle();
?>
I tested using plumvoice SOAPtester and it was able to get methods through WSDL.
http://www.plumvoice.com/soaptester/
But enter a serial number say….1000 and it should return 1001 but it returns NULL. Why is that?
The parameter that gets passed into your function is not a number, it’s an object. Your function definition should be this:
For the complete example, let me post my test script as well, which works btw: