Advertisement
xkeshav

helloserver.php

Nov 20th, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. class WorldService {
  3.   private $worldattributes = array("1" => "brave", "2" => "new");
  4.   function answerMe($whatKindOfWorld) {
  5.     return "Hello ".$this->worldattributes[$whatKindOfWorld]." World";
  6.   }
  7. }
  8. ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache
  9. $server = new SoapServer(getcwd()."/helloworld.wsdl");
  10. $server->setClass("WorldService");
  11. $server->handle();
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement