cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
358
Views
0
Helpful
0
Replies

Error generating XML Document with UpdateServiceParameterReq in c#

mike curtis
Level 1
Level 1

Hello

I Am trying to write a function that will update select service parameters but when i try to make the call to cucm i get an error message that says "Error generating XML Document " my code bombs on the StandardResponse step. can anyone could provide some insight?

        private List<string> parameterList()

        {

            List<string> l = new List<string>();

            l.Add("Cisco CallManager,CallDiagnosticsEnabled,1");

            return l;

        }

        public void updateBestPractices(IDictionary<string, string> inputs)

        {

            UpdateServiceParameterReq us = new UpdateServiceParameterReq();

            List<string> l = parameterList();

            us.Items = new object[l.Count];

           

            int x = 0;

            foreach (string i in l)

            {

                string[] v = i.Split(',');

                XServiceParameter sp = new XServiceParameter();

                sp.service = v[0];

                sp.name = v[1];

                sp.value = v[2];

                us.Items[x] = sp;

                x++;

            }

            StandardResponse res = axlApiService.updateServiceParameter(us);

        }

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: