Hi,
I have an button on an view page witch fire of an soap api request.
If i make an ordinary php file as test.php with following code it does work (the code is executed):
<?php
// global $dal;
// $record = $button->getCurrentRecord();
$soap = new SoapClient("http://ipadress:8070/WebSDK?wsdl"'>http://ipadress:8070/WebSDK?wsdl");
$req = new stdClass;
$req->clientName = "name";
$req->userAuthenticationInfo = new stdClass;
$req->userAuthenticationInfo->UserDN = '8200-6612';
$req->userAuthenticationInfo->UserID = '82006612';
$req->userAuthenticationInfo->UserPassword = '';
$response = $soap->RegisterClient($req);
$handle = $response->RegisterClientResult;
$req = new stdClass;
$req->clientHandle = $handle;
$req->activeCallHandlingMode = "Standard";
$response = $soap->SetUserActiveCHM($req);
$req = new stdClass;
$req->clientHandle = $handle;
$response = $soap->UnegisterClient($req);
?>
My problem is when i have the same code on "Server" for an button the code isnt executed:
global $dal;
$record = $button->getCurrentRecord();
$soap = new SoapClient("http://ipadress:8070/WebSDK?wsdl"'>http://ipadress:8070/WebSDK?wsdl");
$req = new stdClass;
$req->clientName = "name";
$req->userAuthenticationInfo = new stdClass;
$req->userAuthenticationInfo->UserDN = '8200-6612';
$req->userAuthenticationInfo->UserID = '82006612';
$req->userAuthenticationInfo->UserPassword = '';
$response = $soap->RegisterClient($req);
$handle = $response->RegisterClientResult;
$req = new stdClass;
$req->clientHandle = $handle;
$req->activeCallHandlingMode = "Standard";
$response = $soap->SetUserActiveCHM($req);
$req = new stdClass;
$req->clientHandle = $handle;
$response = $soap->UnegisterClient($req);
What am i doing wrong?