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

FIWARE.Question.Tech.Data.OrionContextBroker.SubscriptionFormatJSON

    Details

      Description

      Created question in FIWARE Q/A platform on 16-12-2015 at 12:12
      Please, ANSWER this question AT http://stackoverflow.com/questions/34311175/orion-context-broker-subscription-format-json

      Question:
      Orion Context Broker, subscription format "JSON"

      Description:
      Im working on a simple subscription on contextBroker, and I'm subscribing my node application.

      subscribeContext

      After that it returns 200 status OK, and it insert the row in mongo, orion db.

      The problem is the field in collection csubs format is "XML", and on the my node application when I log the body that contextBroker sends it logs this
      logs from node that is subscribed

      Empty body. Then when I change the format in mongo to be "JSON" everything works fine. The body returns the data from contextBroker.

      My question is, how to make contextBroker to insert default "JSON" in the format field.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        21h 27m 1 Fermín Galán 17/Dec/15 12:30 PM
        In Progress In Progress Answered Answered
        3s 1 Fermín Galán 17/Dec/15 12:30 PM
        Answered Answered Closed Closed
        3d 23h 32m 1 Backlog Manager 21/Dec/15 12:03 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-21 12:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-21 12:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        oriondev TID Orion Developer made changes -
        Summary [fiware-stackoverflow] Orion Context Broker, subscription format "JSON" FIWARE.Question.Tech.Data.OrionContextBroker.SubscriptionFormatJSON
        fermin Fermín Galán made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        fermin Fermín Galán made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        fermin Fermín Galán added a comment -

        Interacting with the user to get all inputs (see comments on the question at SOF).

        Show
        fermin Fermín Galán added a comment - Interacting with the user to get all inputs (see comments on the question at SOF).
        mev Manuel Escriche made changes -
        Assignee Fermín Galán [ fermin ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-16 15:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-16 15:05|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: