cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3467
Views
1
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Giridhar S on 15-05-2009 07:06:43 AM
Hello,
 
I have registered myself as a webex developer.  I am trying to access webex meeting services via the XML API.  This requires a SiteID and PartnerID to be passed with each call.  I understand from WebEx developer agreement that there is a shared SiteID and PartnerID I can use for my testing.  How can I get these values?  Pls send me these values or point me to some contacts who can give me these details.
 
Also, I am planning to go with Gold support ($2500/year) that can give me a dedicated siteID and partnerID.  Any pointers or contacts who can help me get this Gold contract?
 
Thanks,
Giri

Subject: RE: Using WebEx meeting services XML API
Replied by: Gluchy Inc on 18-05-2009 05:53:26 PM
Hi Giridhar,
I signed up a user and now I am also in the need of Partner site id etc..to test the xml APIs with my site..
how do I get this to get access to sandbox testing before we actually sign-up for the plan?
 

Subject: RE: Using WebEx meeting services XML API
Replied by: Kingsley Lewis on 21-05-2009 04:29:56 PM
Hello,
 
If you wish to try the APIs you can test them out on a shared sandbox site.  To get the sitename, siteID, and partnerID make sure you are logged into this site and then click on Support from the navigation menu above.  Once on the support page click on "Try WebEx APIs".  This will give you the information that you are looking for.  Please make sure to click and open the access form to create the account on the webex sandbox site.
 
Thank you,
-Kingsley Lewis

Subject: RE: Using WebEx meeting services XML API
Replied by: collaboration (simulated) on 18-06-2009 11:26:37 PM
Hi,  I just signed up as a developer. I am trying to use the sample applications. When I plugged in the shared SiteID ( 243585 ) and partnerID ( g0webx! ) , I get a cannot find SiteURL error in the response.
 
I am though able to start/host a meeting with the same WebExID/password on the shated test suite using the existing WebEx meeting application. So I am assuming the ID/pass are valid. I am confused on how to get passed this initial authentication step.

Andy

Subject: RE: Using WebEx meeting services XML API
Replied by: Kingsley Lewis on 22-06-2009 05:48:49 PM
Hi,
Where are you posting the XML to? You should be posting to https://apidemoeu.webex.com/WBXService/XMLService.  If you are posting to this URL then please provide the exact request you are using and the response you recieve from webex.
 
thank you,

Subject: RE: Using WebEx meeting services XML API
Replied by: collaboration (simulated) on 24-06-2009 10:03:02 PM
Hi,
Where are you posting the XML to? You should be posting to https://apidemoeu.webex.com/WBXService/XMLService.  If you are posting to this URL then please provide the exact request you are using and the response you recieve from webex.
 
thank you,


Thanks. I had already discovered the very error you pointed out of not posting to the right URL. The sample programs have it set to 'mwapi' instead of 'apidemoeu'. After I made the change, things worked a-ok.

Subject: RE: Using WebEx meeting services XML API
Replied by: John Kucera on 10-02-2010 04:47:35 AM
I'm also a n00b struggling to get the basic connection.  Any tips would be greatly appreciated!  
 
I'm trying to use the Java example in the code samples but receiving a "No Protocol" exception:
 

XML Request Posted To:
 
<pre class="codeBlock" style="color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; margin: 8px;">Https://apidemoeu.webex.com/WBXService/XMLService</pre>
 


no protocol: <?xml version="1.0" encoding="ISO-8859-1"?>
<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<header>
<securityContext>
<webExID>myUserName</webExID>
<password>myPassword</password>
<siteID>243585</siteID>
<partnerID>g0webx!</partnerID>
</securityContext>
</header>
<body>
<bodyContent xsi:type="java:com.webex.service.binding.meeting.LstsummaryMeeting"><listControl><maximumNum>5</maximumNum></listControl><order><orderBy>STARTTIME</orderBy></order></bodyContent>
</body>
</serv:message>

I'm assuming this is an exception returned from WebEx - is that accurate or is this a Java exception?
 
I'm using a language similar to Java:
 

        reqXML += '<serv:message xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"';
        reqXML+='>\r\n';
//        reqXML += ' xmlns:serv=\'http://www.webex.com/schemas/2002/06/service\'';
//        reqXML += ' xsi:schemaLocation=\'http://www.webex.com/schemas/2002/06/service\'>\r\n';
        reqXML += '<header>\r\n';
        reqXML += '<securityContext>\r\n';
        reqXML += '<webExID>' + webExID + '</webExID>\r\n';
        reqXML += '<password>' + password + '</password>\r\n';
        reqXML += '<siteID>' + siteID + '</siteID>\r\n';
        reqXML += '<partnerID>' + partnerID + '</partnerID>\r\n';
        reqXML += '</securityContext>\r\n';
        reqXML += '</header>\r\n';
        reqXML += '<body>\r\n';
        reqXML += '<bodyContent xsi:type="java:com.webex.service.binding.meeting.LstsummaryMeeting">';
        reqXML += '<listControl>';
        reqXML += '<maximumNum>5</maximumNum>';
        reqXML += '</listControl>';
        reqXML += '<order>';
        reqXML += '<orderBy>STARTTIME</orderBy>';
        reqXML += '</order>';
        reqXML += '</bodyContent>\r\n';
        reqXML += '</body>\r\n';
        reqXML += '</serv:message>\r\n';
        system.debug('ReqXML: '+reqXML);
 
        System.debug('XML Request POSTed to ' + xmlServerURL + '\n');
//https://apidemoeu.webex.com/WBXService/XMLService
        System.debug(reqXML+'\n');
 
        Http http = new Http();
        HttpRequest req = new HttpRequest();
        req.setEndpoint(reqXML);
        req.setMethod('GET');
 
        try{
            HttpResponse res = http.send(req);
 
            system.debug('Status: '+res.getStatus());
            system.debug('Status_Code: '+res.getStatusCode());
            system.debug('Body: '+res.getBody());
 
        }catch(system.CalloutException e){
            system.debug('Response Callout Exception: '+e);
        }//try

Subject: RE: Using WebEx meeting services XML API
Replied by: Kingsley Lewis on 10-02-2010 08:11:54 PM
Hi John,
 
The no protocal error looks like its comming from the code.  Its not something that would be returned by WebEx.  I think the problem may be around the following
 
HttpRequest req = new HttpRequest();
req.setEndpoint(reqXML);
req.setMethod('GET');
 
setEndpoint should be a URL not the request body.  try the following
 
HttpRequest req = new HttpRequest();
req.setEndpoint(xmlServerURL); //this is the url to the webservice
req.setBody(reqXML); // this is your XML
req.setMethod('POST'); // POST - XML may get to large for the limitations of GET
 
 
Thank you
-Kingsley Lewis

Subject: RE: Using WebEx meeting services XML API
Replied by: John Kucera on 11-02-2010 01:35:12 AM
You're a life saver!  Thanks a ton-I really appreciate you being so active on the boards with requests like mine as you saved me at least another 2hrs beating my head against the wall for a simple fix.  
 
For some reason the other discussion board (java type language) and HttpRequest help doc didn't have the error codes listed, which threw me off. 

Subject: RE: Using WebEx meeting services XML API
Replied by: cl s on 03-03-2010 09:47:32 PM
Hello,
 
I'm a software engineer at Zendesk, and we would like to implement a simple JavaScript snippet that can pull a list of our PUBLIC webinar data, to build a little series of event data rows on our site. Here's the data we're talking about:
 
https://zendesk.webex.com/cmp0306l/webcomponents/calendar/calendar.do?siteurl=zendesk&serviceType=TC&ownerID=0&pageNum=1&timezoneID=0&year=2010&month=0&date=7&showpast=false&showreg=false&tabType=search&searchKeyWord=Welcome
 
Unfortunately, I see nothing in the API docs that tells me how I could pull such an event list (particularly including the search term "Welcome") without authenticating in any way. Obviously we don't want to have credentials in this code, because it is just JavaScript, and its contents will be public. And there are reasons I won't even go into for which we want to do this client-side with JS, not on the backend on a server.
 
Is this possible, and if so, how? I can figure things out pretty well on my own, but knowing which page(s) to look at in which docs would be extremely helpful.
 
Thanks

Subject: RE: Using WebEx meeting services XML API
Replied by: Kingsley Lewis on 11-03-2010 11:11:39 PM
Hi Cl,
 
This isn't going to be possible with the URL
API.  You would need to use the XML API and sign up for the GDP.  This
would also mean that javascript without using ajax and a proxy wont work
because of X-domain issues.  The closest thing we have available would
just be a no framed calendar
 
http://sitename.webex.com/sitename/e.php?AT=MHNF

 
There are no additional parameters for this command
to specify a search string.
 
Using the url you have
below will break on the next site upgrade,  so be careful if you use
it.  Please also note that support will not be able to help with links
pulled directly from the webex pages. 
 
Thank you
-Kingsley
Lewis

Subject: RE: Using WebEx meeting services XML API
Replied by: sun man on 28-10-2010 04:54:44 AM
Hi Everybody,
 
EBook
Please download the PDF (http://developer.webex.com/c/document_library/get_file?p_l_id=10909&groupId=10465&folderId=11422&name=DLFE-2402.pdf) for webex xml api 5.5.
 
Apidemo Account
Please go to the following link.
http://developer.webex.com/web/meetingservices/requestshared
And then keep the SiteID and Partner for api demo developer.
SID = 243585
PID = g0webx!
 
If you don't have api demo account, please create it.
After that you can login the api demo website with your api demo account using the following link.
https://apidemoeu.webex.com/
 
For using XML Api with PHP
Please download the PHP sample code for webex xml api or you can find the sample code in the previous PDF.
http://developer.webex.com/c/document_library/get_file?p_l_id=10909&groupId=10465&folderId=11894&name=DLFE-1817.txt
 
 
Final Notes .....
You must follow the following information for xml api coding.
<siteName>apidemoeu</siteName>
<webExID>yourwebexusername</webExID>
<password>yourwebexpassword</password>
<siteID>243585</siteID>
<partnerID>g0webx!</partnerID>
<email>yourwebexregisteredemail</email>
 
 
 
With regards,
Nay La
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links