cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
124
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Sergey Klyopov on 11-02-2010 08:06:47 AM
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.

Subject: RE: Responses on CreateMeeting requests via XML API
Replied by: Kingsley Lewis on 11-02-2010 08:18:34 PM
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
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links