[Fiware-lab-help] IoTDiscovery

Sándor Laki laki.sandor at wigner.mta.hu
Fri May 22 13:36:52 CEST 2015


Dear Marinos,

For me it seems that you do not specified the content type in the http 
header of your post request. The default content type is XML in Orion, 
so please add the following headers to your request:
Content-type: application/json
Accept: application/json

Please let me know if it solved the problem or if you have any further 
difficulties!

Best,
Sandor

2015.05.22. 13:13 keltezéssel, mk írta:
> Dear Sir or Madam,
>
> I tried to use IoTDiscovery with an example including in the IoT Guide 
> manual
> and ai received always the same error. Do you know the reason. Is 
> there any bug.
> Thank you in advance.
>
> Marinos Kardaris
> {
> "contextRegistrations": [
>         {
> "entities": [
>                 {
> "type": "Room",
> "isPattern": "false",
> "id": "Room1"
>                 },
>                 {
> "type": "Room",
> "isPattern": "false",
> "id": "Room2"
>                 }
>             ],
> "attributes": [
>                 {
> "name": "temperature",
> "type": "float",
> "isDomain": "false"
>                 },
>                 {
> "name": "pressure",
> "type": "integer",
> "isDomain": "false"
>                 }
>             ],
> "providingApplication": "http://mysensors.com/Rooms"
>         }
>     ],
>     "duration": "P1M"
> }
>
> I received the following error message
> <registerContextResponse><errorCode><code>400</code><reasonPhrase>Bad 
> Request</reasonPhrase><details 
> xmlns:xs="http://www.w3.org/2001/XMLSchema" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:type="xs:string">Error in XML 
> structure</details></errorCode></registerContextResponse>
>
>
> -- 
> Kardaris Marinos
> Systems Engineer - Aviation Expert
>
> *Future Intelligence Ltd.*
> Technological & Scientific Park of Attica "Lefkippos"
> NCSR Demokritos
> Branch: Scientific & Technological Park of Epirus
> University of Ioannina
> P: (+30) 2130417996 M: (+30)
> F: (+30) 2130021245
> mkardariss at f-in.gr <mailto:kanastasopoulos at f-in.gr>
> http://f-in.gr <http://f-in.gr/>
>
>
> _______________________________________________
> Fiware-lab-help mailing list
> Fiware-lab-help at lists.fi-ware.org
> https://lists.fi-ware.org/listinfo/fiware-lab-help


-- 
Sándor Laki
EU FP7 FI-PPP XIFI project,
Wigner Research Centre for Physics,
Hungarian Academy of Sciences
Konkoly Thege Miklós út 29-33.
H-1121, Budapest, Hungary
Cell: +36 70 374 2646
Skype: sandor.laki

XIFI: https://fi-xifi.eu/home.html
FI-PPP: http://www.fi-ppp.eu/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150522/53bafaaa/attachment.html>


More information about the Fiware-lab-help mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy