/**
  * Create the input/output messages WSDL
  * 
  * @param PhpWsdl $pw The PhpWsdl object
  * @return string The WSDL
  */
 public function CreateMessages($pw)
 {
     PhpWsdl::Debug('Create WSDL message for method ' . $this->Name);
     $pLen = sizeof($this->Param);
     $res = array();
     // Request
     if ($pLen < 1) {
         $res[] = '<wsdl:message name="' . $this->Name . 'SoapIn" />';
     } else {
         $res[] = '<wsdl:message name="' . $this->Name . 'SoapIn">';
         $i = -1;
         while (++$i < $pLen) {
             $res[] = $this->Param[$i]->CreatePart($pw);
         }
         $res[] = '</wsdl:message>';
     }
     // Response
     if (is_null($this->Return)) {
         $res[] = '<wsdl:message name="' . $this->Name . 'SoapOut" />';
     } else {
         $res[] = '<wsdl:message name="' . $this->Name . 'SoapOut">';
         $res[] = $this->Return->CreatePart($pw);
         $res[] = '</wsdl:message>';
     }
     return implode('', $res);
 }