question

alexacp avatar image
alexacp asked

How to deploy a sample skill as a web service?

I tried to deploy the sample skill HelloWorld as a webservice. Therefor I cloned the ask-java repository, created a new Maven project (using maven-archetype-webapp) and imported the sample code. As described in the tutorial (Deploying a Sample Skill as a Web Service) I created the HelloWorldSpeechlet class that extends the SpeechletServlet class provided by the Java library. I created a war file and deployed it on my server. If i try to test my skill i get the following error "[i]The remote endpoint could not be called, or the response it returned was invalid.[/i]. I tried to send the JSON request to my web service using Chrome-Postman but I cannot see the JSON response (Error: "Malformed JSON: Unexpected '<'). Could anyone please provide help? Does anyone know why my service is not working correctly or does anyone know a github repository with a simple working (HelloWorld) Alexa webservice? Thanks!
alexa skills kitsubmission testing certification
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

jjaquinta avatar image
jjaquinta answered
You've probably got one of the steps wrong. The docs are pretty good, but there are a lot of intricate steps. There are many samples in this project here: https://github.com/jjaquinta/EchoProofOfConcepts
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.