IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  IBM i Rest API that uses XML as Request/Response parameter and RPG /SQL

    Posted 04/13/22 10:21 AM
    I am looking for a way to pass on XML document as an Input to Rest API that can be created through integrated web service and calls a RPG or SQLRPG module to process the XML and generate a response in XML with additional data
    Example of
    Request parameter is

    <Order>
    <OrderDetails>
    <LineItems itemid=AAA qty=1>1</LineItems>
    </OrderDetails>
    </Order>

    Response parameter is
    <Order>
    <OrderDetails>
    <LineItems itemid=AAA qty=1>1</LineItems>
    <LineItems itemid=BBB qty=1>2</LineItems>
    </OrderDetails>
    </Order>

    Are there any examples available that show similar operations?


    ------------------------------
    sachin ksh IT Architect
    ------------------------------


  • 2.  RE: IBM i Rest API that uses XML as Request/Response parameter and RPG /SQL

    Posted 04/26/22 04:22 PM
    Is this what you are looking for Tutorial - Building a Web service from an RPG program using iSeries Web services tools?

    ------------------------------
    Peter Vazny
    ------------------------------



  • 3.  RE: IBM i Rest API that uses XML as Request/Response parameter and RPG /SQL

    Posted 04/29/22 10:35 PM
    Thanks Peter Vanzy

    ------------------------------
    sachin ksh
    ------------------------------



  • 4.  RE: IBM i Rest API that uses XML as Request/Response parameter and RPG /SQL

    Posted 04/29/22 02:25 PM
    Please reference https://gist.github.com/Faq400Git/72431bdeb7998b081cce3b29cb0fe89a

    ------------------------------
    Vengoal Chang
    ------------------------------



  • 5.  RE: IBM i Rest API that uses XML as Request/Response parameter and RPG /SQL

    Posted 04/29/22 10:34 PM
    Thanks Vengoal Chang

    ------------------------------
    sachin ksh
    ------------------------------