cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
814
Views
0
Helpful
1
Replies

404 from LstsummaryMeeting using Javascript

jmennear
Cisco Employee
Cisco Employee

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

1 Accepted Solution

Accepted Solutions

nmorrow
Cisco Employee
Cisco Employee

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.

View solution in original post

1 Reply 1

nmorrow
Cisco Employee
Cisco Employee

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.

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: