This is my request:
$XML_SITE = "apidemoeu.webex.com";
$XML_PORT = "443";
$d["UID"] = "mywebexid"; // WebEx username
$d["PWD"] = "password"; // WebEx password
$d["SNM"] = "apidemoeu"; //Demo Site SiteName
$d["PID"] = "g0webx!"; //Demo Site PartnerID
$d["XML"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<serv:message xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<header>
<securityContext>
<webExID>{$d["UID"]}</webExID>
<password>{$d["PWD"]}</password>
<siteName>{$d["SNM"]}</siteName>
<partnerID>{$d["PID"]}</partnerID>
</securityContext>
</header>
<body>
<bodyContent xsi:type=\"java:com.webex.service.binding.training.CreateTrainingSession\" >
<accessControl>
<listing>PUBLIC</listing>
<sessionPassword>111111</sessionPassword>
</accessControl>
<schedule>
<startDate>6/09/2015 10:00:00</startDate>
<duration>10</duration>
<timeZoneID>44</timeZoneID>
<openTime>20</openTime>
</schedule>
<metaData>
<confName>jimz hol test</confName>
<agenda>agenda 1</agenda>
<description>description</description>
<greeting>greeting</greeting>
<location>location</location>
<invitation>invitation</invitation>
</metaData>
<enableOptions>
<attendeeList>false</attendeeList>
<javaClient>false</javaClient>
<nativeClient>true</nativeClient>
<chat>false</chat>
<poll>false</poll>
<audioVideo>false</audioVideo>
<fileShare>false</fileShare>
<presentation>false</presentation>
<applicationShare>false</applicationShare>
<desktopShare>false</desktopShare>
<webTour>false</webTour>
<trainingSessionRecord>false</trainingSessionRecord>
<annotation>false</annotation>
<importDocument>false</importDocument>
<saveDocument>false</saveDocument>
<printDocument>false</printDocument>
<pointer>false</pointer>
<switchPage>false</switchPage>
<fullScreen>false</fullScreen>
<thumbnail>false</thumbnail>
<zoom>false</zoom>
<copyPage>false</copyPage>
<rcAppShare>false</rcAppShare>
<rcDesktopShare>false</rcDesktopShare>
<rcWebTour>false</rcWebTour>
<attendeeRecordTrainingSession>false
</attendeeRecordTrainingSession>
<voip>false</voip>
<faxIntoTrainingSession>false</faxIntoTrainingSession>
<autoDeleteAfterMeetingEnd>true</autoDeleteAfterMeetingEnd>
</enableOptions>
<telephony>
<telephonySupport>NONE</telephonySupport>
<numPhoneLines>4</numPhoneLines>
<extTelephonyURL>String</extTelephonyURL>
<extTelephonyDescription>String</extTelephonyDescription>
<enableTSP>false</enableTSP>
<tspAccountIndex>1</tspAccountIndex>
</telephony>
<tracking>
<trackingCode1>trackingCode1</trackingCode1>
<trackingCode2>trackingCode2</trackingCode2>
<trackingCode3>trackingCode3</trackingCode3>
<trackingCode4>trackingCode4</trackingCode4>
<trackingCode5>trackingCode5</trackingCode5>
<trackingCode6>trackingCode6</trackingCode6>
<trackingCode7>trackingCode7</trackingCode7>
<trackingCode8>trackingCode8</trackingCode8>
<trackingCode9>trackingCode9</trackingCode9>
<trackingCode10>trackingCode10</trackingCode10>
</tracking>
<repeat>
<repeatType>RECURRING_SINGLE</repeatType>
<dayInWeek>
<day>SUNDAY</day>
</dayInWeek>
<endAfter>5</endAfter>
<occurenceType>WEEKLY</occurenceType>
<interval>5</interval>
<dayInMonth>1</dayInMonth>
<weekInMonth>1</weekInMonth>
<monthInYear>1</monthInYear>
<dayInYear>1</dayInYear>
</repeat>
<remind>
<enableReminder>true</enableReminder>
<emails>
<email>ponelpanjaitan@yahoo.co.id</email>
</emails>
<sendEmail>false</sendEmail>
<mobile>String</mobile>
<sendMobile>false</sendMobile>
<daysAhead>1</daysAhead>
<hoursAhead>1</hoursAhead>
<minutesAhead>1</minutesAhead>
</remind>
<presenters>
<participants>
<participant>
<person>
<name>alternatehost1</name>
<email>host1@test.com</email>
<type>MEMBER</type>
</person>
<role>HOST</role>
</participant>
</participants>
</presenters>
<attendees>
<participants>
<participant>
<person>
<name>alternatehost3</name>
<email>panjaitanponel@gmail.com</email>
<type>MEMBER</type>
</person>
</participant>
</participants>
</attendees>
<attendeeOptions>
<request>true</request>
<registration>true</registration>
<auto>true</auto>
<registrationPWD>pass</registrationPWD>
<maxRegistrations>10</maxRegistrations>
<registrationCloseDate>06/09/2015 00:00:00
</registrationCloseDate>
<emailInvitations>true</emailInvitations>
</attendeeOptions>
</bodyContent>
</body>
</serv:message>";
and here the response:
FAILURE
No corresponding WebexID found
Any help would be appreciated.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hello,
The sandbox site is a live WebEx site for API demo purposes. The WebEx ID and password must be valid for an active account on the site. You can create a host account from http://www.webexdeveloper.com under Develop and Test, then Try WebEx APIs. Please be sure to read the page carefully, as the developer portal login details will differ from the API demo account details.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Comments
0 comments
Please sign in to leave a comment.