IBM i Global

 View Only
  • 1.  IWS Service Deployment of REST POST with JSON

    Posted Fri September 09, 2022 11:25 AM
    I'm having issues with the service deployment of a REST service that performs a POST.  It accepts a JSON CLOB parameter, and I don't know how to set up in the service deployment for that parameter.  The JSON will be sent in the header, and in the IWS service deployment, I'm thinking it needs to be either a *FORM_PARAM or a *HEADER_PARAM.  Either one requires the IWS configuration value for Identifier.  Am I on the right track there using one of those Input Source values?  What is needed for the Identifier for that?  I've tried using a parameter value within {} and that didn't work.  Can someone point me to information about the correct configuration for that?

    ------------------------------
    Amy Vozza
    ------------------------------


  • 2.  RE: IWS Service Deployment of REST POST with JSON

    IBM Champion
    Posted Sat September 10, 2022 09:15 PM
    Edited by Satid Singkorapoom Sat September 10, 2022 09:18 PM
    Dear Amy

    By "Identifier", do you mean Uniform Resource Identifier (URIs)?  If so, the "Part 3" article in this list discusses about this :  https://www.ibm.com/support/pages/integrated-web-services-articles

    ------------------------------
    Right action is better than knowledge; but in order to do what is right, we must know what is right.
    -- Charlemagne

    Satid Singkorapoom
    ------------------------------



  • 3.  RE: IWS Service Deployment of REST POST with JSON

    Posted Sat September 10, 2022 09:43 PM
    Thank you so much!  I found the example you mentioned and got it work now!

    ------------------------------
    Amy Vozza
    ------------------------------