def verify_request_and_dispatch(
            self, http_request_headers, http_request_body):
        # type: (Dict[str, Any], str) -> str
        """Entry point for webservice skill invocation.

        This method takes in the input request headers and request body,
        handles the deserialization of the input request to
        the :py:class:`ask_sdk_model.request_envelope.RequestEnvelope`
        object, run the input through registered verifiers, invoke the
        skill and return the serialized response from the
        skill invocation.

        :param http_request_headers: Request headers of the input
            request to the webservice
        :type http_request_headers: Dict[str, Any]
        :param http_request_body: Raw request body of the input request
            to the webservice
        :type http_request_body: str
        :return: Serialized response object returned by the skill
            instance, when invoked with the input request
        :rtype: str
        :raises: :py:class:`ask_sdk_core.exceptions.AskSdkException`
            when skill deserialization, verification, invocation or
            serialization fails
        """
        request_envelope = self._skill.serializer.deserialize(
            payload=http_request_body, obj_type=RequestEnvelope)

        for verifier in self._verifiers:
            verifier.verify(
                headers=http_request_headers,
                serialized_request_env=http_request_body,
                deserialized_request_env=request_envelope)

        response_envelope = self._skill.invoke(
            request_envelope=request_envelope, context=None)

        return self._skill.serializer.serialize(response_envelope)
def verify_request_and_dispatch ( self , http_request_headers , http_request_body ) : request_envelope = self . _skill . serializer . deserialize ( payload = http_request_body , obj_type = RequestEnvelope ) for verifier in self . _verifiers : verifier . verify ( headers = http_request_headers , serialized_request_env = http_request_body , deserialized_request_env = request_envelope ) response_envelope = self . _skill . invoke ( request_envelope = request_envelope , context = None ) return self . _skill . serializer . serialize ( response_envelope )
Entry point for webservice skill invocation.

        This method takes in the input request headers and request body,
        handles the deserialization of the input request to
        the :py:class:`ask_sdk_model.request_envelope.RequestEnvelope`
        object, run the input through registered verifiers, invoke the
        skill and return the serialized response from the
        skill invocation.

        :param http_request_headers: Request headers of the input
            request to the webservice
        :type http_request_headers: Dict[str, Any]
        :param http_request_body: Raw request body of the input request
            to the webservice
        :type http_request_body: str
        :return: Serialized response object returned by the skill
            instance, when invoked with the input request
        :rtype: str
        :raises: :py:class:`ask_sdk_core.exceptions.AskSdkException`
            when skill deserialization, verification, invocation or
            serialization fails