1 / 18

Web Services

Web Services. NEECOM – May 22, 2019 Todd L Gould, CEO. Background. Founded Loren Data in 1987 EDI Since 1996 X12 Board of Directors Life Outside of EDI. First, a Quiz. What does XML stand for? Extensible Markup Language. What does JSON stand for? JavaScript Object Notation.

meli
Télécharger la présentation

Web Services

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. Web Services NEECOM – May 22, 2019Todd L Gould, CEO

  2. Background • Founded Loren Data in 1987 • EDI Since 1996 • X12 Board of Directors • Life Outside of EDI

  3. First, a Quiz What does XML stand for? Extensible Markup Language What does JSON stand for? JavaScript Object Notation

  4. Web Services vs Web Browsers • They both use web servers and http • The Web Browsers are for Humans • Web Services are for Applications

  5. API • Application Programming Interface • Run code from one application in another • Operating System – It’s really how it all works • File Services • Network Services • User Interfaces • Local: Dynamic Link Library (DLL) • Remote: Web Service

  6. Why Web Services? • Allows one application to remotely execute functions on another application over the Internet or across the enterprise • Separate business processes from backend complexities • Protect the internal from the external

  7. Things to Do with Web Services • Remote Databases • Statistics • Geographic Information • Shipment Tracking • Mashup Social Media • Access Computing Power

  8. Real World Web Service APIs Salesforce Force.com reCAPTCHA Weather Underground Twilio Voice, SMS ECGridOS • Google Maps • Google Translate • UPS Tracking • Facebook • Twitter

  9. The Technical Section

  10. Types of Web Services RESTful SOAP

  11. RESTful • Representational State Transfer • Roy Fielding 2000 PhD dissertation at UC Irvine • Architecture Type • Closely related to HTTP • HTTP Methods (GET, POST, PUT, PATCH, DELETE) • Commonly uses XML & JSON for request and response

  12. A Live Example This is a free web service that returns random quotes http://www.forismatic.com/en/api/ http://api.forismatic.com/api/1.0/?method=getQuote&format=json&key=111664&lang=en Mashup with Twilio, send a text to:+1-310-827-7400

  13. SOAP • Simple Object Access Protocol • Microsoft 1998 -> 2003 • Protocol – highly defined XML • Envelope • Encoding rules for Data Types • Represents procedure calls and responses • WSDL – Web Services Description Language • Operates over any protocol (e.g. HTTP, SMTP, etc.)

  14. An EDI Example This is from the ECGridOS SOAP Web Service API https://ecgridos.net/v3.2/prod/ APIKey: a98c0fd4-d77f-4bd5-b704-afd8b751b32f

  15. Best Practices Hosting Web Services Consuming Web Services Be efficient Update to newer versions Make suggestions • Always use HTTPS – Security • Faster is better! • Change management – do not break existing functions! • Communicate!

  16. Resources • https://en.wikipedia.org/wiki/Web_service • https://smartbear.com/blog/test-and-monitor/understanding-soap-and-rest-basics/ • https://en.wikipedia.org/wiki/SOAP • https://en.wikipedia.org/wiki/Representational_state_transfer • https://en.wikipedia.org/wiki/Web_Services_Description_Language • https://en.wikipedia.org/wiki/JSON • https://en.wikipedia.org/wiki/XML

  17. Questions?

More Related