You can set up the Apache Web Server 2.2.0 or higher on a Windows PC with the mod_aspdotnet plug-in to use the FDMERGE command to merge forms natively from the iSeries. This article shows you how to set up the Microsoft IIS web server with the FDMERGE command for merging electronic forms.
 
Prerequisites:
 
To set up the Apache web server:
 
  1.  Open either one of the following configuration-file locations:
    • C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf\httpd.conf
    • C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
  2. Add the following to the end of the configuration file:

    #---------------------------------------------------------------------------
    # ASP.Net Functionality Enablement
    #
    #---------------------------------------------------------------------------
    LoadModule aspdotnet_module "modules/mod_aspdotnet.so" 

    AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo 

     

    #---------------------------------------------------------------------------
    # Mount the ASP.NET /asp application
    #---------------------------------------------------------------------------
    AspNetMount /RJSFormServer "C:/inetpub/wwwroot/RJSFormServer"
    #---------------------------------------------------------------------------
    #/SampleASP is the alias name for asp.net to execute
    #"c:/SampleASP" is the actual execution of files/folders  in that location
    #---------------------------------------------------------------------------

    #---------------------------------------------------------------------------
    # Map all requests for /asp to the application files
    #---------------------------------------------------------------------------
    Alias /RJSFormServer "C:/inetpub/wwwroot/RJSFormServer"
    #---------------------------------------------------------------------------
    #maps /RJSFormServer request to "C:/inetpub/wwwroot/RJSFormServer"
    #now to get to the /RJSFormServer type http://localhost/RJSFormServer
    #It'll redirect http://localhost/SampleASP to "C:/inetpub/wwwroot/RJSFormServer"
    #---------------------------------------------------------------------------

    #---------------------------------------------------------------------------
    # Allow asp.net scripts to be executed in the /RJSFormServer
    #---------------------------------------------------------------------------
    <Directory "C:/inetpub/wwwroot/RJSFormServer"> 
    Options FollowSymlinks ExecCGI 
    Order allow,deny 
    Allow from all 
    DirectoryIndex index.htm index.aspx
    #default the index page to .htm and .aspx
     

    #---------------------------------------------------------------------------
    # For all virtual ASP.NET webs, we need the aspnet_client files
    # to serve the client-side helper scripts.
    # Set up an alias match to the .Net Runtimes
    #---------------------------------------------------------------------------
    AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
    <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles"> 
    Options FollowSymlinks 
    Order allow,deny 
    Allow from all
     

     

    #---------------------------------------------------------------------------
    #
    #---------------------------------------------------------------------------

  3. Install RJSFormsServer ASP.Net in the folder c:\inetpub\wwwroot\RJSFormServer: http://downloads.rjssoftware.com/files/ws_eforms/RJSFormServer/RJSFormSe...
  4. (Optional) If you want to run Apache on a port other than Port 80:
    1. Use Notepad of a text editor to open the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf.
    2. Find the line:

      Listen 80

    3. Change the 80 to the port number you want to use.

      For example: To change the port to 9080, type:

      Listen 9080

      All web requests would then use the base URL http://1.1.1.1:9080.

  5. Stop and re-start Apache Web Server.
  6. Make sure the FDMRGHOST data area in the WINSPOOL library on the iSeries matches the base URL to Apache Web Server.

    For example: If Apache Web Server is running on IP address 1.1.1.1 and port 9080, use:

    CHGDTAARA DTAARA(WINSPOOL/FDMRGHOST) VALUE(' http://1.1.1.1:9080')

  7. Make sure the RJSFormServer web application is configured correctly by accessing it from the following browser URL, where 1.1.1.1 is the IP address and 9080 is the port:

    http://1.1.1.1:9080/RJSFormServer/MergeForm.aspx

    If you see the following error in the web browser, the configuration is correct:

    ERROR:FormDocsTemplate parameter is required. 

  8. Test the FDMERGE command in the WINSPOOL library to make sure it merges as expected.
Still have questions? We can help. Submit a case to technical support

Last Modified On:
You don't have the appropriate permissions.
No, open a new Support Case