1 / 16

Using Web Services to Create Events Web Services Explained And a Production Ready Example

Using Web Services to Create Events Web Services Explained And a Production Ready Example. Topics Covered. Web Services Example Our Production Environment What is a Web Service? Why use Web Services with R25? Creating an Event with Web Services. Web Services Example.

aadi
Download Presentation

Using Web Services to Create Events Web Services Explained And a Production Ready Example

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using Web Services to Create EventsWeb Services ExplainedAnd a Production Ready Example

  2. Topics Covered • Web Services Example • Our Production Environment • What is a Web Service? • Why use Web Services with R25? • Creating an Event with Web Services

  3. Web Services Example • The below file is included in case you are interested in downloading this presentation, or if we have internet connectivity issues.

  4. Our Environment • All Windows 2003 Servers. • R25 Application Server 3.3 • R25 Web Server 3.3 • R25 Web Services 1.71 • PeopleSoft CRM • Cold Fusion 8.0

  5. What is a Web Service? • A web service exposes data, and processes for one application for use in another application. • Web Services provides a layer of abstraction which protects external applications from breaking if the internal mechanics change. • There are many types of web services. R25 uses a REST based system.

  6. Web Application R25 Web Services App Server Database

  7. 1 GET http://r25/event.xml?event_id=1234 Web Application R25 Web Services 2 Event Information

  8. Web Application R25 Web Services 2 1 Success/Fail POST http://r25/event.xml?event_id=1234

  9. Why use Web Services with R25 Some things were not delivered with the event request form that was provided. • No Implementation of Categories • No Way to Verify Room Availability

  10. Creating an Event with Web Services There are three main components to creating an event. • Authentication • Room Search • Event Creation

  11. Authentication Authentication is achieved with a challenge response handshake. • GET r25ws/servlet/wrd/run/login.xml • Returns a string, that must be hashed with the password • The hash format is: • hash({hash(password)}:{challenge string}) • The ‘:’ needs to be included in the hash. I found this misleading in the documentation. • R25 Challenge Response Documentation is here:http://knowledge25.collegenet.com/display/WSW/Authentication#Authentication-challengeresponseauth

  12. Room Search To perform a room search: • We created a temporary search, and run it via Web Services. • This is as powerful as building a search in the R25 client. • You could easily use this to create custom reports, or custom calendar display on the web. • Searches follows the same conventions as the rest of R25’s web services.

  13. Event Creation After the end user submits the form, we create the event. The new event: • Is associated with the appropriate contact. • Has a default state of ‘Draft’. • Has an exact room match, which reduces human error. • Saves category data. Category data matches our public website’s news categories.

  14. Contact Information Ben LiyanageInformation Systems Developerbliyanage@mica.edu Presentation & Code Available For Download Here http://perfectresolution.com/?p=369 (You can also find it under the R25 tag)

More Related