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.