“Could we use our existing RPG from the web without changing much?” When a question like that comes up on IBM i, my first thought is usually the 5250 screen. Can we make the terminal screen people already know usable in a browser?
Then, in a conversation about IBM i modernization, I came across a different option: IWS. My immediate reaction was, “IWS could do that?”
IWS stands for Integrated Web Services. IBM’s documentation explains that IWS can expose ILE programs and service programs as web services. It gives another application a way to ask IBM i to run a specific function and receive the result, without presenting the terminal screen in a browser.
Suppose someone wants invoice data in a CSV file. They may have no need to see the invoice screen at all. That was the example I thought might be worth trying.
If the part that returns the data can run without the screen, we could reuse the business logic and let another app turn the result into CSV. The people who enter or look up invoices could keep working as usual. The people who need the data would have their own small doorway.

A program that sits waiting for input on a 5250 screen isn’t something you can simply hand to IWS. If the screen and the business logic are intertwined, you first have to work out where to separate them. The invoice example was an idea for a test. There’s no test result to report here.
The next time someone asks me about moving to the web, I’d start here: “Do you want to use the screen in a browser, or do you just need the result of what it does?”
That one question can change the design. If the old front door still serves the people who use it, you can give the application that needs the data a smaller entrance of its own.
Technical reference: IBM’s Integrated Web Services for IBM i FAQ