Server IP : 103.118.17.23 / Your IP : 216.73.216.188 Web Server : Microsoft-IIS/10.0 System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64 User : IWAM_plesk(default) ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/communication/ |
Upload File : |
<?php require_once('../qcubed.inc.php'); class ExampleService extends QSoapService { /** * Adds two numbers together, and returns the result * * @param int $intNumber1 * @param int $intNumber2 * @return int */ public function AddNumbers($intNumber1, $intNumber2) { return $intNumber1 + $intNumber2; } /** * Returns the Date as a QDateTime. * Note that the QSoapService handler will automatically convert to a valid * SOAP dateTime. * * @param int $intMonth * @param int $intDay * @param int $intYear * @return QDateTime */ public function GetDate($intMonth, $intDay, $intYear) { $dttToReturn = new QDateTime($intYear . '-' . $intMonth . '-' . $intDay); return $dttToReturn; } /** * Gets all the Person objects with a certain last name as an array * * @param string $strLastName * @return Person[] */ public function GetPeople($strLastName) { return Person::QueryArray( QQ::Equal(QQN::Person()->LastName, $strLastName) ); } } // We need to RUN the WebService (just like how we run a QForm) ExampleService::Run('ExampleService', 'http://examples.qcodo.com'); ?>