To configure MassTransit for web, you need to edit the files MassTransit.cfg and mtweb.ini. To do so:
ENABLE_SOAP_API
SOAP_API_PORT
Edit the first line as shown below:
ENABLE_SOAP_API = TRUE
Leave the second line as the default:
SOAP_API_PORT = 50050
Note: You must restart MassTransit services so that these changes take effect. You can do this in Windows Task Manager -> Services. To verify that the changes have taken effect, check the MassTransit Administrator log for the following message: "SOAP interface enabled on port 50050”.
Note: Every time the MTWeb files are updated, you must delete the content of the parsed and templates_c folders, with the sole exception of the readme.txt files.
Note: In mtweb.ini, all lines beginning with a semicolon (;) are considered commented and are therefore ignored. You must uncomment all the lines mentioned in the steps below, by removing the semicolon (;), and then set the value appropriately.
Note: All values that contain spaces or other non-alphanumeric characters must be enclosed by double quotes, otherwise the double quotes are optional.
SOAP_PROXY_ADDRESS—the value must be set to the IP address of the machine.
DB_HOST—the value must also be set to the IP address of the machine.
DB_NAME—this must be set to the name of the MySQL database. By default, it is mtdatabase.
DB_USER—this must be set to the name of the MySQL user who will access the MassTransit database. You set that database user during the MassTransit installation and by default, it is also masstransit. For more information on how to create a new user in MySQL, refer to Frequently asked questions.
DB_PASSWORD—this must be set to the password of the MySQL user who will access the MassTransit database. You also set that password during the MassTransit installation.