Fix bug on web service

This commit is contained in:
fhenry 2013-01-17 18:49:21 +01:00
parent 9d5ab6daa0
commit 685400c20e
2 changed files with 10 additions and 4 deletions

View File

@ -226,7 +226,7 @@ $server->register(
// Entry values
array('authentication'=>'tns:authentication','actioncomm'=>'tns:actioncomm'),
// Exit values
array('result'=>'tns:result'),
array('result'=>'tns:result','id'=>'xsd:string'),
$ns,
$ns.'#updateActionComm',
$styledoc,
@ -563,7 +563,10 @@ function updateActionComm($authentication,$actioncomm)
if ((! $error) && ($objectfound))
{
$db->commit();
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''));
$objectresp=array(
'result'=>array('result_code'=>'OK', 'result_label'=>''),
'id'=>$object->id
);
}
elseif ($objectfound)
{

View File

@ -233,7 +233,7 @@ $server->register(
// Entry values
array('authentication'=>'tns:authentication','thirdparty'=>'tns:thirdparty'),
// Exit values
array('result'=>'tns:result'),
array('result'=>'tns:result','id'=>'xsd:string'),
$ns,
$ns.'#updateThirdParty',
$styledoc,
@ -580,7 +580,10 @@ function updateThirdParty($authentication,$thirdparty)
if ((! $error) && ($objectfound))
{
$db->commit();
$objectresp=array('result'=>array('result_code'=>'OK', 'result_label'=>''));
$objectresp=array(
'result'=>array('result_code'=>'OK', 'result_label'=>''),
'id'=>$object->id
);
}
elseif ($objectfound)
{