Please note: These WebEx forums have replaced the earlier site forums. All the previous threads and posts have been replicated here, and if you subscribed to the previous forums, please re-subscribe. Thank you.
« Back to Scheduling Meetings

Responses on CreateMeeting requests via XML API

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm testing my XML API implementation and tried to check errors handling. The following request was taken from MSVS debugger variable watcher:

<?xml version="1.0" encoding="UTF-8"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
 <securityContext>
 <webExID>myUser</webExID>
 <password>myUserPass</password>
 <siteID>243585</siteID>
 <partnerID>g0webx!</partnerID>

</securityContext>

</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.meeting.CreateMeeting"></bodyContent>
</body>
</serv:message>


I've tried to post this request to URL http://apidemoeu.webex.com/WBXService/XMLService from XML API Debug Screen.

For this request I receive proper response:

<?xml version="1.0" encoding="ISO-8859-1"?>
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common" xmlns:meet="http://www.webex.com/schemas/2002/06/service/meeting" xmlns:att="http://www.webex.com/schemas/2002/06/service/attendee">
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>Schedule is a required field.</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>999999</serv:exceptionID>
</serv:response>
</serv:header>
<serv:body><serv:bodyContent/></serv:body></serv:message>

However when I post this request from ASP code I receive the following:
<?xml version="1.0" encoding="UTF-8" ?>
<message xmlns="http://www.webex.com/schemas/2002/06/service">
<header>
<response>
<result>SUCCESS</result>
<reason>: WebEx XML API V5.3.1,  WebEx XML API V5.4.0,  WebEx XML API V5.5.0,  WebEx XML API V4.9.1,  WebEx XML API V4.1.0,  WebEx XML API V3.9.1,  WebEx XML API V4.7.1,  WebEx XML API V4.0.10,  WebEx XML API V5.2.0</reason>
</response>
</header>
<body><bodyContent/></body>
</message>

The code is:

<script language="javascript" runat="server">
    function sendXMLRequest(p_strXML){
        var xmlPost, strStatus, strResponse, extRequest, strHost, strURI, strXML

        strHost = Application("WebExHost") + ".webex.com";
        strURI  = "http://" + strHost + "/WBXService/XMLService";

        xmlPost = Server.CreateObject("Microsoft.XMLHTTP");
        xmlPost.open("POST", strURI, false);
        xmlPost.setRequestHeader("Content-Type", "text/xml");
        xmlPost.send(strXML);
        strStatus   = xmlPost.Status;                   
        strResponse = xmlPost.responseText;
   
        return strResponse;
    }
</script>

Why i receive such response and how I should interpret it? Is something missing in my request?

Thanks.

Hi Sergey,
 
The response you are getting back is the default response when no data is posted to the webservice. 
 
From the code you have listed  below you are sending strXML which is a blank variable.
 
in your code try
 
strXML = p_strXML;
 
or
 
xmlPost.send(p_strXML);
 
Thank you
-Kingsley Lewis

Create a Cisco account today and gain access across all Cisco Collaboration Developer sites.

 

Follow the WebEx Developer program on Twitter for the latest industry and WebEx Meetings related information.