Although you can place the service-location details of a web service in the requesting source code, the best practice is to place those details in the EGL deployment descriptor.
When you place details in the EGL deployment descriptor, you specify the @BindService complex property when you declare a service-access variable. That property refers to an entry in the EGL deployment description, specifically, to an entry in the service-client bindings section of the EGL deployment descriptor.
If you change the URI template, you must change it in the Interface part and redeploy the code in the workbench. You cannot include the template in a runtime configuration file because the template generally includes values that are set at run time.
You can access a third-party REST service by specifying all the details in either the base URI or a URI template.