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