Absent Member.. AlfredoMonasi Absent Member..
Absent Member..

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.







    public financialDataInfo leerFinancialData(String requestID,String tokenFS)
            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);

            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);

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.