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

webex XML API - firstAttendeeAsPresenter - ExceptionID=060045

cy_chen01
Level 1
Level 1

Hi all,

  When I using  XML API - firstAttendeeAsPresenter , returned ExceptionID 060045(The site does not allow first attendee as presenter). how can I solve this problem?Thanks a lot~~

ScreenHunter_64 Jul. 09 14.00.jpg    

ScreenHunter_65 Jul. 09 14.02.jpg

3 Replies 3

mifierro
Level 4
Level 4

Greetings! Thank you for the screenshot - I assume this is from your site administration page? If so, it is good to confirm that the options are set. The next step will be to take a look at the actual XML that you are submitting. Can you attach your code along with the server response?

Hi Sir,

  FYI. Thanks a lot.

-----------------------------code---------------------------------------------

using System;
using System.Net;
using System.IO;
using System.Text;

namespace Java2CS
{
    /// <summary>
    /// Summary description for CSExample.
    /// </summary>
    public class CSExample
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main(string[] args)
        {
            string strXMLServer = "https://xxxx.webex.com/WBXService/XMLService";

            WebRequest request = WebRequest.Create(strXMLServer);

            // Set the Method property of the request to POST.
            request.Method = "POST";

            // Set the ContentType property of the WebRequest.
            request.ContentType = "application/x-www-form-urlencoded";

            // Create POST data and convert it to a byte array.
            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>xxxx</webExID>\r\n";
            strXML += "<password>xxxx</password>\r\n";
            strXML += "<siteName>xxxx</siteName>\r\n";
            strXML += "<partnerID>webexpartner</partnerID>\r\n";
            strXML += "</securityContext>\r\n";
            strXML += "</header>\r\n";
            strXML += "<body>\r\n";
            strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.meeting.CreateMeeting\">\r\n";
            strXML += "<accessControl>\r\n";
            strXML += "<meetingPassword>xxxx</meetingPassword>\r\n";
            strXML += "</accessControl>\r\n";
            strXML += "<metaData>\r\n";
            strXML += "<confName>xxxx</confName>\r\n";
            strXML += "</metaData>\r\n";
            strXML += "<participants>\r\n";
            strXML += "<attendees>\r\n";
            strXML += "<attendee>\r\n";
            strXML += "<person>\r\n";
            strXML += "<name>xxxx</name>\r\n";
            strXML += "<email>xxxx@xxxx.com</email>\r\n";
            strXML += "</person>\r\n";
            strXML += "</attendee>\r\n";
            strXML += "</attendees>\r\n";
            strXML += "</participants>\r\n";
            strXML += "<enableOptions>\r\n";
            strXML += "<supportE2E>false</supportE2E>\r\n";
            strXML += "<fileShare>false</fileShare>\r\n";
            strXML += "<HQvideo>false</HQvideo>\r\n";
            strXML += "<chat>true</chat>\r\n";
            strXML += "</enableOptions>\r\n";
            strXML += "<schedule>\r\n";
            strXML += "<startDate>07/22/2016 09:00:00</startDate>\r\n";
            strXML += "<openTime>900</openTime>\r\n";
            strXML += "<firstAttendeeAsPresenter>true</firstAttendeeAsPresenter>\r\n";
            strXML += "<duration>30</duration>\r\n";
            strXML += "</schedule>\r\n";
            strXML += "<attendeeOptions>\r\n";
            strXML += "<emailInvitations>true</emailInvitations>\r\n";
            strXML += "</attendeeOptions>\r\n";
            strXML += "</bodyContent>\r\n";
            strXML += "</body>\r\n";
            strXML += "</serv:message>\r\n";

            byte[] byteArray = Encoding.UTF8.GetBytes(strXML);

            // Set the ContentLength property of the WebRequest.
            request.ContentLength = byteArray.Length;

            // Get the request stream.
            Stream dataStream = request.GetRequestStream();

            // Write the data to the request stream.
            dataStream.Write(byteArray, 0, byteArray.Length);

            // Get the response.
            WebResponse response = request.GetResponse();

            // Close the Stream object.
            dataStream.Close();


            // Get the stream containing content returned by the server.
            dataStream = response.GetResponseStream();

            // Open the stream using a StreamReader for easy access.
            StreamReader reader = new StreamReader(dataStream);

            // Read the content.
            string responseFromServer = reader.ReadToEnd();

           
            // Clean up the streams.
            reader.Close();
            dataStream.Close();
            response.Close();

        }
    }
}

------------------------------code----------------------------------------

------------------------------XML respond-----------------------------

<?xml version="1.0" encoding="UTF-8" ?>
- <serv:header>
- <serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>The site does not allow first attendee as presenter</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>060045</serv:exceptionID>
</serv:response>
</serv:header>
- <serv:body>
<serv:bodyContent />
</serv:body>
</serv:message>
-----------------------------XML respond-----------------------------

Are you still having an issue with this? If you are, please let me know what your sitename is so I can investigate further. The site is still responding with an error that the site doesn't allow firstAttendeeAsPresenter, I would need to check your site settings to move on from here.