SOAP service migration from IIS to node
First step is to open `IIS Manager`. On the left panel `Connections` select the app that you would like to migrate.
In this example it is named xMATest. Next on the right panel named `Actions` click `Advanced Settings`.
In this example it is named xMATest. Next on the right panel named `Actions` click `Advanced Settings`.
Write down protocol and port from section
Bindings
. In following example protocol is http and port is 90.
Next proceed to path from section
Physical Path
. In the case it will be C:\..\xMATest. Next proceed to directory xMA and find file config.xml.
Open this file in text editor. Preserve the text editor opened.
Next proceed to the path where you have unzipped
ma-web-service
.
Run
ma-web-service-win.exe
two times. As a result of this action configuration file should be created :
web-service-config.json.
Sample web-service-config.json file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | { "limitterConfig": { "enabled": false, "limitDBOpen": false, "limitDBExecute": false, "maxRequest": 1000, "timeFrameMS": 500000, "delayMs": 10 }, "rasServerIP": "127.0.0.1", "databaseServerIP": "127.0.0.1", "databaseName": "testDB0", "databaseAlias": "", "userName": "GSDWebService", "userPassword": "", "timeout": 900, "readTimeout": 30, "databases": [ { "rasServerIP": "127.0.0.1", "databaseServerIP": "127.0.0.1", "databaseName": "testDB1", "databaseAlias": "test", "userName": "GSDWebService", "userPassword": "", "timeout": 900, "readTimeout": 30 } ], "listeners": [ { "type": "HttpListener", "enabled": false, "port": 8080 }, { "type": "HttpsListener", "enabled": true, "port": 8334, "serverKey": "cert/key.pem", "serverCert": "cert/cert.pem" }, { "type": "Http2Listener", "enabled": false, "port": 8335, "serverKey": "cert/key.pem", "serverCert": "cert/cert.pem" } ], "clusterConfig": { "minWorkers": 1, "maxWorkers": 1, "workerTimeout": 600000, "maxPendingRequests": 100 }, "loggerConfig": { "severity": 0, "targetConfigs": [ { "name": "console-target", "enabled": true }, { "name": "file-target", "enabled": true, "logFileLocation": "log" } ], "truncate": true, "truncateSize": 500 }, "proxyConfig": { "proxyServerAddressWS": "ws://127.0.0.1:8081", "enabled": false }, } |
Values of rasServerIP, databaseServerIP, databaseName, userPassword fields should be replaced by values from config.xml file according to following schema:
config.xml field | web-service-config.json field |
---|---|
GsdRasServer |
rasServerIP |
GsdDBServer |
databaseServerIP |
GsdDB |
databaseName |
GsdDBUser |
userName |
GsdDBPassword |
userPassword |
For example value localhost
should be placed instead of 127.0.0.1
:
Moreover, port
of the second entry in field listeners
in file web-service-config.json should be replaced by the port
value from IIS Manager Advanced settings
dialog window.
For example value 90
should be placed instead of 8334
:
The last step is to run this service as a windows service according to following instruction:
Instruction