04-12-2016 12:26 PM
Hi
Can you please provide me the sample XML which I can use to get the list of all the people who registered for a specific event.
I am pretty new to this, so need help in this.
Thanks
Abhay
Solved! Go to Solution.
04-27-2016 01:49 PM
I believe the results of GetEnrollmentInfo has the information you seek.
04-14-2016 03:35 PM
Abhay,
You can get a list of attendees of an event by using the GetEvent XML call, here is a sample:
<?xml version="1.0" encoding="ISO-8859-1"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<securityContext>
<webExID>hostid</webExID>
<password>hostpassword</password>
<siteName>yoursite</siteName>
</securityContext>
</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.event.GetEvent">
<sessionKey>46401604</sessionKey>
</bodyContent>
</body>
</serv:message>
this will return alot of data, and contained is an element called: <event:attendees> that lists all the attendees for that event.
You can get the sessionKey from the response of a CreateEvent, or you can call LstsummaryEvent to get a list of events along with there sessionKey.
<?xml version="1.0" encoding="ISO-8859-1"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<securityContext>
<webExID>hostid</webExID>
<password>hostpassword</password>
<siteName>yoursite</siteName>
</securityContext>
</header>
<body>
<bodyContent
xsi:type="java:com.webex.service.binding.event.LstsummaryEvent">
<listControl>
<startFrom>1</startFrom>
<maximumNum>10</maximumNum>
<listMethod>OR</listMethod>
</listControl>
<order>
<orderBy>HOSTWEBEXID</orderBy>
<orderAD>ASC</orderAD>
<orderBy>EVENTNAME</orderBy>
<orderAD>ASC</orderAD>
<orderBy>STARTTIME</orderBy>
<orderAD>ASC</orderAD>
</order>
<dateScope>
<startDateStart>03/10/2004 00:00:00</startDateStart>
<timeZoneID>45</timeZoneID>
</dateScope>
</bodyContent>
</body>
</serv:message>
04-25-2016 11:05 AM
Hi Ryan
Thanks for the response. When I make the call to the GetEvent API, I am not getting the <event:attendees> tag in the response.
Also, I want all the registered people details who signed up for an event. Like the Registration Report we have.
Hoping for an early response.
Thanks
Abhay
04-27-2016 01:20 PM
After the event has ended it will appear in history reports in approx 24-72h, the WebEx API call you are looking for is: LsteventattendeeHistory
04-27-2016 01:25 PM
Hi Ryan
Doesn’t the “LsteventattendeeHistory<https://developer.cisco.com/media/webex-xml-api/91LsteventattendeeHistory.html>” API provided the list of attendees who actually attended the event and not the list of people who registered for the event.
As there can be many people who registered for the event but only some of them attended. I am trying to find out all the people who registered for the event.
Thanks
Abhay
04-27-2016 01:49 PM
I believe the results of GetEnrollmentInfo has the information you seek.
05-03-2016 11:16 AM
Hi Ryan
Thanks for this. GetEnrollmentInfo was exactly I was looking for.
But, it is returning only 17 records even though the count is way higher and in the response I do see
<att:matchingRecords><serv:total>1697</serv:total><serv:returned>1697</serv:returned><serv:startFrom>1</serv:startFrom>
Don’t know why only 17 registered attendees are showing up.
Can you please help me with this.
Thanks
Abhay
05-03-2016 12:04 PM
there is a limit to the number of entries returned, if you have more than the limit then programmatically you'll have to make multiple requests with a startFrom beginning from where it left off until you have reached the end.. basically have to page your way through it.
05-03-2016 12:07 PM
But when I add the listcontrol to the XML, it starts giving error.
Thanks
Abhay
05-05-2016 08:30 AM
Any thoughts on this?
05-05-2016 09:02 AM
whats the error your receiving?
05-05-2016 09:37 AM
Hi Ryan
Below is the request that I am making
string strXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n";
strXML += "<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:serv=\"http://www.webex.com/schemas/2002/06/service\" xsi:schemaLocation=\"http://www.webex.com/schemas/2002/06/service http://www.webex.com/schemas/2002/06/service/service.xsd\">\r\n";
strXML += "<header>\r\n";
strXML += "<securityContext>\r\n";
strXML += "<webExID></webExID>\r\n";
strXML += "<password></password>\r\n";
strXML += "<siteName></siteName>\r\n";
strXML += "<partnerID></partnerID>\r\n";
strXML += "</securityContext>\r\n";
strXML += "</header>\r\n";
strXML += "<body>\r\n";
strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.attendee.GetEnrollmentInfo\">\r\n";
strXML += "<listControl>\r\n";
strXML += "<startFrom>1</startFrom>\r\n";
strXML += "<maximumNum>10</maximumNum>\r\n";
strXML += "<listMethod>OR</listMethod>\r\n";
strXML += "</listControl>\r\n";
strXML += "<sessionKey></sessionKey>\r\n";
strXML += "</bodyContent>\r\n";
strXML += "</body>\r\n";
strXML += "</serv:message>\r\n";
And the response which I am getting for the above POST request
<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common">
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>validation: unable to find FieldDescriptor for 'listControl' in ClassDescriptor of getEnrollmentInfo</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>999999</serv:exceptionID>
</serv:response></serv:header><serv:body>
<serv:bodyContent/>
</serv:body></serv:message>
Thanks
Abhay
05-06-2016 10:26 AM
Hi Ryan
Any thoughts?
Thanks
Abhay
05-06-2016 10:36 AM
Hi Abhay,
Would you mind providing the sessionKey and siteName you are testing with? Please feel free to email or private message it to me for security purposes.
Kasey
05-06-2016 10:43 AM
Hi Kasey
Is it necessary? I am unaware of the security risks for this.
Thanks
Abhay
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide