PHP code example of divineomega / soapsuds
1. Go to this page and download the library: Download divineomega/soapsuds library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
divineomega / soapsuds example snippets
class NumberAdditionWebService
{
/**
* This method takes two float parameters, adds them together, and returns the result.
*
* @param float $number1
* @param float $number2
* @return float
*/
public function addNumbers($number1, $number2)
{
return $number1 + $number2;
}
}
\DivineOmega\Soapsuds\Soapsuds::handleRequest(new NumberAdditionWebService());