我正在尝试开发一种alexa技能,这与我自己的webservice(tomcat)进行通信。为了建立我跟随亚马逊指南(https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/deploying-a-sample-skill-as-a-web-service)的项目。无法调用远程端点alexa
现在我仍然无法连接到web服务,只能得到消息“无法调用远程端点,或者它返回的响应无效”。
该服务托管在https://ec2-54-159-167-123.compute-1.amazonaws.com/PiaServer上,并可通过https访问。我使用了自签名证书。我按照文档中所述完成了所有操作,但仍无法连接。根本没有tomcat日志。
我的终端是来自amazon java-skill-kit的speechletServlet。
当我通过邮差(铬附加组件),我得到一个完美的JSON-响应请求(见下文):
{ "version": "1.0", "response": { "outputSpeech": {"type":"PlainText", "text": "text" }, "card": { "type": "Simple", "title":`enter code here`"Tank", "content": "text" }, "shouldEndSession": true } }
你有任何想法如何解决这个问题?
编辑:我在亚马逊EC2上托管服务。