01-19-2018 10:01 AM
When trying to use the XML api using the C# sample. I always returns the "Failed to get SiteUrl" Error. Please help.
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>[My Admin Account Name]</webExID>\r\n";
strXML += "<password>********</password>\r\n";
strXML += "<siteName>[My Site SubDomain Name]</siteName>\r\n";
strXML += "<partnerID>[Parnet ID from WebEx Admin Page]</partnerID>\r\n";
strXML += "</securityContext>\r\n";
strXML += "</header>\r\n";
strXML += "<body>\r\n";
strXML += "<bodyContent xsi:type=\"java:com.webex.service.binding.ep.GetAPIVersion\">\r\n";
strXML += "</bodyContent>\r\n";
strXML += "</body>\r\n";
strXML += "</serv:message>\r\n";
<?xml version="1.0" encoding="UTF-8" ?>
<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:co
m="http://www.webex.com/schemas/2002/06/common">
<serv:header>
<serv:response>
<serv:result>FAILURE</serv:result>
<serv:reason>Failed to get SiteUrl</serv:reason>
<serv:gsbStatus>PRIMARY</serv:gsbStatus>
<serv:exceptionID>010000</serv:exceptionID></serv:response>
</serv:header>
<serv:body>
</serv:body>
</serv:message>
Solved! Go to Solution.
01-19-2018 10:06 AM
Hi Michael,
"Failed to get Site Url" generally means that the URL you're POSTing to does not match the siteName or siteID in your securityContext. You should be POSTing to https://sitename.webex.com/WBXService/XMLService, where "sitename" matches the siteName in your securityContext. Try this out and let me know how it goes.
Kasey
Cisco WebEx API Developer Services
01-19-2018 10:06 AM
Hi Michael,
"Failed to get Site Url" generally means that the URL you're POSTing to does not match the siteName or siteID in your securityContext. You should be POSTing to https://sitename.webex.com/WBXService/XMLService, where "sitename" matches the siteName in your securityContext. Try this out and let me know how it goes.
Kasey
Cisco WebEx API Developer Services
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide