genasys
(genasys)
February 25, 2015, 10:37am
1
Hi,
When SendSessionId
is selected on the Xml-Rpc message, the first parameter on all service calls must be the SessionID. PHP-generated interface does not take this into account, so it does not support the SendSessionId
option.
Could a second PHP interface option be added with SessionID as the first parameter in all methods? CodeGen > PHP > Interface with SessionID
EvgenyK
(Evgeny Karpov)
February 25, 2015, 10:38am
2
provide an example of correct code, pls
genasys
(genasys)
February 25, 2015, 10:43am
3
Correct code for SendSessionId
option on Xml Rpc message:
function UserHasSecurityGroupAccess($SessionId, $SecurityGroup, &$HasAccess) {
$___msg = new xmlrpcmsg("SKiExternal.UserHasSecurityGroupAccess");
$___msg->addParam(new xmlrpcval($SessionId, "string"));
$___msg->addParam(new xmlrpcval($SecurityGroup, "string"));
$___msg->addParam(new xmlrpcval($HasAccess, "boolean"));
$___res = $this->___server->send($___msg);
if ($___res->faultCode()) SKiWebServiceHelpers::RaiseException($___res->faultString());
return Response::FromXmlRpcVal($___res->value());
}
Wrong code for SendSessionId
option on Xml Rpc message:
function UserHasSecurityGroupAccess($SecurityGroup, &$HasAccess) {
$___msg = new xmlrpcmsg("SKiExternal.UserHasSecurityGroupAccess");
$___msg->addParam(new xmlrpcval($SecurityGroup, "string"));
$___msg->addParam(new xmlrpcval($HasAccess, "boolean"));
$___res = $this->___server->send($___msg);
if ($___res->faultCode()) SKiWebServiceHelpers::RaiseException($___res->faultString());
return Response::FromXmlRpcVal($___res->value());
}
Thanks, logged as bugs://71362
bugs://71362 got closed with status fixed.
EvgenyK
(Evgeny Karpov)
March 2, 2015, 8:09pm
6
You can extract ROSBPHP.zip (19.1 KB) into …\RemObjects Software\RemObjects SDK (Common)\Bin.
Note: this fix requires the latest release (8.2.89.1153)