I am using this code to call my watson assistant service but getting 404 error message
IamAuthenticator authenticator = new IamAuthenticator(apiKey);
Assistant assistant = new Assistant(version, authenticator);
assistant.setServiceUrl(serviceUrl);
CreateSessionOptions options = new CreateSessionOptions.Builder(assistantId).build();
assistant.createSession(options);
SessionResponse response = assistant.createSession(options).execute().getResult();
I got the URL,apiKey, and assistantId from assistant settings->Assistant IDs and API details
I am not sure what I am missing any idea???
I tried the URL with curl, soapui but nothing is working same error 404
Error 404 normally means you have
ServiceUrlorAssistant_idincorrect.Check the following.
assistant_idis correct. From the API documentation.