CurrenciesService
Click here for a complete list of operations.
GetCurrencyConversionRates
Gets the latest conversion rates of a currency.
Parameters:
- referenceCurrencyIsoCode : ISO 4217 (three-letters) currency code. The currency for which to retrieve conversion rates
- licenseInfos: license informations for granting acces to the service
Return: A structure containing the update date and and list of pair CurrencyIsoCode/Rate
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /Currencies/CurrenciesService.asmx HTTP/1.1 Host: ws-app.ebp.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://ws-app.ebp.com/Currencies/GetCurrencyConversionRates" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetCurrencyConversionRates xmlns="http://ws-app.ebp.com/Currencies/"> <referenceCurrencyIsoCode>string</referenceCurrencyIsoCode> <applicationInfo> <ShortName>string</ShortName> <License>int</License> <WebKey>string</WebKey> <Version>string</Version> <CountryId>string</CountryId> <LanguageId>string</LanguageId> <MachineKey>string</MachineKey> <ActivationCode>string</ActivationCode> <ProductID>string</ProductID> <ParamVersion>string</ParamVersion> <CorporateBranch>None or France or Belgium or Switzerland or Spain or Mexico or UnitedKingdom or Automotive</CorporateBranch> </applicationInfo> </GetCurrencyConversionRates> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetCurrencyConversionRatesResponse xmlns="http://ws-app.ebp.com/Currencies/"> <GetCurrencyConversionRatesResult> <UpdateDate>dateTime</UpdateDate> <Rates> <ConversionRate> <CurrencyIsoCode>string</CurrencyIsoCode> <Rate>decimal</Rate> </ConversionRate> <ConversionRate> <CurrencyIsoCode>string</CurrencyIsoCode> <Rate>decimal</Rate> </ConversionRate> </Rates> <ProviderName>string</ProviderName> </GetCurrencyConversionRatesResult> </GetCurrencyConversionRatesResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /Currencies/CurrenciesService.asmx HTTP/1.1 Host: ws-app.ebp.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetCurrencyConversionRates xmlns="http://ws-app.ebp.com/Currencies/"> <referenceCurrencyIsoCode>string</referenceCurrencyIsoCode> <applicationInfo> <ShortName>string</ShortName> <License>int</License> <WebKey>string</WebKey> <Version>string</Version> <CountryId>string</CountryId> <LanguageId>string</LanguageId> <MachineKey>string</MachineKey> <ActivationCode>string</ActivationCode> <ProductID>string</ProductID> <ParamVersion>string</ParamVersion> <CorporateBranch>None or France or Belgium or Switzerland or Spain or Mexico or UnitedKingdom or Automotive</CorporateBranch> </applicationInfo> </GetCurrencyConversionRates> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetCurrencyConversionRatesResponse xmlns="http://ws-app.ebp.com/Currencies/"> <GetCurrencyConversionRatesResult> <UpdateDate>dateTime</UpdateDate> <Rates> <ConversionRate> <CurrencyIsoCode>string</CurrencyIsoCode> <Rate>decimal</Rate> </ConversionRate> <ConversionRate> <CurrencyIsoCode>string</CurrencyIsoCode> <Rate>decimal</Rate> </ConversionRate> </Rates> <ProviderName>string</ProviderName> </GetCurrencyConversionRatesResult> </GetCurrencyConversionRatesResponse> </soap12:Body> </soap12:Envelope>