runScriptParameters, lowercase r, is the required variable for the InDesign SOAP server. runScriptParameters is an associative array of three things.
scriptFile -> the script file location
scriptArgs -> an array of associative arrays containing name and value as keys
scriptLanguage -> the scripting language of scriptFile.
So, you might want to try something like this.
$client = new SoapClient("http://localhost/IDSP.wsdl");
$script_args = array(array("name" => "varible_1_name", "value" => "variable_1_value"));
$script_parameters = array( "scriptFile" => /path/to/my/jsx/file.jsx",
"scriptArgs" => $scriptArgs,
"scriptLanguage" => 'javascript',
);
$script_data = array("runScriptParameters" => $script_parameters);
$return_value = $client->RunScript($script_data);
- or -
$return_value = $client->__call('RunScript', $script_data);
PLEASE NOTE: Not tested
HTH,
_ Sean