An enhancement has been raised to make it possible to change the appServiceHost runtime property when generating the WSM file through the Proxy Generator tool, but has not been implemented in the product to date.
The
OpenEdge Explorer or
wsaman command-line utility can be used to disable the deployed Web Service through Status Enablement and then change its configuration settings through Application Properties. At a later date, whenever a Web Service is undeployed to make changes that are regenerated in a new .wsm file, the appServiceHost runtime property will need to be modified again.
After generating the WSM, change the appServiceHost runtime property of the deployed OpenEdge Web Service as follows:
OpenEdge Explorer or Management ConsoleOnly runtime properties can be changed using this method.
1. Navigate to the Web Service Adapter instance (example: "Resources\Container1\Openedge\Web Services Adapter\wsa1").
2. In the "
Deployed Web Services for" section, navigate to the deployed
OpenEdge Web Service and click on the
Select button.
3. Select:
Status Enablement and then the
Disable button.
4. Navigate to the previous page and Select
Application Properties and then on the
Edit button.
5a. Update the
appServiceHost parameter to the
hostname of the
NameServer if the
appServiceProtocol is set to "
Appserver".
6a. Update the
appServicePort parameter to the port of the
NameServer.
5b. Update the
appServiceHost parameter to the
hostname of your
AppServer Broker if the
appServiceProtocol is set to "
AppserverDC".
6b. Update the
appServicePort parameter to the port of the
AppServer Broker.
7. Select the
Submit button and Navigate to the previous page
8. Select
Status Enablement and then the
Enable button.
9.
Restart the
Java Servlet Engine (JSE), e.g. Tomcat.
WSAMAN command linewsaman can be used to change both runtime and application properties.
1. Disable the Web Service:
$ wsaman -name wsa1 -appname WSTest -disable
2a. Update the
appServiceHost parameter to the
hostname of the
NameServer if the
appServiceProtocol is set to "
Appserver":
$ wsaman -name wsa1 -appname WSTest -prop appServiceHost -value <NameServer hostname> -setprops
3a. Update the
appServicePort parameter to the
port of the
NameServer.
$ wsaman -name wsa1 -appname WSTest -prop appServicePort -value <NameServer Port Number> -setprops
2b. Update the
appServiceHost parameter to the
hostname of your
AppServer Broker if the
appServiceProtocol is set to "
AppserverDC".
$ wsaman -name wsa1 -appname WSTest -prop appServiceHost -value <AppServer Broker hostname> -setprops
3b. Update the
appServicePort parameter to the port of the
AppServer Broker.
$ wsaman -name wsa1 -appname WSTest -prop appServicePort -value <Your AppServer Broker Port Number> -setprops
4. Verify the new
appServiceHost and
appServicePort settings:
$ wsaman -name wsa1 -getprops -appname WSTest
5. Enable the Web Service:
$ wsaman -name wsa1 -appname WSTest -enable
6.
Restart the
Java Servlet Engine (JSE), e.g. Tomcat.