question

Upvotes
Accepted
41 1 2 2

.NET Code To Generate HTTP Post Request from IDS

Hi,

We have a client who needs to make a snapshot request from IDS, with a .NET app.

Do we have a stub of .NET code which will generate a complete http post request such as below? The request needs to go to for example http://idsserver:8080/ids-rest/json/quote, and the post body as below.

{

“closure” : “myTextString”,

“token”: “validDacsID”,

"item" : [ "TRI.N", "EUR=", ],

“filter” : [“BID”, “ASK”],

“expandChain”:true, “emptyLink”: false, “chainLink”:false

}


Thanks for all help, Bill Cunningham

elektronrefinitiv-realtimetrep
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
41 1 2 2

Thanks for the info Wasin. We got it fixed by using nc -lvk 9999, and having the user send his request to that process. We could see exactly what he was sending. He adjusted the content of his message accordingly, and we got his app getting data. Thanks for the help!

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
11.5k 16 7 10

Hello @billy.w.cunningham

I think the RESTful service interface does not have capabilities to automatic generates the JSON request and HTTP Post messages source code/class like the SOAP interface. You need to manual create a HTTP post request message with .Net library (example HTTPClient class).


If you want more detail regarding the IDS RESTful service interface and .Net example code, I suggest you submit a ticket to the IDS support team via https://my.refinitiv.com/ web site directly (please select "Product: Interactive Delivery Server").



ids.png (17.6 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea