MultiValue Tools

 View Only
  • 1.  Webhook Integration Advice

    Posted 04-15-2024 19:31

    Hello,

    I am trying to integrate a webhook from a third party company in Universe 11.3 on IBM AIX.  The third party company asked for a URL to send their messages and I thought I would be able to build this through RESTful Web Services developer and a Unibasic subroutine.  I  setup an input parameter and hoped it would contain the return data, but that did not work and the parameter was not being populated.

    Is the RESTful Web Services the best tool for this?  If so, how can I parse the return message (below) in my Unibasic subroutine, so I can update my database?  If not, any tools/ideas you can recommend?

    Thanks,

    Larry



    ------------------------------
    Lawrence Rizzo
    Consultant
    LJR Technology Consulting LLC
    East Amherst NY US
    ------------------------------


  • 2.  RE: Webhook Integration Advice

    ROCKETEER
    Posted 04-16-2024 09:46

    Lawrence,

    Rocket U2 RESTFul Web Services is the older tool that Rocket had to create RESTFul Web Services.

    Were you able to test the service from the tool?

    Are you getting an error message?

    One thing to check is how you have the parameters defined for Subroutine Service.

    ----

    As for the best tool, I recommend Rocket MVIS, (Rocket MultiValue Integration Server)



    ------------------------------
    Mike Rajkowski
    MultiValue Product Evangelist
    Rocket Internal - All Brands
    US
    ------------------------------



  • 3.  RE: Webhook Integration Advice

    Posted 04-16-2024 12:17

    Hi Mike,

    I do believe my client is planning on moving to MVIS, but for know, all I have available is the REST Developer.  I was able to succesfully implement a REST server for a prior project, but this is a webhook, which "pushes" events as they occur.  With that, it have not been easy to test as I have to easy way to trigger events without actually being in their software.

    The error is that the inbound parameter is not being sent.  (See below.)  I believe I need to find a way to access the HTTP message that was sent from the webhook, which contains the payload message.  If I can find way to access the message in my REST subroutine, I can simply parse it and load the JSON message.  Any ideas?

    Thank you for your reply!

    Larry



    ------------------------------
    Lawrence Rizzo
    Consultant
    LJR Technology Consulting LLC
    East Amherst NY US
    ------------------------------



  • 4.  RE: Webhook Integration Advice

    PARTNER
    Posted 10 days ago

    Mike,

    We also have similar requests that Lawrence has for setting up webhooks. We are long time users of the original Web Services Developer, the REST version, and now MVIS. Based on what we have read and can discern  - it seems to us that a webhook (where data is being sent INTO our MV application)  could be set up as a subroutine in MVIS, where no response is given (other than the standard HTTP 200/400 type of response). Is that correct?



    ------------------------------
    Frank Hanshaw
    Director of Development
    Circle Commerce Inc
    Simsbury CT US
    ------------------------------



  • 5.  RE: Webhook Integration Advice

    Posted 8 days ago

    Hello Frank (and Lawrence from the other post),

    I noticed your questions about webhooks and believe I can offer you tailored solutions using Rocket MVIS. If you're interested in discussing your specific use case, feel free to reach out to me privately.

    Best regards,

    Enrique Murphy



    ------------------------------
    Enrique Ignacio Murphy
    Software Engineer
    Aleator Software - RN40 Software
    Argentina
    ------------------------------



  • 6.  RE: Webhook Integration Advice

    PARTNER
    Posted 7 days ago

    Thanks Enrique - but we don't have an issue with any specific use case - we are just looking to verify the general theory.



    ------------------------------
    Frank Hanshaw
    Director of Development
    Circle Commerce Inc
    Simsbury CT US
    ------------------------------



  • 7.  RE: Webhook Integration Advice

    Posted 7 days ago

    Frank,

      Supposing you are using MVIS 1.X, I would solve that using a vanity URL that calls a subroutine. With vanity URLs, you can pass to your subroutine the request parameters or the request body of the HTTP request you receive (it will depend on the webhook specification) in IN parameters, and return the HTTP status (200, 400, etc) and the response body (if needed) in OUT parameters.

      HTH,

      Enrique



    ------------------------------
    Enrique Ignacio Murphy
    Software Engineer
    Aleator Software - RN40 Software
    Argentina
    ------------------------------