You are on page 1of 4

‫الطالب‪ :‬صالح الدين خيري صالح سالم المغربي‪.

‬‬
‫الرقم الدراسي‪.4412 :‬‬
‫المادة‪.Mobil Computing :‬‬
WEB Services
1. Definition of Web Services:

 Web services are software systems designed to support interoperable


machine-to-machine communication over a network. They enable different
applications to communicate with each other by using standard web
protocols and data formats such as HTTP and XML.

2. Definition of API (Application Programming Interface):

 API is a set of rules and protocols that allows one software application to
interact with another. It defines the methods and data formats that
applications can use to request and exchange information. APIs facilitate the
integration of different software systems.

3. Components of Web Services:

 Web services typically consist of three main components:

 SOAP (Simple Object Access Protocol) or REST (Representational


State Transfer): Defines the communication protocol.

 WSDL (Web Services Description Language): Describes the


functionality of the web service.

 UDDI (Universal Description, Discovery, and Integration): Helps in


the discovery of web services.

4. Examples of Web Services:

 Examples include:

 Weather services providing real-time weather data.

 Payment gateways facilitating online transactions.

 Social media APIs enabling integration with platforms like


Facebook or Twitter.

5. Definition of Web API (Application Programming Interface):

 A Web API specifically refers to an API designed to be accessed over the web
using standard protocols such as HTTP. It enables communication and data
exchange between web servers and clients, often using RESTful principles.

6. Definition of WCF (Windows Communication Foundation):

 WCF is a Microsoft framework for building service-oriented applications. It


enables the creation and consumption of distributed services using various
communication protocols, including HTTP, TCP, and named pipes. WCF
supports multiple formats such as SOAP and REST.

7. Differences between API and Web Services:


 While both API and web services facilitate communication between
software systems, an API is a broader term that encompasses various forms
of communication interfaces. Web services, on the other hand, specifically
refer to services accessible over the web through standard protocols like
HTTP.

8. Differences between SOAP and RESTful API:

 SOAP (Simple Object Access Protocol):

 Uses XML for message format.

 Requires more bandwidth and is generally slower.

 Has built-in error handling and security features.

 Follows a strict specification.

 RESTful (Representational State Transfer):

 Uses various formats such as JSON or XML.

 Generally, more lightweight and faster due to less overhead.

 Relies on standard HTTP methods (GET, POST, PUT, DELETE).

 Emphasizes statelessness and simplicity in design.

9. Explain it with drawing

:‫ملخص بالغة العربية‬ .10


‫تعتبر خدمات الويب نظم برمجية تهدف إلى دعم التواصل بين التطبيقات عبر الشبكة باستخدام بروتوكوالت وتنسيقات‬
‫) تعرف مجموعة من القواعد والبروتوكوالت التي تتيح‬API( ‫ واجهة برمجة التطبيقات‬.XML‫ و‬HTTP ‫بيانات قياسية مثل‬
‫لتطبيق واحد التفاعل مع آخر‪ ،‬وتيسر دمج أنظمة البرمجيات المختلفة‪ .‬يتألف الويب سيرفيس من عدة مكونات‪ ،‬بما في‬
‫ذلك بروتوكوالت االتصال (‪ SOAP‬أو ‪ )REST‬ووصف الخدمة (‪ )WSDL‬ومسجل االكتشاف (‪ .)UDDI‬أمثلة على‬
‫خدمات الويب تشمل خدمات الطقس وبوابات الدفع عبر اإلنترنت‪ .‬واجهة برمجة تطبيقات الويب تعني ‪ API‬مصممة‬
‫للوصول عبر الويب باستخدام بروتوكوالت قياسية مثل ‪ ،HTTP‬وُتمّك ن من تبادل البيانات بين خوادم الويب والعمالء‬
‫باستخدام مبادئ ‪ .RESTful‬ويعد )‪ WCF (Windows Communication Foundation‬إطاًر ا من مايكروسوفت يدعم‬
‫بناء تطبيقات موجهة للخدمة‪ .‬وتتنوع ‪ API‬وخدمات الويب فيما بينها‪ ،‬حيث ُيفهم ‪ API‬كواجهة برمجية أشمل تتضمن‬
‫أشكااًل مختلفة من واجهات االتصال‪ ،‬بينما تركز خدمات الويب على التفاعل عبر الويب باستخدام بروتوكوالت قياسية‪.‬‬
‫تختلف بين ‪ SOAP‬و‪ RESTful API‬في تنسيق الرسائل واألداء‪ ،‬حيث يستخدم ‪ SOAP XML‬ويكون أكثر تعقيًد ا‪ ،‬في حين‬
‫يعتمد ‪ RESTful‬على تنسيقات مثل ‪ ،JSON‬ويتميز بالسرعة والبساطة وعدم التابعية للحالة‪.‬‬

‫‪11.‬‬ ‫‪References:‬‬
‫‪‬‬ ‫‪https://www.tutorialsteacher.com/webapi/what-is-web-api.‬‬
‫‪‬‬ ‫‪https://www.ibm.com/docs/en/cics-ts/5.1?topic=services-what-is-web-service .‬‬
‫‪‬‬ ‫‪https://www.abstractapi.com/guides/api-vs-web-services.‬‬
‫‪‬‬ ‫‪https://learn.microsoft.com/en-us/dotnet/framework/wcf/whats-wcf.‬‬
‫‪‬‬ ‫‪https://www.geeksforgeeks.org/difference-between-rest-api-and-soap-api/ .‬‬
‫‪‬‬ ‫‪https://tutorialshut.com/what-are-web-services-types-and-components/‬‬

You might also like