Skip to content

Instantly share code, notes, and snippets.

@bgrgicak
Last active November 26, 2025 10:20
Show Gist options
  • Select an option

  • Save bgrgicak/03bc0e2dfea3c19369408be8c7701150 to your computer and use it in GitHub Desktop.

Select an option

Save bgrgicak/03bc0e2dfea3c19369408be8c7701150 to your computer and use it in GitHub Desktop.
SOAP server
<?php
/*
* Plugin Name: SOAP server
*/
class TestSoapServer
{
public function getMessage()
{
return 'Hello, World!';
}
}
$options = ['uri' => 'http://localhost:12312/'];
$server = new SoapServer(null, $options);
$server->setClass('TestSoapServer');
$server->handle();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment