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