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