IBM i

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

    Posted Wed April 13, 2022 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

    InnerCircle
    Posted Tue April 26, 2022 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 Fri April 29, 2022 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 Fri April 29, 2022 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 Fri April 29, 2022 10:34 PM
    Thanks Vengoal Chang

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