/nodeworx/dns/record -> editA, Internal Server Error

I have a php function:

function iworx_editADnsRecord($record_id, $host, $ttl, $ipaddress) {
    $api_controller = '/nodeworx/dns/record';
    $action         = 'editA';
    $input          = array(
            'record_id' => $record_id,
            'host'      => $host,
            'ttl'       => $ttl,
            'ipaddress' => $ipaddress);
    $client = new SoapClient(iworxHost);
    $result = $client->route(iworxKey, $api_controller, $action, $input); //Line 50 is here
    return $result;

when editing an ‘A’ record, it displays this in apache error log:

[Thu Mar 31 13:13:32 2016] [error] [client xx.xx.xx.xx] PHP Fatal error:  Uncaught SoapFault exception: [HTTP] Internal Server Error in /hidden/path/interworx.php:50
Stack trace:
#0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://localho...', 'https://localho...', 1, 0)
#1 /hidden/path/interworx.php(50): SoapClient->__call('route', Array)
#2 /hidden/path/interworx.php(50): SoapClient->route('-----BEGIN INTE...', '/nodeworx/dns/r...', 'editA', Array)
#3 /hidden/path/addStatus.php(284): iworx_editADnsRecord(1620, 'hidden.subdomain...', 43200, 'xx.xx.xx.xx')
#4 {main}
  thrown in /hidden/path/interworx.php on line 50

This function at one time worked. Current version: 5.1.7

Hi afrazee

I don’t do a lot with API, so hopefully another user may post to help

I also thought soap had been updated, so guessing you have confirmed you can still access the xml link, if not, this may be the issue

I would suggest if no user responds, you may want to email IW and ask support, albeit I don’t think this falls into an IW issue, but sorry if I’m wrong

Many thanks