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

How to Start Webex Session Using Java Program?

Combination View Flat View Tree View
Threads [ Previous | Next ]
I'm new to Webex API. I'm using this API Create one Session on Webex, it is working Perfect. Now i want to Start WebEX Session so how to do this one... Actually my Sample Java code is...   SimpleDateFormat formatter = new SimpleDateFormat(DATE_FORMAT); MessageDocument messageDocument = createNewMessageDocument(); BodyContentType bodyContentType = messageDocument.getMessage() .getBody().addNewBodyContent(); CreateTrainingSession createTrainingSession = (CreateTrainingSession) bodyContentType .changeType(CreateTrainingSession.type);   // Access Info AccessControlType accessControlType = createTrainingSession .addNewAccessControl(); accessControlType .setListing(com.webex.schemas.x2002.x06.service.session.ListingType.Enum .forString("PRIVATE")); accessControlType.setSessionPassword("111111");   // Schedule Info ScheduleType scheduleType = createTrainingSession.addNewSchedule(); scheduleType.setStartDateArray(new String[] { formatter .format(startDate) }); scheduleType .setTimeZone(com.webex.schemas.x2002.x06.common.TimeZoneType.Enum .forString("GMT-12:00, Dateline (Eniwetok)")); scheduleType.setDuration(duration); scheduleType.setTimeZoneID(46); scheduleType.setOpenTime(new BigInteger("20"));   // Metadata TrainingMetaDataType trainingMetaDataType = createTrainingSession .addNewMetaData(); trainingMetaDataType.setConfName("confName"); trainingMetaDataType.setAgenda("agenda"); trainingMetaDataType.setDescription("description"); trainingMetaDataType.setGreeting("greeting"); trainingMetaDataType.setLocation("location"); trainingMetaDataType.setInvitation("invitation");     // Make the service call MessageDocument response = execute(messageDocument);   ResponseType responseType = response.getMessage().getHeader().getResponseArray(0); if(responseType.getResult().equals(com.webex.schemas.x2002.x06.service.ResultTypeType.Enum.forString("FAILURE"))){ throw new Exception("Unable create webex session : \n" + responseType.getReason()); }   CreateTrainingSessionResponse createTrainingSessionResponse = (CreateTrainingSessionResponse)response.getMessage().getBody().getBodyContentArray(0); *********   Session was Created but not Started how to Start Session.  

You can start a meeting by retrieving the meeting host url and then create a link in a web page (<a href="[MEETING_HOST_URL]">Start Meeting</a>)
http://developer.cisco.com/documents/4733862/4736722/xml_api_5+9.pdf (cf. page 218 - Chapter 5 GetHostUrlMeeting)
I don't think we can start a meeting without manual intervention, because when you click on the link, it downloads the WebEx software that is used to manage the meeting (list of participants, remind participants record meeting ...). After maybe I'm wrong, and if that is the case I will be interested to know how we can do.

Hi Nicolas,

You'll need to use URL APIs to authenticate and start the meeting.  You can reference the URL API WBS 27 Reference Guide on http://developer.cisco.com/web/webex-developer/url-api-reference for more information.  You'd want to use m.php?AT=HM (section 2-103 of the URL API WBS 27 Ref Guide) which is for starting an already scheduled meeting.  You'd also need to be authenticated as the host prior to issuing this command which can be done using p.php?AT=LI (section 2-23 of the URL API WBS 27 Ref Guide).  If wanted you could chain the Login and Host Meeting commands together as follows:

User: test
Pass: pass123
Meeting #: 684699291

https://mysite.webex.com/mysite/p.php?AT=LI&WID=test&PW=pass123&BU={BackURL}&MU=https%3A%2F%2Fmysite.webex.com%2Fmysite%2Fm.php%3FAT%3DHM%26MK%3D684699291%26BU={RedirectAfterMeeting}

The BU and MU must be URL encoded.  Also note that the BU for the 2nd command string must be double URL encoded.  Keep in mind that these are browser based APIs and generally used with user interaction in mind (i.e. user clicks on a link to start their meeting).

Regards,
Jayde Moors
API Developer Services

Hi Jayde,

I am trying to get a meeting setup with a few people from the Webex team who could help us evaluate our usecase. Is it possible for you to be called into a meeting like this? We are a member of the Gold developer program. You appear to be quite knowledgeable regarding whats possible via the Webex API's and would welcome your participation in this meeting. Do you have an email and or a phone number where I can converse further about our use case?
 
Thanks!

keith

Hi Keith, my name is Marcus O'Sullivan and I am a Bus dev Manager in the Collaboration business which includes the WebEx business. Please reach out to me directly and we can go through your use case. my e-mail is maosulli@cisco.com
 
keith friedman:
Hi Jayde,

I am trying to get a meeting setup with a few people from the Webex team who could help us evaluate our usecase. Is it possible for you to be called into a meeting like this? We are a member of the Gold developer program. You appear to be quite knowledgeable regarding whats possible via the Webex API's and would welcome your participation in this meeting. Do you have an email and or a phone number where I can converse further about our use case?
 
Thanks!

keith

Hi Prabas,
I am new to WebEx development ,actually i need to create an interface which will schedule WebEx meeting from my company page, instead of going to Cisco page. all these need to be done using WebEx API (using java program). Please guide me how can i start

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.