Please note: These WebEx forums have replaced the earlier site forums. All the previous threads and posts have been replicated here, and if you subscribed to the previous forums, please re-subscribe. Thank you.
« Back to Getting Started

XML Api : Problem in creating new Training

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi,  
 I am tryng to create a new Training Session with following request.
 
<?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>
      <webExID>smoneyan</webExID>
      <password>xxxxxx</password>
      <siteID>243585</siteID>
      <partnerID>g0webx!</partnerID>
    </securityContext>
  </header>
  <body>
    <bodyContent xsi:type="java:com.webex.service.binding.training.CreateTrainingSession">
      <accessControl>
        <listing>PUBLIC</listing>
        <sessionPassword>password</sessionPassword>
      </accessControl>
      <schedule>
        <startDate>10/02/2012 10:00:00</startDate>
        <duration>20</duration>
        <timeZoneID>47</timeZoneID>
        <openTime>20</openTime>
      </schedule>
      <metadata>
        <confName>Test 3</confName>
        <agenda>agenda</agenda>
        <description>description</description>
        <greeting>greeting</greeting>
        <location>location</location>
        <invitation>invitation</invitation>
      </metadata>
      <presenters>
        <participants>
          <participant>
            <person>
              <name>subu@gmail.com</name>
              <email>smoneyan@gmail.com</email>
              <type>MEMBER</type>
            </person>
            <role>HOST</role>
          </participant>
        </participants>
      </presenters>
      <attendees>
        <participants>
          <participant>
            <person>
              <name>subu@gmail.com</name>
              <email>smoneyan@gmail.com</email>
              <type>MEMBER</type>
            </person>
            <role>HOST</role>
          </participant>
        </participants>
      </attendees>
      <attendeeOptions>
        <request>1</request>
        <registration>1</registration>
        <auto>1</auto>
        <registrationPWD>password</registrationPWD>
        <maxRegistrations>20</maxRegistrations>
        <registrationCloseDate>9/02/2012 00:00:00</registrationCloseDate>
        <emailInvitations/>
      </attendeeOptions>
    </bodyContent>
  </body>
</serv:message>
 
Response

<?xml version="1.0" encoding="UTF-8"?>
<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>validation: unable to find FieldDescriptor for 'metadata' in ClassDescriptor of createTrainingSession</serv:reason>
      <serv:gsbStatus>PRIMARY</serv:gsbStatus>
      <serv:exceptionID>999999</serv:exceptionID>
    </serv:response>
  </serv:header>
  <serv:body>
    <serv:bodyContent/>
  </serv:body>
</serv:message>


Could any one tel me where i am going wrong ? 


Thanks
Subu

Create a Cisco account today and gain access across all Cisco Collaboration Developer sites.

 

Follow the WebEx Developer program on Twitter for the latest industry and WebEx Meetings related information.