Create Web services for an action

Dynamics AX 4.0

If the global setting for creating Web services by default is enabled on the Global Settings form, then the Enable Web method checkbox is selected for each action on the Actions form, as long as the action is enabled and a Web site has been configured using the form.

Before you can generate Web services for an action you must:

  • Install and configure an application integration server and Microsoft Internet Information Services (IIS) 6.0 or later. See Install an application integration server.

  • Enable an action on the form.

  • Create and configure a valid Web site for the Web services on the form.

  1. Click > > > .

  2. Select an action.


    Be sure that the check box is selected for the selected action.

  3. Select .

  4. Click .

  1. Open IIS Services Manager (Start > All Programs > Administrative tools > Internet Information Services Manager).

  2. Navigate to the virtual root DynamicsWebService.

  3. Right-click on the .asmx file and click Browse to view the Web services.

Recover from Page not found errors

If you get a Page not found error after clicking Browse then you must re-register ASP.NET in IIS using the following steps:

  1. Click Start > Run.

  2. Type your-system-directory\Microsoft .NET\Framework\v2.0.50727 and press ENTER.

  3. Type aspnet_regiis.exe -u and press ENTER.

  4. Type aspnet_regiis.exe –i -enable and press ENTER.

  5. Type iisreset and press ENTER.

  6. Close the Command Prompt window.

    After uninstalling and reinstalling ASP.NET and resetting IIS, the ASP.NET tab is available, and you can select ASP version 2.0. This allows you to browse the Web services after you create them on the form. See Create Web services for an action.