You need to add an options array to the
SoapClient
call to use the
SoapFault
exception handler. This won't fix your problem, but it should at least trigger the exception message so you can get better info.
<?php
$skey = "FDGK:LKss#()#84$$$";
$productID = 5;
$data = "D359;00011,P,D359ZZ,SQKGLTKQKQYZHRA,ALNR,009350,20140228,005392;DEWALDH;D359;0";
try {
$wsdl = "http://connectedservices.sagesouthafrica.co.za/serv/communicate.asmx?wsdl";
$client = new SoapClient($wsdl, array(
'exceptions' => true,
'trace' => true,
)
);
$result = $client->__soapCall("InsertSerialAuthProduct", array(
"InsertSerialAuthProduct" => array(
"skey" => $skey,
"ProductID" => $productID,
"Data" => $data,
)
)
);
} catch (SoapFault $E) {
echo $E->faultstring;
}