Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-3654

FIWARE.Request.Lab.Interfacing GEs through http.

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:
      None

      Description

      Hello,
      I'm trying to implement Orion context broker with Proton CEP and an external API, Mandrill, to send emails on event detection. Orion would take values from our own API and send them to CEP. On event detection, CEP would send a payload to Orion, who would parse it and direct it to Mandrill and have an email template merged with the variables and sent to the correct client.

      While studying Orion http communication, I found that I wasn't able to make it send an http POSTs, using the subscription feature, with the JSON object formated the way each API needs to communicate.

      For instance, CEP only takes flat JSONs of the form

      {"name":"Report" , "value":"100"}

      on a POST request, but Orion's output is a complex JSON. So, CEP isn't able to take inputs directly from Orion because variables in the JSON aren't accessible to it and vice-versa.
      Same thing happens with Mandrill API, which does recieve JSON POSTs but with a particular configuration.

      So I'd like to confirm that Fiware GEs don't generally have a way of communicating direclty through http and that we need to write some complementary backend code to parse these JSON requests.
      Is this the case for other GEs as well? Am I missing something about Orion's http requests?
      If you need more information, please let me know.
      Thank you
      Arthur Vieira
      Geratriz, Portugal
      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      [Created via e-mail received from: Arthur Vieira <arthurmvieira@hotmail.com>]

        Activity

        Hide
        alfopietro Pietropaolo Alfonso added a comment - - edited

        Dear user,
        I suggest you to see this page:

        http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker

        For further help you can find a good technical support in Stack Overflow with tag fiware-orion.

        Thank you.

        Show
        alfopietro Pietropaolo Alfonso added a comment - - edited Dear user, I suggest you to see this page: http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker For further help you can find a good technical support in Stack Overflow with tag fiware-orion. Thank you.
        Hide
        alfopietro Pietropaolo Alfonso added a comment -

        The issue has been emailed:

        • Time sent: 30/Jul/15 11:59 AM
        • To: arthurmvieira@hotmail.com
        • with subject: *(HELP-3654) [Fiware-tech-help] Interfacing GEs through http *

        Dear user,
        I suggest you to see this page:

        http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker

        For further help you can find a good technical support in Stack Overflow with tag fiware-orion.

        Thank you.

        Show
        alfopietro Pietropaolo Alfonso added a comment - The issue has been emailed: Time sent: 30/Jul/15 11:59 AM To: arthurmvieira@hotmail.com with subject: *( HELP-3654 ) [Fiware-tech-help] Interfacing GEs through http * Dear user, I suggest you to see this page: http://catalogue.fiware.org/enablers/publishsubscribe-context-broker-orion-context-broker For further help you can find a good technical support in Stack Overflow with tag fiware-orion. Thank you.

          People

          • Assignee:
            alfopietro Pietropaolo Alfonso
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: