webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Testing Rest service

    Posted Thu December 15, 2016 08:39 AM

    Hi,

    I have a rest service post method exposed to other application. When I test from rest client populating header , in IS header field name is coming with all small letters.
    Ex: if I give SenderId = ‘XYZ’ in IS it is coming as senderid=‘XYZ’.
    Because of this we are unable to extract the value at runtime.
    Is this the expected behavior. Is there anything to do with the rest client.

    Please advice

    Thanks,
    Monica


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Testing Rest service

    Posted Thu December 22, 2016 03:15 AM

    Hi Monica,

    Can you please share a request sample and the response in return to that.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Testing Rest service

    Posted Fri December 23, 2016 02:18 AM

    Hi Bari Khan,

    Request is any XML with headers populated from rest client. We are returning response as string ‘Success’ or ‘Failure’ based on some logic.
    In webMethods pipeline the request header fields is coming as ‘senderid’ even though we send them as SenderId = ‘XYZ’.
    The fields of header is coming in small letters in IS.

    Same scenario when we test with soap client.

    Is this expected behavior. Why are header field names coming as small letters in IS.

    Thanks,
    Monica


    #Integration-Server-and-ESB
    #webMethods