def do_GET(self):
if self.path.lower().endswith("<STR_LIT>"):<EOL><INDENT>service_path = self.path[:-<NUM_LIT:5>]<EOL>service = self.server.getNode(service_path)<EOL>if hasattr(service, "<STR_LIT>"):<EOL><INDENT>wsdl = service._wsdl<EOL>proto = '<STR_LIT:http>'<EOL>if hasattr(self.server, '<STR_LIT>'):<EOL><INDENT>proto = self.server.proto<EOL><DEDENT>serviceUrl = '<STR_LIT>' % (proto,<EOL>self.server.server_name,<EOL>self.server.server_port,<EOL>service_path)<EOL>soapAddress = '<STR_LIT>' % serviceUrl<EOL>wsdlre = re.compile('<STR_LIT>', re.IGNORECASE)<EOL>wsdl = re.sub(wsdlre, soapAddress, wsdl)<EOL>self.send_xml(wsdl)<EOL><DEDENT>else:<EOL><INDENT>self.send_error(<EOL><NUM_LIT>, "<STR_LIT>" % self.path)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.send_error(<NUM_LIT>, "<STR_LIT>" % self.path)<EOL><DEDENT>
The GET command.