Absent Member.. AlfredoMonasi Absent Member..
Absent Member..
84 views

Financial WS Question

Hi everyone,

I'm trying to use the WS for recover and update Financial Summar Data, but I'm having some troubles when defining the financialDataParentInfo object value of token. I'm using KNTA_FINANCIAL SUMMARY and REQ.FINANCIAL SUMMARY with the request number but I'm having a error that can't find the financial data of the token X of the request id number Y.

Can anyone give me a hand of that token use.

Code below.

Regards,

Alfredo

[WebMethod]
    public financialDataInfo leerFinancialData(String requestID,String tokenFS)
    {
        try
        {
            String decryptUsu = String.Empty;
            sec.SimpleDecrypt(ConfigurationManager.AppSettings["userPPM"].ToString(), ref decryptUsu);

            String decryptPas = String.Empty;
            sec.SimpleDecrypt(ConfigurationManager.AppSettings["passPPM"].ToString(), ref decryptPas);

            financeServiceWS = new FinanceServiceWse();
            UsernameOverTransportAssertion policyAssertion = new UsernameOverTransportAssertion();
            // setup WS-Security credentials
            policyAssertion.UsernameTokenProvider = new UsernameTokenProvider(decryptUsu, decryptPas);
            Policy policy = new Policy(policyAssertion);
            financeServiceWS.SetPolicy(policy);

            readFinancialData rfd = new readFinancialData();
            fdpi = new financialDataParentInfo();
            fdpi.parentId = requestID;
            fdpi.parentType = financialDataParentInfoParentType.REQUEST;
            fdpi.token = tokenFS;
            rfd.financialDataParent = fdpi;
            readFinancialDataResponse rfdr = financeServiceWS.readFinancialData(rfd);

            return rfdr.financialData;
        }
        catch (Exception e) {
            throw new Exception("ERROR: " + e.Message);
        }
    }

0 Likes
1 Reply
Absent Member.. fabsvz Absent Member..
Absent Member..

Re: Financial WS Question

Hello Alfredo,

 

I hope you are doing fine today.

 

You mentioned you are receiving an error, could you please send us an screenshot of that?

 

Also, could you please review this line: fdpi.parentType = financialDataParentInfoParentType.REQUEST;?

We would like to understand why are you coding it in that way.

 

best regards,

Fabiola Vargas

HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.