Configure Multiple AX Web Services
Before you start to set up multiple instances of the Microsoft Dynamics AX 2009 web services, you must check the following prerequisites:
-
Microsoft Dynamics AX 2009 instance. For more information, see Microsoft Dynamics AX 2009 Installation Guide.
-
.NET Business Connecter. Business Connector proxy user must be created and configured. For more information, see Install .NET Business Connector and Set Up Business Connector Proxy User.
-
AIF web service for Microsoft Dynamics AX 2009. Application pool and website must be created and configured. AIF web service must respond to requests. For more information, see Install AIF Web Services and Set Up AIF Web Site.
If the prerequisites are checked, you can set up multiple instances of the Microsoft Dynamics AX 2009 web services.
Step 1: Install the second environment of Microsoft Dynamics AX 2009.
Step 2: Install the second AIF web service. Configure it in the same way as the first one. See the prerequisites.
Step 3: Create a new Business Connector non-interactive configuration:
-
Run the configuration utility. It can be found at the following location: Start > Control Panel > Administrative Tools > Microsoft Dynamics AX 2009 Configuration;
-
In the Configuration target list, select Business Connector (non-interactive use only);
-
Click Manage and then Create configuration…;
-
In the Create configuration dialog box, in the Name field, type a name;
-
Choose whether to copy settings from the active configuration or the original (default) one and the click OK;
-
Go to Connection tab and specify server, instance and port for the second AX environment;
-
Click Cancel to close configuration utility.
If you click OK or Apply, then this configuration will become default and first AIF web service will work using this configuration.
Step 4: Modify the Web service configuration file of the second Microsoft Dynamics AX service:
-
Open the web.config file of the second AIF website.
-
Locate the <appSettings> configuration section. Check if the key BUSINESS_CONNECTOR_CONFIGURATION exists. If not, then add it. Set key value to the configuration name which was created for Business Connector (see Step 3).
Example:
<appSettings>
<add key="BUSINESS_CONNECTOR_CONFIGURATION" value="ax2_BC_cfg" />
</appSettings>
If all steps have been performed correctly, then multiple Microsoft Dynamics AX web services are set up successfully on the same server.