public function toXMLString() { $str = ''; $str .= '<ns:BMGetInventoryReq>'; if ($this->BMGetInventoryRequest != null) { $str .= '<ns:BMGetInventoryRequest>'; $str .= $this->BMGetInventoryRequest->toXMLString(); $str .= '</ns:BMGetInventoryRequest>'; } $str .= '</ns:BMGetInventoryReq>'; return $str; }