04-10-2014 12:03 PM
I am trying to issue an XML to devnet, here is the XML:
var sr = "<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\">" +
"<header>" +
"<securityContext>" +
"<webExID>" + strUser + "</webExID>" +
"<password>" + strPass + "</password>" +
"<siteID>690319</siteID>" +
"<partnerID>g0webx!</partnerID>" +
"</securityContext>" +
"</header>" +
"<body>" +
"<bodyContent xsi:type=\"java:com.webex.service.binding.meeting.LstsummaryMeeting\" " +
"xmlns:att=\"http://www.webex.com/schemas/2002/06/service/meeting\" " +
"xsi:schemaLocation=\"http://www.webex.com/schemas/2002/06/service/meeting http://www.webex.com/schemas/2002/06/service/meeting/meeting.xsd\">" +
"<listControl>" +
"<startFrom>1</startFrom>" +
"<maximumNum>10</maximumNum>" +
"<listMethod>OR</listMethod>" +
"</listControl>" +
"<order>" +
"<orderBy>HOSTWEBEXID</orderBy>" +
"<orderAD>ASC</orderAD>" +
"<orderBy>CONFNAME</orderBy>" +
"<orderAD>ASC</orderAD>" +
"<orderBy>STARTTIME</orderBy>" +
"<orderAD>ASC</orderAD>" +
"</order>" +
"</bodyContent>" +
"</body>" +
"</serv:message>";
var strHost = "apidemoeu.webex.com";
var strURI = "https://" & strHost & "/WBXService/XMLService";
xmlhttp.open("POST", strURI, false);
xmlhttp.setRequestHeader('Content-Type', 'application/xml');
xmlhttp.send(sr);
The URI is coded to https, but I have tried http and got the same error.
Can you help me to find the error in my ways?
-john
Solved! Go to Solution.
04-10-2014 03:05 PM
Hello,
The strURI variable is being appended with & instead of +, which I think may be causing this issue. Note that HTTPS is required for API requests.
04-10-2014 03:05 PM
Hello,
The strURI variable is being appended with & instead of +, which I think may be causing this issue. Note that HTTPS is required for API requests.
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: