Fix bug on web service
This commit is contained in:
parent
9d5ab6daa0
commit
685400c20e
@ -226,7 +226,7 @@ $server->register(
|
|||||||
// Entry values
|
// Entry values
|
||||||
array('authentication'=>'tns:authentication','actioncomm'=>'tns:actioncomm'),
|
array('authentication'=>'tns:authentication','actioncomm'=>'tns:actioncomm'),
|
||||||
// Exit values
|
// Exit values
|
||||||
array('result'=>'tns:result'),
|
array('result'=>'tns:result','id'=>'xsd:string'),
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#updateActionComm',
|
$ns.'#updateActionComm',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
@ -563,7 +563,10 @@ function updateActionComm($authentication,$actioncomm)
|
|||||||
if ((! $error) && ($objectfound))
|
if ((! $error) && ($objectfound))
|
||||||
{
|
{
|
||||||
$db->commit();
|
$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)
|
elseif ($objectfound)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -233,7 +233,7 @@ $server->register(
|
|||||||
// Entry values
|
// Entry values
|
||||||
array('authentication'=>'tns:authentication','thirdparty'=>'tns:thirdparty'),
|
array('authentication'=>'tns:authentication','thirdparty'=>'tns:thirdparty'),
|
||||||
// Exit values
|
// Exit values
|
||||||
array('result'=>'tns:result'),
|
array('result'=>'tns:result','id'=>'xsd:string'),
|
||||||
$ns,
|
$ns,
|
||||||
$ns.'#updateThirdParty',
|
$ns.'#updateThirdParty',
|
||||||
$styledoc,
|
$styledoc,
|
||||||
@ -580,7 +580,10 @@ function updateThirdParty($authentication,$thirdparty)
|
|||||||
if ((! $error) && ($objectfound))
|
if ((! $error) && ($objectfound))
|
||||||
{
|
{
|
||||||
$db->commit();
|
$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)
|
elseif ($objectfound)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user