public function toXMLString()
 {
     $str = '';
     $str .= '<ns:DoDirectPaymentReq>';
     if ($this->DoDirectPaymentRequest != NULL) {
         $str .= '<ns:DoDirectPaymentRequest>';
         $str .= $this->DoDirectPaymentRequest->toXMLString();
         $str .= '</ns:DoDirectPaymentRequest>';
     }
     $str .= '</ns:DoDirectPaymentReq>';
     return $str;
 }
 public function toXMLString()
 {
     $str = '';
     $str .= '<urn:DoDirectPaymentReq>';
     if ($this->DoDirectPaymentRequest != null) {
         //prop is not a collection
         //prop is complex
         //prop is not enum
         //does not contain attribute or is attribute
         $str .= '<urn:DoDirectPaymentRequest>';
         $str .= $this->DoDirectPaymentRequest->toXMLString();
         $str .= '</urn:DoDirectPaymentRequest>';
     }
     $str .= '</urn:DoDirectPaymentReq>';
     return $str;
 }