def read(self, service_url, timeout=<NUM_LIT:30>):
self.request = self.capabilities_url(service_url)<EOL>spliturl = self.request.split('<STR_LIT:?>')<EOL>u = openURL(spliturl[<NUM_LIT:0>], spliturl[<NUM_LIT:1>], method='<STR_LIT>',<EOL>username=self.username,<EOL>password=self.password,<EOL>timeout=timeout,<EOL>headers=self.headers)<EOL>raw_text = strip_bom(u.read())<EOL>return etree.fromstring(raw_text)<EOL>
Get and parse a WMS capabilities document, returning an
        elementtree instance

        service_url is the base url, to which is appended the service,
        version, and request parameters