cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1074
Views
0
Helpful
4
Replies

Issue with getSiteType

nick.mueller
Level 6
Level 6

Hello,

I can't seem to get the "getSiteType" API to work for me.

The API was introduced with 9.0: https://developer.cisco.com/site/webex-developer/develop-test/xml-api/reference/release-notes-9-0.gsp#mozTocId110632

It is of course possible that I am doing something wrong.

I am posting to this URL (replacing "site" with the site name):  https://site.webex.com/WBXService/XMLService

I am posting this XML (again, replacing "site" with just the first (host) portion of the sitename, not the full FQDN "site.webex.com"):

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:serv="http://www.webex.com/schemas/2002/06/service">

<header>

<securitycontext>

<sitename>site</sitename>

</securitycontext>

</header>

<body>

<bodycontent xsi:type="java:com.webex.service.binding.ep.GetSiteType"></bodycontent>

</body>

</serv:message>


Here is what I get in reply:


<serv:message xmlns:serv="http://www.webex.com/schemas/2002/06/service" xmlns:com="http://www.webex.com/schemas/2002/06/common">

<serv:header>

<serv:response>

<serv:result>FAILURE</serv:result>

<serv:reason>Fail to forward request:null</serv:reason>

<serv:gsbStatus>PRIMARY</serv:gsbStatus>

<serv:exceptionID>000000</serv:exceptionID></serv:response>

</serv:header>

<serv:body>

</serv:body>

</serv:message>


Can anyone shed some light on this?


NPM

1 Accepted Solution

Accepted Solutions

kasutton
Cisco Employee
Cisco Employee

Hi Nick,

I tested this out and confirmed it's because the elements in the securityContext were not the correct case. In correcting just those, it resolves that error and introduces a new error, "validation: unable to find FieldDescriptor for 'bodycontent' in ClassDescriptor of body" which is resolved by correcting the case for bodyContent.  Working XML request is below:

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:serv="http://www.webex.com/schemas/2002/06/service">

  <header>

    <securityContext>

      <siteName>sitename</siteName>

    </securityContext>

  </header>

  <body>

    <bodyContent xsi:type="java:com.webex.service.binding.ep.GetSiteType">

    </bodyContent>

  </body>

</serv:message>

Kasey

View solution in original post

4 Replies 4

kasutton
Cisco Employee
Cisco Employee

Hi Nick,

I tested this out and confirmed it's because the elements in the securityContext were not the correct case. In correcting just those, it resolves that error and introduces a new error, "validation: unable to find FieldDescriptor for 'bodycontent' in ClassDescriptor of body" which is resolved by correcting the case for bodyContent.  Working XML request is below:

<?xml version="1.0" encoding="UTF-8"?>

<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:serv="http://www.webex.com/schemas/2002/06/service">

  <header>

    <securityContext>

      <siteName>sitename</siteName>

    </securityContext>

  </header>

  <body>

    <bodyContent xsi:type="java:com.webex.service.binding.ep.GetSiteType">

    </bodyContent>

  </body>

</serv:message>

Kasey

Thanks Kasey.

I took my example XML directly from the release notes I linked above.  Those release notes should be corrected.

Also this API is not documented in the XML API documentation on DevNet - could that oversight please be corrected?

NPM

Hi Nick,

I'll see what I can do about getting it corrected. Thanks for bringing it to our attention.

Kasey

Will this API ever make it into the XML API Reference on DevNet?