updateFinancialData

Purpose

This operation updates financial data.

Related Information

Operation: readFinancialData

Input

This operation requires the following input:

Return

If the operation is successful, nothing will be returned to the client.

Java Examples

See webservice_toolkit:

java\client\src\examples\fm\FinancialDataClient.java

updateFinancialData ()

// Modify the financial summary name and description.
fd.setName("Toolkit Financial Data");
fd.setDescription(makeUnique("Last Modified: "));
// Set the local currency.
fd.setLocalCurrencyCode("USD");
// Create or update benefits.
BenefitInfo benefit = null;
BenefitInfo.Lines benefitLines = fd.getBenefit().getLines();
if (isEmpty(benefitLines)) {
    benefit = createBenefit(fd.getBenefit());
}
else {
    benefit = updateBenefit(fd.getBenefit());
}
fd.setBenefit(benefit);
UpdateFinancialDataDocument requestDoc =
UpdateFinancialDataDocument.Factory.newInstance();
requestDoc.addNewUpdateFinancialData().setFinancialData(fd);
FinanceServiceStub stub = new FinanceServiceStub(context,
serviceURL);
stub.updateFinancialData(requestDoc);