Hi.
I have a Dialog Designer application that needs to hit multiple different web service URLs. I'd like to have one version of the application that can run in both my QA and Production environments. I'd also like to take advantage of the Configurable Application Variables Pluggable Connector to be able to set these backend URLs via the Applications page in Voice Portal Admin.
Please can you tell me how to do this in my application.
1. Enable the Application Variables Pluggable Connector.
2. Create the Configurable Variable containing the URL.
3. In the Java Class for the wsoperations file, programmatically access the Configurable Variable.
IVariable variableRef = mySession.getVariable(IProjectVariables.SURVEY_HTTP_END_POINT_URL);
IVariableField variable = variableRef.getSimpleVariable();
String ep = variable.getStringValue();
endPoint = ep;
System.out.println("SURVEY_HTTP_END_POINT_URL ["+ep+"]");
This doesn't work! Dialog Designer tries to resolve the name of the endPoint from the web.xml file.
Please help me understand how this can be done successfully.
Thank you!
|