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