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
 View Only
  • 1.  IWS and clob types

    Posted 13 days ago

    Hi, 

    Trying to create a service out of stored procedure having a clob as input and output parm. How does that get defined in the input source? 

    Thanks. 



    ------------------------------
    Michael Cramer
    ------------------------------


  • 2.  RE: IWS and clob types

    Posted 13 days ago
    Edited by Nadir K Amra 13 days ago

    It depends on what HTTP method you are using.   If GET, then it would need to be in path or query string.   But let us assume it is POST and the data is in the payload. So you would need to indicate the input parameters should be wrapped.  Thus, a client would do a POST request with following payload, assuming JSON:

    {

       "IN_ACTION" : "STOP", 
       "IN_DATA" : "KEY1"

    }

    The 3-part series of articles titled "Building a REST service with integrated web services server" at  Integrated web services - articles

    Ibm remove preview
    Integrated web services - articles
    Integrated web services - articles
    View this on Ibm >

    would be a good resource. 

    I hope this helps. 



    ------------------------------
    Nadir K Amra
    ------------------------------