Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class WorldService {
- private $worldattributes = array("1" => "brave", "2" => "new");
- function answerMe($whatKindOfWorld) {
- return "Hello ".$this->worldattributes[$whatKindOfWorld]." World";
- }
- }
- ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
- $server = new SoapServer(getcwd()."/helloworld.wsdl");
- $server->setClass("WorldService");
- $server->handle();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement