• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • RPG, XML, SOAP, and REST: Web Services for IBM i

    October 14, 2015 Dan Burger

    Anyone following the evolution of Web services has seen the RESTful architecture gaining ground quickly on the traditional favorite SOAP architecture. Web development and particularly Web-based mobile development has welcomed REST. To keep up with demand, Krengel Technology has introduced version 3.2 of its RPG-XML Suite, which delivers new Web service capabilities to IBM i customers.

    Krengel developed the RPG-XML Suite for RPG developers who, as the Krengel website notes, “have lived through creating Web services in RPG and Java without a well-packaged development toolset.”

    Web service basics: An RPG program calls a Web service that resides on another machine.

    RESTful services have increased in popularity, says Krengel lead developer Greg Bissey. “RESTful is becoming the go-to approach,” he says. “It’s simplified and more open than SOAP. Customers consuming Web services find them easier to work with. They generate less support, use less proprietary tooling, and are more accessible to a wider audience. I am seeing more shops switching from SOAP to RESTful services.”

    The RPG-XML Suite continues to support SOAP services and other types of Web services. With the new version 3.2 release, Krengel added support for the following RESTful HTTP methods: PUT, DELETE, HEAD, OPTIONS and PATCH. In previous releases, the product only supported the SOAP methods POST and GET.

    In addition to the RESTful HTTP methods, Krengel introduced the capability to parse data that’s directly in the URI (uniform resource identifier). This capability is typically found in robust Web services environments associated with SOAP-based environments. It’s one indicator that RESTful Web services are more robust than some believe, according to Bissey.

    “Often times people associate complexity with functionality–the more complex it is, the assumption is that it is more robust,” Bissey says with a nod toward SOAP advocates. “One of the reasons RESTful is becoming popular is because it dispels that notion and shows that a simple approach can be a robust solution.”

    Minimizing complexity is an oft-stated goal in the software business. In instances where it turns out to be true, it becomes the Midas touch. Of course, simplicity and its evil twin complexity depend on the project requirements.

    Jeff Skistad, CEO of Krengel Technology, says that at least half the companies he comes in contact with prefer to have Web services done by Krengel’s professional services staff. Companies don’t have the internal resources to get Web services projects completed in a reasonable time frame.

    “They realize it comes down to efficiency,” Skistad says. “Their internal task lists are already long. We have the expertise. And even if they have the resources, they still need to decide whether they can switch from what they are doing to this project.”

    If they have the comfort level and understanding of tool set, they will take it on themselves, he says.

    The basic description of the RPG-XML Suite is that it’s an RPG service program that aids in the composition, transmission, and parsing of XML. It’s used to provide as well as consume XML Web services.

    An example noted on the Krengel Technology website is an RPG program that sends an XML invoice to a business partner to automate the billing process. In the opposite role, the server/client calls RPG-XML Suite by passing an XML request. The RPG Web service receives and parses the XML. The RPG Web service program presents the data from the XML document so other RPG business logic can be called or data can simply be stored in the DB2 for i database. The RPG web service program can then compose an XML response and return it to the caller (server/client).

    Krengel supports two versions of the RPG-XML Suite: versions 2 and 3. Each has its own APIs. The version 3 releases require IBM i 6.1, 7.1 or 7.2. The version 2 release supports V5R2 through V5R4. New enhancements, naturally, go into the version 3 release.

    Additional enhancements in the newly available 3.2 release that we’ve yet to talk about include increased performance of the XML compose engine, automatic compression of white space when composing from templates, and automatic omission of uncomposed template content. Users familiar with the RPG-XML templates will notice these changes, Bissey says.

    There’s also support for larger stream files. Previously the limit was 16 MB on both the input and output. The limit ceiling now has been tested beyond 50 MB, according to Bissey. However, he advises that the limit depends on the application and its use of variables, the memory on the machine, and other factors. In theory, it could go higher than the 50 MB test result, he says.

    The IBM i operating system, at the 6.1 release, introduced 60 MB variables (16 MB was the previous limit). The capability to handle the larger variables was included in the RPG-XML version 3 API.

    Support for XML was built into RPG IV with the release of V5R4 in 2006. It’s fair to say that release did more to drive RPG programmers away than it did to draw them to XML. With time, IBM eventually corrected its mistakes, but first impressions are powerful and IBM has trouble learning this lesson. RPG support for XML is now praiseworthy and the word is spreading.

    Krengel’s next enhancement, Skistad says, is support for JSON-based communications. “We are actively working on this,” he says. “Q1 2016 is our target for that with RPG-XML version 3.3.”

    RELATED STORIES

    An Introduction to Processing XML With RPG

    Krengel Soothes RPG to XML Integration Needs

    Krengel Adds Credit Card Processing to RPG-XML Suite

    Krengel Rejiggers Mailing Automation Lineup

    Krengel Challenges Shops to Keep UPS Shipping Apps on IBM i

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Connectria:  Need help managing your IBM i? Trust us as an extension of your IT department.
    HelpSystems:  How do you use IBM i? Your peers want to know! Take the survey >
    System i Developer:  Session Grid Posted: RPG & DB2 Summit - Chicago, October 20-22

    IBM Mothballs The Last Of The Power7+ Servers A Different View Of IBM i And PASE

    Leave a Reply Cancel reply

Volume 25, Number 51 -- October 14, 2015
THIS ISSUE SPONSORED BY:

BCD Software
Fresche Legacy
Rocket Software
United Computer Group, Inc.
Connectria

Table of Contents

  • GCC: Bringing More Open Source Software to IBM i
  • What JSON on IBM i Can Do For You
  • RPG, XML, SOAP, and REST: Web Services for IBM i
  • Taming SQL Queries with a CozTool
  • LANSA Delivers LongRange Support for Windows 10 . . . Got Mobile Server Monitoring? iEye, Captain . . . Shield Goes ASP with JQG4i

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23
  • SEU’s Fate, An IBM i V8, And The Odds Of A Power13
  • Tandberg Bankruptcy Leaves A Hole In IBM Power Storage
  • RPG Code Generation And The Agentic Future Of IBM i
  • A Bunch Of IBM i-Power Systems Things To Be Aware Of
  • IBM i PTF Guide, Volume 27, Numbers 21 And 22

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle