Unable to Validate new SAP WebHook/HTTP Endpoint Event as it is not detected by SAP Gateway/Web Server RRS feed

  • Question

  • Hello, when I try to add (and therefore validate) a new Event Grid Subscription (SAP) WebHook/HTTP Endpoint, I am unable to detect the Validation Event on SAP, so am unable to respond to the Handshake; addition of the SAP WebHook Endpoint therefore fails a few minutes later.

    I set a Debug Point on SAP for the HTTP Handler Class attached to the following Web Address on my local network, and when I open this URL in Chrome I see the Debugger open immeidately in SAP as expected, so not a Network problem:

    When I use exactly this same URI on the Azure Portal to create a new Event Grid Subscription (SAP ASABAP) WebHook/HTTP Endpoint, there is so suggestion that SAP receives any HTTP call, as the Debugger is not started in the same way as it was via Chrome.

    As I have no interest whatsover in putting in place any SAP Connector, and simply wish to use SAP as a Web Server (which works fine from Chrome), can you please tell me what special steps need to be taken to set up Endpoint validation when SAP is the WebHook/HTTP Endpoint ?

    (I am currenty evaluating exactly this solution for my employer, and they have no interest or intent of putting a SAP Connector in place for simple HTTP handling)

    Regards, Cameron

    Saturday, December 7, 2019 3:28 PM

All replies

  • I would recommend using an Event Grid Trigger. 

    This guide shows the steps that I think you would need, if I'm understanding your question correctly. https://docs.microsoft.com/en-us/azure/event-grid/receive-events

    What guide are you following for this? 

    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Monday, December 9, 2019 11:01 PM
  • Hello, the best guide I have found so far talks about "Local testing with ngrok" (https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid#local-testing-with-ngrok). I think the problem is here somewhere, although I am not sure how exactly to add the mandatory "suffix /api/updates/" with ngrok... Why on Earth is there are mandatory (= hard-coded) suffix in any case ?

    Here are some other things that are causing me a genuine headache, and both relate to the often incomprehensible language found in MS Documentation :

    1) The Guide you mention is called "Receive events TO an HTTP endpoint". 'Receive TO' ? Not 'Receive AT' ? How can anyone Receive TO an Endpoint ?

    2) You "recommend using an Event Grid Trigger", whereas I was talking about RECEIVING events in SAP, not TRIGGERING Events ? I have no idea since when the word TRIGGER can also be used to mean HANDLE, but it seems that the official MS Documentation is also terribly confused about this subtility :

    "Event Grid events are received as HTTP requests, so you can HANDLE events by using an HTTP TRIGGER instead of an Event Grid TRIGGER." I have no idea what that means...

    Honestly, I can hardly follow MS Doc, which is also copied, pasted and duplicated all over the place...

    Extremely unsatisfying...

    Tuesday, December 10, 2019 5:54 PM
  • I'll definitely pass your feedback along to the author! 

    I'm looking into this but if you'd prefer, I can open a support case for you to get this resolved faster. (If you send your subscription ID to AzCommunity@microsoft.com and include a link to this thread)

    Please take a moment to "Mark as Answer" and/or "Vote as Helpful" wherever applicable. Thanks!

    Tuesday, December 10, 2019 7:29 PM