putCurrencyConversionRates

Adds or updates conversion rates. If an added currency conversion rate overlaps a previously added rate, it supersedes the previously added rate. If the ID for the conversion rate is populated, the rate is updated. If the ID is set to a value of -1, a new conversion rate is created.

Parameters

rates is an array of conversion rates.

Returns

An array of the CurrencyConversionRate objects is returned. If the record is successfully created, the ID is populated.

Errors

InvalidArgumentException
The conversion rate is invalid.
AccessException
The user does not have access to the currency conversion manager.
java.lang.Exception
A system error occurred when the request was being processed.

Sample request

<soapenv:Envelope 
	xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:ws="http://ws.tririga.com" xmlns:dto="http://dto.ws.tririga.com">
   <soapenv:Body>
      <ws:putCurrencyConversionRates>
         <ws:CurrencyConversionRates>
            <!--Zero or more repetitions:-->
            <dto:CurrencyConversionRate>
               <dto:conversionGroup>Default</dto:conversionGroup>
               <dto:conversionRate>1.34</dto:conversionRate>
               <dto:endDate>2007-04-19T16:15:10-07:00</dto:endDate>
               <dto:frequencyGroup>Daily</dto:frequencyGroup>
               <dto:fromCurrency>Canada Dollars</dto:fromCurrency>
               <dto:id>-1</dto:id>
               <dto:startDate>2007-04-19T16:15:10-07:00</dto:startDate>
               <dto:toCurrency>US Dollars</dto:toCurrency>
            </dto:CurrencyConversionRate>
         </ws:CurrencyConversionRates>
      </ws:putCurrencyConversionRates>
   </soapenv:Body>
</soapenv:Envelope>

Sample response

<soap:Envelope 
	xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 	xmlns:xsd="http://www.w3.org/2001/XMLSchema" 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soap:Body>
      <putCurrencyConversionRatesResponse xmlns="http://ws.tririga.com">
         <out>
            <ns1:CurrencyConversionRate xmlns:ns1="http://dto.ws.tririga.com">
               <conversionGroup xmlns="http://dto.ws.tririga.com">Default</conversionGroup>
               <conversionRate xmlns="http://dto.ws.tririga.com">1.34</conversionRate>
               <endDate xmlns="http://dto.ws.tririga.com">2007-04-19T16:15:10-07:00</endDate>
               <frequencyGroup xmlns="http://dto.ws.tririga.com">Daily</frequencyGroup>
               <fromCurrency xmlns="http://dto.ws.tririga.com">Canada Dollars</fromCurrency>
               <id xmlns="http://dto.ws.tririga.com">4303</id>
               <startDate xmlns="http://dto.ws.tririga.com">2007-04-19T16:15:10-07:00</startDate>
               <toCurrency xmlns="http://dto.ws.tririga.com">US Dollars</toCurrency>
            </ns1:CurrencyConversionRate>
         </out>
      </putCurrencyConversionRatesResponse>
   </soap:Body>
</soap:Envelope>