0

I created a dialog and generated a response with an id. When I try to update the dialog, the API call returns a null answer instead of the dialog ID. Is my code wrong or is this a bug?

    ServiceCall dialog = service.updateDialog("ID", new File("file/template.xml"));
    System.out.println(dialog.execute());

It appears on the console in eclipse, when I try to update ... What did I do wrong?

data_henrik
  • 16,724
  • 2
  • 28
  • 49
gonz
  • 123
  • 6

2 Answers2

2

To clarify, please try to update/access the dialog that you have created by using an equivalent curl command. I realize that you're actually working in Java, but (as Simon said), trying the same command using curl from the command-line should help you determine if the problem is in the arguments that you;re supplying or in the Dialog service itself.

WvH
  • 61
  • 1
  • 3
0

The updateDialog() method returns void because the Dialog API returns {}.
See https://watson-api-explorer.mybluemix.net/apis/dialog-v1#!/Content/putAppFile

It makes sense because when you update a dialog you get the same id you use to update the dialog.

German Attanasio
  • 22,217
  • 7
  • 47
  • 63