def _get_service(self):
if "<STR_LIT>" in self.document.attrib:<EOL><INDENT>value = self.document.attrib["<STR_LIT>"].lower()<EOL>if value in allowed_service_types:<EOL><INDENT>self.params["<STR_LIT>"] = value<EOL><DEDENT>else:<EOL><INDENT>raise OWSInvalidParameterValue("<STR_LIT>" % value, value="<STR_LIT>")<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise OWSMissingParameterValue('<STR_LIT>', value="<STR_LIT>")<EOL><DEDENT>return self.params["<STR_LIT>"]<EOL>
Check mandatory service name parameter in POST request.