Skip to content

Instantly share code, notes, and snippets.

@dinamic
Last active June 13, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinamic/29e7f7d6bd3085d903dfa1634c8cd65c to your computer and use it in GitHub Desktop.
Save dinamic/29e7f7d6bd3085d903dfa1634c8cd65c to your computer and use it in GitHub Desktop.
<?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