Reference for DSService.svc - GetData
Given a token and details for a single request, retrieves data.
REQUEST PARAMETERS
The operation takes in a parameter of type DSGetDataRequest which has the following members.
| Name | Type | Description | Example Value |
|---|---|---|---|
| Token | String | The token retrieved through GetToken operation | n9IcXCXIq+ApBEe0zLBeTrU11D65F6BB2ED74E3467EA0EBE |
| DataRequest | DSDataRequest | Defines the request details for which data must be retrieved | Refer DSDataRequest for details. |
| Properties | DSStringObjectKVPair[] | Properties to customize behavior | null |
The operation returns a parameter of type DSGetDataResponse which has the following members.
| Name | Type | Description | Example Value |
|---|---|---|---|
| DataResponse | DSDataResponse | The response corresponding to the request. | Refer DSDataResponse for more details |
| Properties | DSStringObjectKVPair[] | Properties describing behavior | null |
SOAP
The following is a sample SOAP request.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://dsws.datastream.com/client/V1/IDSService/GetData</Action>
</s:Header>
<s:Body>
<GetData xmlns="http://dsws.datastream.com/client/V1/">
<request xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DataRequest>
<DataTypes>
<DSDataType>
<Value>PL</Value>
<Properties i:nil="true" />
</DSDataType>
<DSDataType>
<Value>PH</Value>
<Properties i:nil="true" />
</DSDataType>
</DataTypes>
<Date>
<Start>-30D</Start>
<End>-20D</End>
<Frequency>D</Frequency>
<Kind>TimeSeries</Kind>
</Date>
<Instrument>
<Value>VOD</Value>
<Properties i:nil="true" />
</Instrument>
<Tag i:nil="true" />
</DataRequest>
<Properties i:nil="true" />
<TokenValue>n9IcXCXIq+1h2blED74E3467EA0EBE0C</TokenValue>
</request>
</GetData>
</s:Body>
</s:Envelope>
The following is a sample SOAP response.
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header />
<s:Body>
<GetDataResponse xmlns="http://dsws.datastream.com/client/V1/">
<GetDataResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<DataResponse>
<DataTypeValues>
<DSDataTypeResponseValue>
<DataType>PL</DataType>
<SymbolValues>
<DSSymbolResponseValue>
<Currency>£</Currency>
<Symbol>VOD</Symbol>
<Type>DoubleArray</Type>
<Value i:type="a:ArrayOfdouble" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:double>155.97</a:double>
<a:double>155.9</a:double>
<a:double>154.82</a:double>
<a:double>155.45</a:double>
</Value>
</DSSymbolResponseValue>
</SymbolValues>
</DSDataTypeResponseValue>
<DSDataTypeResponseValue>
<DataType>PH</DataType>
<SymbolValues>
<DSSymbolResponseValue>
<Currency>£</Currency>
<Symbol>VOD</Symbol>
<Type>DoubleArray</Type>
<Value i:type="a:ArrayOfdouble" xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:double>159.57</a:double>
<a:double>159.35</a:double>
<a:double>157.51</a:double>
<a:double>157.86</a:double>
</Value>
</DSSymbolResponseValue>
</SymbolValues>
</DSDataTypeResponseValue>
</DataTypeValues>
<Dates xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<a:dateTime>20121217T00:00:00</a:dateTime>
<a:dateTime>20121218T00:00:00</a:dateTime>
<a:dateTime>20121219T00:00:00</a:dateTime>
<a:dateTime>20121220T00:00:00</a:dateTime>
</Dates>
<SymbolNames i:nil="true" />
<DataTypeNames i:nil="true" />
<AdditionalResponses i:nil="true" />
<Tag i:nil="true" />
</DataResponse>
<Properties i:nil="true" />
</GetDataResult>
</GetDataResponse>
</s:Body>
</s:Envelope>