I have changed a line in the functions.output.php file to

                        $message = new xmlrpcmsg("add_response", array($sessionkey,new xmlrpcval($surveyid,"int"),$xmlrpc_val));


What was needed was the specification of the "int" type on the $surveyid when it was converted to an xmlrpcval

I hope this of some use to other people.
--
Gavin Jamie
QOF Database - www.gpcontract.co.uk