Skip to main content
November 5, 2014
質問

XML Error: Code = invalid Field = response SubCode = range

  • November 5, 2014
  • 返信数 0.
  • 961 ビュー

Hi all!

I am using The AdobeConnect XML API 9. I am receiving a random error when I use the API to register a new guest. Here is the code I am using.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

            XmlNodeList fields = Request("event-registration-details", "sco-id=" + event_sco_id).SelectNodes("results/event-fields/field");

            string city_id = "", state_id = "", title_id = "", school_id = "", zip_id = "", phone_id = "";

            foreach (XmlNode node in fields)

            {

                if (node.SelectSingleNode("description").InnerText == "City")

                    city_id = node.Attributes.GetNamedItem("interaction-id").Value;

                if (node.SelectSingleNode("description").InnerText == "State")

                    state_id = node.Attributes.GetNamedItem("interaction-id").Value;

                if (node.SelectSingleNode("description").InnerText == "Title")

                    title_id = node.Attributes.GetNamedItem("interaction-id").Value;

                if (node.SelectSingleNode("description").InnerText == "School/Company Name")

                    school_id = node.Attributes.GetNamedItem("interaction-id").Value;

                if (node.SelectSingleNode("description").InnerText == "Zip")

                    zip_id = node.Attributes.GetNamedItem("interaction-id").Value;

                if (node.SelectSingleNode("description").InnerText == "Phone Number")

                    phone_id = node.Attributes.GetNamedItem("interaction-id").Value;

            }

            if (_bzsession != "")

                Logout();

            var eventDoc = Request("event-register",

                "sco-id=" + event_sco_id + "&login=" + email + "&password=mimio&password-verify=mimio&first-name=" + first_name + "&last-name=" + last_name + "&interaction-id=" + city_id + "&response=" + city + "&interaction-id=" + state_id + "&response=" + state + "&interaction-id=" + title_id + "&response=" + title + "&interaction-id=" + school_id + "&response=" + school + "&interaction-id=" + zip_id + "&response=" + zip + "&interaction-id=" + phone_id + "&response=" + phone, false);

            return eventDoc.SelectSingleNode("results/status");

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

So basically I am calling event-registration-details to get the interaction ids for the event's questions. I am then logging out because the event register call failed if still logged in. Finally I call event-register.

The XML error I randomly get states the code = invalid, the Field = response and the SubCode = range.

I do not see any difference between the events that don't get this error and the events that do.

Any ideas would be greatly appreciated. Adobe support is stumped.

Thanks!

Chris

    このトピックへの返信は締め切られました。