Project and Portfolio Management Practitioners Forum
cancel

Obtaining financial summary through web service by financial summary id

Highlighted
musifier
Contributor.

Obtaining financial summary through web service by financial summary id

Hi

 

We are using the PPM website to push actuals into financial summary.

I would like a method

public FinancialSummaryInfo getFinancialSummary (int FinancialSummaryID),

i.e. I want the FinancialSummaryInfo object for its ID.

 

Is there such a method in the web service interface?

 

In the WS example code I have found this way of obtaining the FinancialSummaryInfo from parentType and parentId:

++++

protectedFinancialSummaryInfo readFinancialSummary()

 

throwsRemoteException {

ReadFinancialSummaryDocument requestDoc = ReadFinancialSummaryDocument.Factory

.newInstance();

ReadFinancialSummary fs = requestDoc.addNewReadFinancialSummary();

Set up parent information.

ParentInfo parent = populateParentInfo(

fs.addNewFinancialSummaryParent(),

parentType, parentId);

 

// Read the financial summary.

FinanceServiceStub stub =

new FinanceServiceStub(context, serviceURL);

ReadFinancialSummaryResponseDocument responseDoc = stub

.readFinancialSummary(requestDoc);

ReadFinancialSummaryResponse response = responseDoc

.getReadFinancialSummaryResponse();

returnresponse.getFinancialSummary();

}

++++

 

Thanks,

m