08-09-2016 02:15 AM
Hi all,
I have an application which only reads XML files sample resonse file format is given below, but now am unable to generate the XML file as the WebEx site is inactive and terminated, but i have the attendee and meeting reports generated in CSV which has all the information needed
to generate the below XMLs.
The two API calls used below are
Attendees: history:lstmeetingattendeeHistoryResponse
Meetings : history:lstmeetingusageHistoryResponse
how do i generate an XML from the excel files in the below format ? help please
ns3:message xmlns:history="http://www.webex.com/schemas/2002/06/service/history" xmlns="http://www.webex.com/schemas/2002/06/common"xmlns:ns3="http://www.webex.com/schemas/2002/06/service" xmlns:user="http://www.webex.com/schemas/2002/06/service/user">
<ns3:gsbStatus>PRIMARY</ns3:gsbStatus>
</ns3:response>
</ns3:header>
<history:confName>MRO Integrator Program- Management review</history:confName>
<history:ipAddress>206.48.240.167</history:ipAddress>
<history:clientAgent>WINDOWS,IE</history:clientAgent>
<history:name>Chan</history:name>
<history:email>chan.@.com</history:email>
<history:joinTime>07/02/2012 19:58:46</history:joinTime>
<history:leaveTime>07/02/2012 20:02:46</history:leaveTime>
<history:duration>4</history:duration>
<history:participantType>ATTENDEE</history:participantType>
<history:voipDuration>0</history:voipDuration>
<history:confID>100967****</history:confID>
</history:meetingAttendeeHistory>
<ns3:message xmlns:history="http://www.webex.com/schemas/2002/06/service/history" xmlns="http://www.webex.com/schemas/2002/06/common"xmlns:ns3="http://www.webex.com/schemas/2002/06/service" xmlns:user="http://www.webex.com/schemas/2002/06/service/user">
<ns3:gsbStatus>PRIMARY</ns3:gsbStatus>
</ns3:response>
</ns3:header>
<history:confName>- RAPID CHANGE</history:confName>
<history:meetingStartTime>07/02/2012 05:51:18</history:meetingStartTime>
<history:meetingEndTime>07/02/2012 06:23:37</history:meetingEndTime>
<history:duration>33</history:duration>
<history:timezone>GMT+10:00, Australia Eastern (Brisbane)</history:timezone>
<trackingCode2>76127**</trackingCode2>
<trackingCode3>320 57**</trackingCode3>
<trackingCode4>7081**</trackingCode4>
</history:trackingCode>
08-09-2016 09:38 AM
Greetings, Moses! If I understand your question correctly, you are trying to take the output from the WebEx API requests and parse out the responses into an XML document you can then import into another application? Or convert to a .csv file?
If this is the case, then you would need to do this in whatever programming language you are using - i.e. this isn't something you can do directly from the API. You would basically be creating a filter that would take a returned record and parse out the values, dumping them into variables. In psuedocode, this would be:
You would then use your programming language to write that data out in whatever format you need. Most programming languages have libraries available to help write in XML or CSV formats.
I am not certain what you mean by "the WebEx site is inactive and terminated". If my answer above did not provide the information you need, then let me know what you meant with that statement.
--
Michael Fierro ● .:|:.:|:.
Customer Support Engineer
Cisco - API Developer Services
08-09-2016 10:30 AM
Hi Michael,
Thanks for your response, I have two Excel reports from a site that was terminated/contract ended site,
The two excel files contain Meeting info and the Attendee , i need them in the XML format to load into my application,
my application is built to read XML files in the format for meeting :"history:lstmeetingusageHistoryResponse" and for
Attendees: history:lstmeetingattendeeHistoryResponse
My concern is here is there a way i can put these 2 excel files ie Meeting and Attendee and get the XML files in the format of API Response : lstmeetingusageHistoryResponse & lstmeetingattendeeHistoryResponse
08-09-2016 12:18 PM
In this case, you would basically do the same thing that I mentioned above, but in reverse. The algorithm would be:
As long as you are certain to add in the fields that your other application requires, this should be feasible.
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