cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

If your Cloud Collaboration question is not answered quickly, please email devsupport@webex.com for additional help

799
Views
0
Helpful
1
Replies
Highlighted
Beginner

Failed to get SiteUrl

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>

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Cisco Employee

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

View solution in original post

1 REPLY 1
Highlighted
Cisco Employee

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

View solution in original post

Content for Community-Ad