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