I'm trying to integrate Orion notification with a custom WebService, but I'm not able to get data in the WebService.
I have the subscription defined like I subscribed Cygnus, but with WebService url.
Orion's output:
DEBUG@10:34:04 httpRequestSend.cpp[299]: HTTP-HEADERS: 'User-Agent: orion/0.23.0 libcurl/7.19.7'
DEBUG@10:34:04 httpRequestSend.cpp[307]: HTTP-HEADERS: 'Host: xxxxxxxxxxxxx.es:8080'
DEBUG@10:34:04 httpRequestSend.cpp[351]: HTTP-HEADERS: 'Content-length: 3277'
DEBUG@10:34:04 httpRequestSend.cpp[419]: Sending message 174 to HTTP server: sending message of 3518 bytes to HTTP server
INFO@10:34:04 httpRequestSend.cpp[434]: Notification Successfully Sent to xxxxxxxxxxxxx:8080/PruebasREST/webresources/service
INFO@10:34:04 httpRequestSend.cpp[445]: Transaction ended
If I do a json POST curl in a console, the WebService is working as expected, but when Orion sends notification there is no response from the WebService.
Does anyone imagine what is happening?
Thanks
SOLVED
The problem was the Accept Header sent by Orion.
The WebService response wasn't the same type than the Accept Header
Thanks to LeandroGuillen for giving me the clue to know the exact format of Orion's json POST with accumulator-service.py