PHP code example of nowise / uup-soap
1. Go to this page and download the library: Download nowise/uup-soap 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/ */
nowise / uup-soap example snippets
public function response($request, $service)
{
$request->process($service); // Request mode detected
}
public function response($request, $service)
{
switch ($request->target) {
case 'soap':
$service->handleRequest(); // Handle SOAP request
break;
case 'wsdl':
$service->sendDescription(); // Send WSDL
break;
case 'docs':
$service->sendDocumentation(); // Send API doc
break;
}
}