title: Register class methods with nusoap
body: <p>I've a php class and i want to use it with <a href="http://sourceforge.net/projects/nusoap/" rel="nofollow">Nusoap</a>. Can I register the class method's that already exists inside the nusoap with the register command?</p>
  
  <p>Sample : </p>
  
  <p>Here we register a function that we defined inside this script. But if we've a class that we maybe develop months ago and we want to use it as a webservice using the WSDL. Is there a way to register the methods of that class so that Nusoap creates a WSDL of it's stucture (methods inside)?</p>
  
  <pre><code>require_once("nuSOAP/lib/nusoap.php");
  
  $server = new soap_server();
  
  $namespace = "http://localhost/nusoapSCRIPT/index.php";
  
  $server-&gt;wsdl-&gt;schemaTargetNamespace = $namespace;
  
  $server-&gt;configureWSDL("SAMPLE");
  
  $server-&gt;register('HelloWorld');
  
  function HelloWorld()
  {
  return "Hello, World!";
  }
  </code></pre>