Last active
June 13, 2016 15:10
-
-
Save dinamic/29e7f7d6bd3085d903dfa1634c8cd65c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MySoapServer | |
{ | |
public function createItem(array $items, $calculate) | |
{ | |
return 'Output is: '. json_encode(func_get_args()); | |
} | |
} | |
$options = array( | |
'uri' => 'http://localhost/test', | |
'wsdl_cache' => WSDL_CACHE_NONE, | |
); | |
$server = new SoapServer(NULL, $options); | |
$server->setClass('MySoapServer'); | |
$server->handle(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment