IBM i Integrated Web Server

About IBM i Integrated Web Server

Train your IBM i System to listen to incoming webservices from the Internet. Using IBM's integrated Webserver (previously known as Apache) you can easily and quickly expose specific business functions to the internet - while taking care to fully secure all access through the business logic already built into your application programs.

Providing web services for external calls to your IBM i system can offer several significant benefits.

  • Integration with Modern Applications
    Web services allow your IBM i system to communicate with modern applications, platforms, and services, regardless of the technology stack they use. This enables seamless integration with web, mobile, and cloud applications.
  • Access to Business Logic and Data
    By providing web services, you can expose critical business logic and data stored on your IBM i system to external applications, allowing them to leverage your existing resources without needing to replicate data or functionality.
  • Support for Multiple Protocols
    Web services can be implemented using REST (Representational State Transfer) or SOAP (Simple Object Access Protocol), providing flexibility in how external systems interact with your IBM i applications.
  • Enhanced Collaboration
    Web services facilitate collaboration with business partners, suppliers, and customers by allowing them to access your services and data securely and efficiently.
  • Scalability and Flexibility
    Web services can be designed to handle varying loads, making it easier to scale your applications as demand increases. This is particularly useful for businesses experiencing growth or seasonal fluctuations.
  • Improved User Experience
    By integrating web services, you can create modern user interfaces for your applications, improving the overall user experience and making it easier for users to access and interact with your systems.
  • Cost Efficiency
    By exposing existing functionality through web services, you can reduce the need for duplicate development efforts, saving time and resources.
  • Mobile and Cloud Readiness
    Support for Mobile Apps: Web services enable the development of mobile applications that can interact with your IBM i system, allowing users to access services and data on the go.
    Cloud Integration: They also facilitate integration with cloud-based services and applications, enabling hybrid solutions that leverage both on-premises and cloud resources.
  • Security and Control
    Web services can be secured using various authentication and authorization mechanisms, allowing you to control who can access your data and services.
  • Future-Proofing
    By adopting web services, you position your IBM i system for future growth and modernization, ensuring that it can adapt to changing business needs and technological advancements.

Integrating web services for external calls into your IBM i system can dramatically expand its functionality, boosting accessibility, versatility, and seamless integration with the wider world of technology. Such a strategy not only streamlines operations but also paves the way for groundbreaking collaboration and innovation.

Module Content

Train your IBM i System to listen to incoming webservices from the Internet. Using IBM's integrated Webserver (previously known as Apache) you can easily and quickly expose specific business functions to the internet - while taking care to fully secure all access through the business logic already built into your application programs.

IBM i IWS (Integrated Web Server) for serving IBM i Data to the Internet

MEMBERS ONLY

The IBM i Integrated Web Server (IWS) is a web server that is built into the IBM i operating system. It provides a platform for hosting web applications and services directly on the IBM i system

Steps to Install IBM HTTP Server for i on your IBM i server

The lesson walks you through confirming that the IBM HTTP Server for i has been correctly installed and is ready to use. It begins by outlining the authority requirements for accessing the Web Administration for i interface specifically that users typically need ALLOBJ and IOSYSCFG, or must be granted explicit permission to manage or create web‑related servers. The page then guides you through starting the HTTP Administration server using STRTCPSVR SERVER(HTTP) HTTPSVR(ADMIN) and verifying that it’s running via WRKACTJOB. Once the admin server is active, the lesson explains how to access the Web Administration interface through a browser at http://your_system:2001, locate the default HTTP server instance APACHEDFT, start it, refresh its status, and confirm that it shows as “Running.” Finally, it instructs you to open a browser and visit your IBM i host name to view the default welcome page, confirming the installation was successful.

Our Web server is installed and verified so now it's time to learn how to administer our webserver.

Sample RPGLE - IBM i Integrated Web Server

MEMBERS ONLY

Let's start with coding the most simple example of a webservice that we can think of. This will respond to any external webservice calls using IBM i internal webserver (IWS)

Copy Paste the RPG code, compile it and lets get ready to test this webservice on the IBM i Power System.

Create a basic IBM i Web Server ready for standard IBM webservices: First Step make sure your IBM i IWS is up and running go to IBM Navigator for i. This is easiest from IBM i Access Client Solutions or you can just enter the URL in your browser: http://yourIBMiname:2002/Navigator/mainframe/home NOTE: other machines I've been on use port 2001 (rather than 2002)

Download and Test with a Webservice Testing Tool - SOAPUI SoapUI is a popular tool for testing web services, especially SOAP and REST APIs. It allows you to create, run, and automate functional and load tests, as well as mock web services.

Some simple SQLRPGLE code that will run as an IBMi webservice... this is called from an external system, coming into our IBM i system via the Integrated Web Server. The webservice will list the JBA System21 Stockrooms and return them for the user that was passed...

Sample RPGLE - CGI Style Webservices

MEMBERS ONLY

Code example

Let's refactor the previous lessons web service examples (GET, POST, PUT, DELETE) into a clean, modular service program. This approach makes your code reusable, testable, and ready for integration with IWS or CGI wrappers.

Ready to learn?
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>