الوحدة الرابعة تطبيق الحوكمة الالكترونية الجزء الثالث

Download Report

Transcript الوحدة الرابعة تطبيق الحوكمة الالكترونية الجزء الثالث

‫‪1‬‬
‫الحوكمة االلكترونية‬
‫برنامج تدريب المدربين‬
‫‪e-Governance‬‬
‫‪Training of Trainers‬‬
‫الوحدة الرابعة‬
‫تطبيق الحوكمة االلكترونية‬
‫الجزء الثالث‬
‫‪Module IV‬‬
‫‪e-Implementation‬‬
‫‪Part III‬‬
e-Implementation
e-IMPLEMENTATION Module
Objectives
 Learn about Business Process Reengineering experiences
 Foresee Inter-Agency
collaboration
 Being introduced to Web Services
– Service Oriented Architecture
 Get acquainted with
Interoperability Framework
 Learn basic facts on Security
Policies
 Learn basic facts Privacy Policies
‫تطبيق الحوكمة االلكترونية‬
‫اهداف وحدة تطبيق الحوكمة‬
‫االلكترونية‬
‫ التعرف على خبرات اعادة هندسة اجراءات‬
‫عمليات االعمال‬
‫ التعرف على كيفية بناء تعاون مشترك بين‬
‫المؤسسات‬
‫ التعرف على الخدمات االلكترونية – هيكلية‬
SOA ‫الخدمات الموجهة‬
‫ التعرف على اطار التخاطب البيني‬
‫ التعرف على المبادئ االساسية لسياسات االمن‬
‫ التعرف على المبادئ االساسية لسياسة‬
‫الخصوصية‬
e-Implementation
AGENDA MODULE THREE
Web Services
Service Oriented
Architecture (SOA)
Discussion:
o Any experience?
‫تطبيق الحوكمة االلكترونية‬
‫اهداف الجزء الثالث‬
‫ خدمات الويب‬
SOA ‫ هيكلية الخدمات الموجهة‬
‫ مناقشة‬
‫ ماهي خبرتك في هذا المجال‬
WEB SERVICES
Some Definitions
•W3C definition
A web service is a software system designed to support interoperable
machine-to-machine interaction over a network. It has an interface
described in a machine-processable format (specifically Web Service
Description Language WSDL). Other systems interact with the Web
service in a manner prescribed by its description using SOAP
messages, tipically conveyed using HTTP with an XML serialization in
conjunction with other Web-related standards
•“Computer” - IEEE Computer Society Journal
Web services are Web-based applications composed of coarse-grained
business functions accessed through the Internet
•IBM
Web services are self-contained, modular applications that can be
described, published, located and invoked over a network, generally,
the Web
‫خدمات الويب‬
‫بعض التعاريف‬
‫‪*W3C‬تعريف‬
‫خدمة الويب عبارة عن نظام برامج مصمم لدعم التفاعل وقابلية التشغيل المتداخل من جهاز الى جهاز عبر شبكة‬
‫اتصال‪.‬‬
‫ولها واجهة تدعى نموذج معالجة األجهزة (‪ (WDSL‬وهي لغة وصف خدمات الويب ‪ ،‬ونظم أخرى تتفاعل مع خدمة‬
‫ويب بطريقة يحددها الوصف الخاص بها باستخدام الرسائل ‪SOAP ) Simple Object Access Protocol‬‬
‫وهو أحد البروتوكوالت المستخدمه في عملية نقل البيانات بين شبكات الكمبيوتر وذلك بإستخدم لغة ‪ XML‬جنبا‬
‫إلى جنب مع غيرها من المعايير ذات الصلة بشبكة اإلنترنت‪.‬‬
‫‪.‬‬
‫مجلة جمعية الكمبيوتر ‪ IEEE‬الكمبيوتر ” *“‬
‫خدمات الويب ‪ :‬هو تطبيقات المستندة على الويب تتكون من حبيبات وظائف االعمال الخشنة التي يتم الوصل اليها‬
‫عن طريق االنترنت ‪.‬‬
‫*‪IBM‬‬
‫‪‬خدمات الويب‪ ،‬عبارة عن تطبيقات نمطية قائمة بذاتها ‪ ،‬قابلة للوصف ‪ ،‬يمكن نشرها وتحديد أماكنها عبر شبكة‬
‫الويب ‪.‬‬
WEB SERVICES
What is a Web Service
•Functions
– A collection of operations
– Machine-to-machine interaction
•Invoked / Accessed
– Well defined interface
•Over a network (needs HTTP protocol)
– Intranet
– Web
•Loosely coupled
– The service requester has no knowledge of the technical details of the
provider’s implementation
‫خدمات الويب‬
‫ما هي خدمات الويب‬
‫•الوظائف‬
‫– مجموعة من العمليات‬
‫– تفاعل االلة مع االلة‬
‫الوصول‪ /‬النقاذ ‪:‬‬
‫– التحديد الصحيح للواجهة‬
‫عبر الشبكة(يحتاج لبروتوكول يسمى‪:‬‬
‫– انترانت‬
‫– الويب‬
‫• الثنائي المنفصل ‪:‬‬
‫– طالب الخدمة ليس على معرفة بالتفاصيل الفنية لتطبيقات المزود‬
WEB SERVICES
Why Web Services
•Logical evolution of object-oriented techniques to e-business
•Promoting interoperability by minimizing the requirements for shared understanding
– Common program-to-program communications model
– Web services are platform and language independent
•Enabling just-in-time integration
– Services are bound dinamically at runtime
– Systems are self-configuring, adaptive and robust
•Reducing complexity by encapsulation
– All components of an application are services
•Enabling interoperability of legacy applications
‫خدمات الويب‬
‫لماذا خدمات الويب؟؟‬
‫‪‬التطور المنطقي للتقنيات الموجهة لألعمال االلكترونية‬
‫‪‬ترويج إمكانية التخاطب البيني عبر تقليل متطلبات التفاهم المشترك ‪:‬‬
‫• ‪.‬النموذج الشائع إلتصال برنامج ببرنامج آخر‬
‫• خدمات الويب نظام أساسي ‪ ،‬ولغة مستقلة بذاتها‬
‫‪ .1‬تسهل التكامل في الوقت المناسب ‪.‬‬
‫• الخدمات تعرض بشكل فعال وقت التشغيل‪.‬‬
‫• النظام يتشكل ويتكييف تلقائيا بشكل متماسك‬
‫‪ ‬يقلل التعقيدات عن طريق إحتوائها ‪.‬‬
‫• جميع مكونات هذا التطبيق هي خدمات ‪.‬‬
‫‪‬يتيح إمكانية التخاطب البيني للتطبيقات القديمة‬
Web Services
Evolution or Revolution?
Web services are to be viewed as an evolutionary step towards software
interoperability
•Before Web services:
– Common Object Request Broker Architecture (CORBA)
– Distributed Component Object Model (DCOM)
•Reasonable protocols for server-to-server communications; weaknesses in clientserver communications on the Internet
•Use of non-standard protocols
‫خدمات الويب‬
‫التطورات او الثورات‬
‫*خدمات الويب تعرض على شكل خطوات متطورة للوصول الى نظام له قابلية التخاطب البيني‪.‬‬
‫*قبل خدمات الويب‪:‬‬
‫– ‪(CORBA) Common Object Request Broker Architecture‬‬
‫– ‪(DCOM) Distributed Component Object Model‬‬
‫*وجود البرتوكول المناسب التصال خادم – خادم ‪ ،‬في حالة الضعف في االتصال بخادم الزبون على االنترنت‪.‬‬
‫*استخدام بروتوكوالت غير قياسية‪.‬‬
WEB SERVICES
Web Services Life Cycle
•A Web service needs to be created and its interface must be defined
•A Web service needs to be published to one or more intranet or Internet repositories
for potential users to locate
•A Web service needs to be located to be invoked by potential users
•A Web service needs to be invoked to be of any benefit
•A Web service may need to be unpublished when it is no longer available or needed
‫خدمات الويب‬
‫دورة حياة خدمات الويب‪:‬‬
‫*خدمات الويب تحتاج الى تطوير والواجهة يجب ان ان تكون معرفة‪.‬‬
‫*خدمات الويب تحتاج لنشر في واحدة او اكثر وواحد من مواقع االنترنت او االنترانت ليتم ايجادها من قبل‬
‫المستخدمين‬
‫*خدمات الويب تحتاج لتكون محددة لتخدم ما يتطلبه المستخدمين‪.‬‬
‫*خدمات الويب يجب ان تكون موجودة لتقدم الفوائد الممكنة ‪.‬‬
‫*خدمات الويب ليس بالضرورة ان تكون منشورة اذا لم يكن بحاجة لها‬
WEB SERVICES
Web Services Interactions
:‫تفاعالت خدمات الويب‬
WEB SERVICES
W3C Conceptual Web services Stack
W3C ‫مجموعة مفاهيم خدمات الويب‬
Discovery, Aggregation, Choreography,
…
Descriptions
Web services Description (WSDL)
Messages
SOAP Extension
Reliability, Correlation,
Transaction, …
SOAP
Communications
HTTP, SMTP, FTP, …
MANAGEMENT
Base Technologies: XML, DTD,
Schema
SECURITY
Base Technologies: XML, DTD,
Schema
Processes
WEB SERVICES
IBM Conceptual Web services Stack
WSFL
Static -> UDDI
Service Discovery
Service Description
SOAP
XML–Based Messaging
HTTP, FTP, email, etc.
Network
Quality of Service
WSDL
Management
Service Publication
Security
Static -> UDDI
Service Flow
‫خدمات الويب‬
‫تصورات مجموعة خدمات الويب ‪IBM‬‬
‫تدفق الخدمة‬
‫االدارة‬
‫نشر الخدمة‬
‫االمان‬
‫نوعية الخدمة‬
‫تغطية الخدمة‬
‫‪WSFL‬‬
‫‪Static -> UDDI‬‬
‫‪Static -> UDDI‬‬
‫وصف وتعريف الخدمة‬
‫‪WSDL‬‬
‫الرسائل االساسية–‪XML‬‬
‫‪SOAP‬‬
‫الشبكة‬
‫‪HTTP, FTP, email, etc.‬‬
WEB SERVICES
Web Services Stack from webservices.org
Example
Layer
Service Negotiation
Trading Partner Agreement
Workflow, Discovery,
Registries
UDDI, ebXML registries, IBM
WSFL, MS XLANG, BPEL4WS
Service Description Language
WSDL/WSCL
Messaging
SOAP/XML Protocol
Transport Protocols
HTTP, HTTPS, FTP, SMTP
Business Issues
Management, Quality of
Service, Security, Open
Standards
‫خدمات الويب‬
‫مجموعة خدمات الويب من شركة منظمة الويب ‪webservices.org‬‬
‫امثلة‬
‫الطبقة‬
‫اتفاقية تجارة الشركاء‬
‫خدمة التفاوض‬
‫‪UDDI, ebXML registries, IBM‬‬
‫‪WSFL, MS XLANG, BPEL4WS‬‬
‫تدفق العمل‪ ,‬التغطية ‪,‬التسجيل‬
‫‪WSDL/WSCL‬‬
‫لغة وصف الخدمة‬
‫‪SOAP/XML Protocol‬‬
‫الرسائل‬
‫‪HTTP, HTTPS, FTP, SMTP‬‬
‫البروتوكوالت المتنقلة‬
‫‪ ,‬نوعية الخدمة و االمان والقوانين المفتوحة‬
‫االدارة‬
‫قضايا االعمال‬
WEB SERVICES
XML-Based Messaging
•
•
•
Exchange structured data between network applications
Allows software running on disparate operating systems, and environments
to make RPCs
Simple Object Access Protocol (SOAP)
– W3C standard
– Built over XML
Service Requestor
Application
Service Provider
Web service
SOAP
SOAP
Network Protocol
Network Protocol
‫خدمات الويب‬
‫الرسائل االمستندة على ‪XML-‬‬
‫*تبادل معلومات منظمة بين تطبيقات الشبكة‬
‫*السماح بتشغيل البرنامج بشكل متباين في نظام التشغيل وبيئته ليكون ما يسمى ب ‪RPCs‬‬
‫*بروتوكول الوصول ‪(SOAP) Simple Object Access Protocol‬‬
‫– معايير ‪W3C‬‬
‫– مبني على ‪XML‬‬
‫مزود الخدمة‬
‫خدمات الويب‬
‫متطلبات الخدمة‬
‫التطبيقات‬
‫‪SOAP‬‬
‫‪SOAP‬‬
‫بروتوكول الشبكة‬
‫بروتوكول الشبكة‬
WEB SERVICES
SOAP MEssage
WEB SERVICES
Service Description
•The service provider defines all the specifications to invoke the Web service
– Interface
– Operations and messages
•The requestor and the provider don’t have to be aware of each other’s underlying
platform
•Use of Web Service Description Language (WSDL)
– W3C standard (it was proposed by Microsoft and IBM)
– Based on XML documents
‫خدمات الويب‬
‫وصف الخدمة‬
‫*مزود الخدمة يقوم بتحديد المواصفات الالزمة للوصول الى الويب ‪.‬‬
‫– الواجهة‬
‫– الرسائل والعمليات ‪.‬‬
‫*طالب الخدمة والمزود ليس بالضرورة ان يعرف كل منهما النظام األساسي لتطبيقات اآلخر ‪.‬‬
‫•استخدام لغة وصف خدمة الويب ‪WSDL Web Service Description Language‬‬
‫– ‪W3C‬خدمات الويب تم اقتراحها من قبل ميكرسوفت و آي ‪ .‬بي ‪ .‬أم ‪.‬‬
‫– تعتمد على وثائق من ‪.XML‬‬
WEB SERVICES
Service Publication
Makes a Web service description available to a service requestor
•Direct publishing
– The service provider sends the service description directly to the service
requestor
– E-mail attachment, FTP site, CD-ROM distribution,…
•Service description repository
– Local cache of service descriptions
•Universal Description Discovery and Integration specification (UDDI)
– Copyrigth by Accenture, Fujitsu-Siemens, HP, Intel, IBM, Microsoft, Oracle,
SAP, Sun Microsystems,…
– Organization for the Advanced of Structured Information Standards (OASIS)
standard
– A UDDI registry can be thought as a DNS for business application
‫نشر الخدمة‬
‫خدمات الويب‬
‫‪.‬جعل وصف خدمة الويب متاحة لطالب الخدمة‬
‫*النشر المباشر‬
‫– يقوم مزود الخدمة بارسال اوصاف الخدمة مباشرة لطالب الخدمة‬
‫– مرفقات االيميل‪ ،‬مواقع بروتوكوالت تحميل الملفات ‪, FTP‬توزيع ‪, CD-ROM‬‬
‫*مستودع وصف الخدمة‬
‫– مخزن محلي الوصاف الخدمة‬
‫* )‪Universal Description Discovery and Integration specification (UDDI‬‬
‫– حقوق الطبع باستخدام البارزين في السوق مثل ‪, Fujitsu-Siemens, HP, Intel, IBM, Microsoft,‬‬
‫…‪Oracle, SAP, Sun Microsystems,‬‬
‫– منظمة المعايير المتقدمة لمقاييس المعلومات )‪(OASIS‬‬
‫– تسجيل ‪ UDDI‬يمكن التفكير بع كتسجيل اسم نطاق ‪.DNS‬‬
WEB SERVICES
UDDI
Defines a way to publish and discover information about services
•White pages : provide listings of providers (name, text description, contact info and
identifiers)
•Yellow pages : contains classification information about the business entity and types
of the services the entity offers. E.g. Amazon can be a book seller and a bibliographic
information broker
•Green pages : info to interact with companies’ Web Services (service description and
binding information)
‫خدمات الويب‬
‫)‪Universal Description Discovery and Integration specification (UDDI‬‬
‫تعرف الطرق التي من خاللها يتم نشر وايجاد معلومات الخدمات‬
‫*الصفحات البيضاء‪):‬تقدم قائمة بالمزودين )اسمائهم ‪ ,‬اوصافهم ‪,‬معلومات االتصال بهم ‪,‬والمعرفين لهم)‬
‫*الصفحات الصفراء‬
‫تحتوي معلومات محددة حول كيان العمل وطبيعة الخدمة للعروض ‪,‬مثال‪:‬امازون تستطيع ان تكون بائعة كتاب‬
‫ووكيل تزويد معلومات بيبلوغرافية‪.‬‬
‫*الصفحات الخضراء ‪ :‬معلومات عن كيفية التفاعل مع شركات‬
‫الويب( وصف الخدمة ومعلوماتها المعنونة)‬
WEB SERVICES
UDDI
•Use of UDDI browsers
– http://www.soapclient.com/UDDISearch.html
– http://uddi.microsoft.com/search/search.aspx
•Every Web service has an URI (Uniform Resource Identifier)
•Microsoft Web services
– The list of the Web service methods is displayed when a browser loads the
corresponding URI
– These methods are invocable from such list
‫خدمات الويب‬
‫)‪Universal Description Discovery and Integration specification (UDDI‬‬
‫*استخدام متصفح ‪UDDI‬‬
‫– ‪http://www.soapclient.com/UDDISearch.html‬‬
‫– ‪http://uddi.microsoft.com/search/search.aspx‬‬
‫( كل خدمة من صفحات الويب يجب أن يكون لها رابط معرف فريد ‪URI (Uniform Resource‬‬
‫)‪Identifier‬‬
‫*خدمات الويب للميكروسوفت‬
‫– عرض طرق قائمة خدمات الويب يتم عندما يقوم المستعرض بتحميل ‪URI‬وهو عبارة عن عنوان‬
‫فريد يستخدم لتحديد المحتوى على الشبكة‪.‬‬
‫– يتم طلب هذه الطرق عن طريق مثل هذه القائمة‬
WEB SERVICES
Service Discovery
Acquires the service description and consumes it
•Acquiring
– With the direct publishing approach, the service requestor caches the service
description at design time
– The service requestor retrieves a service description at design time or runtime
from a service description repository (UDDI)
•Consuming
– The service requestor processes the description to invoke the service
• At design time or runtime
‫خدمات الويب‬
‫إكتشاف الخدمة ‪:‬‬
‫يتطلب وصف الخدمة وكيفية إستهالكها‬
‫*المتطلبات‬
‫– يعمل طالب الخدمة على األحتفاظ بوصف الخدمة ووقت تصميمهاعند نشر الخدمة مباشرة ‪.‬‬
‫– الخدمة يقوم المستخدم باسترجاع وصف الخدمة ووقت تصميمها ووقت تشغيلها من مستودع وصف‬
‫‪(UDDI) .‬الخدمة‬
‫*االستهالك‬
‫– يقوم طالب الخدمة بوضع الوصف لتزويده به في الوقت المناسب‬
‫• وقت التصميم او وقت التشغيل ‪.‬‬
WEB SERVICES
Service Flow
•Choreography / Aggregation for W3C
•Web services are composable
– The workflow will provide choreography for automatic interaction between
Web services
•W3C / IBM and Microsoft / Sun and Oracle are competing for the standard definitions
of this layer
•Work in progress
‫خدمات الويب‬
‫تدفق الخدمة‬
‫*تصميم \ تجميع ل‪W3C‬‬
‫إعداد خدمات الويب ‪:‬‬
‫– تدفق الخدمة يقدم تصميم التمتة التفاعالت التي تحصل بين خدمات الويب‬
‫•تتنافس على تعريف معايير هذه الطبقة ‪. W3C / IBM and Microsoft / Sun and Oracle‬‬
‫•السير قدما في التطور ‪.‬‬
WEB SERVICES
Security
There are four basic security requirements:
•Confidentiality is the property that information is not made available or disclosed to
unauthorized individuals, entities, or processes, and guarantees that the contents of
the message are not disclosed to unauthorized individuals
•Authorization is the granting of authority, which includes the granting of access based
on access rights and guarantees that the sender is authorized to send a message
•Data integrity is the property that data has not been undetectably altered or
destroyed in an unauthorized manner or by unauthorized users thereby insuring that
the message was not modified accidentally or deliberately in transit
•Proof of origin is evidence identifying the originator of a message or data. It asserts
that the message was transmitted by a properly identified sender and is not a replay
of a previously transmitted message. This requirement implies data integrity
‫خدمات الويب‬
‫االمن‬
‫هناك اربعة متطلبات اساسية لالمن‪:‬‬
‫*السرية ‪:‬هي ملكية المعلومات التي تجعلها غير متاحة او قابلة للكشف لغير المخولين من االشخاص او‬
‫المؤسسات او العمليات‪ ،‬وتضمن عدم الكشف عن محتويات الرسالة إلى األشخاص غير المرخص لهم‬
‫‪.‬‬
‫التخويل‪ :‬هي منح التخويل‪ ،‬والذي يتضمن منح الوصول استنادا إلى حقوق الوصول وضمانات بأن يخول‬
‫للمرسل إلرسال رسالة‬
‫*نزاهة المعلومات‪:‬الذي يضمن ان المعلومات ليست مقتطعة او غير صحيحة من مجال غير مرخص او مستخدم‬
‫غير مرخص وذلك للتاكد من ان الرسالة لم يتم تعديلها بقصد متعمد‬
‫*اثبات االصل ‪ :‬اعطاء دليل على ان المعلومة هي االصلية وان المعلومة تم ارسالها وعبورها من مصدر معرف‬
‫وانها ليست تكرار لمعلومة سابقة ‪ .‬وتلك هي المتطلبات الالزمة ألثبات نزاهة المعلومات ‪.‬‬
WEB SERVICES
Management
Management in this case means that a management application can discover the
existence, availability and health of the Web service infrastructure, Web services and
service registries
•It must be possible to manage Web services at all levels of the conceptual Web
services stack
•The management interfaces should operate at the service level, and not at the
relatively low level of the infrastructure
– Basic reporting of Web services infrastructure availability
– Information about performance, availability, events of Web services
‫خدمات الويب‬
‫االدارة‬
‫االدارة في هذه الحالة تعني ان ادارة التطبيقات قادرة على ان تضمن وجود بنية سليمة وصحية لخدمة الويب‬
‫والخدمة ذاتها وتسجيلها‬
‫•يجب ان تكون قادرة على ادارة خدمة الويب في كل مراحل مفاهيم مجموعات خدمات الويب‬
‫•*ادارة الواجهات يجب ان تعمل في مستوى الخدمة وليس في المستوى المتدني من البنية التحتية‬
‫ التقارير األساسية عن توفر وديمومة بنية خدمة الويب‬‫‪ -‬معلومات حول االداء والتوفر والنشاطات المتعلقة بخدمة الويب‬
WEB SERVICES
Quality of Service
In XML-Based Messaging level
– Reliable messaging : Ability of an infrastructure to deliver a message once, and
only once, to its intended target or to provide a definite event, possibly to the
source, if the delivery cannot be accomplished
•In service description level
– Maximun duration after the requestor expects the provider to respond
•In service composition or service flow level
– Expected execution time, timeout values,…
•The Quality of Service issues and solutions for Web Services are still emerging
‫خدمات الويب‬
‫نوعية الخدمة‬
‫‪ XML‬في مرحلة الرسائل االساسية‬
‫‪-‬الرسائل الموثوقة‪ :‬ان يكون هناك قدرة في البنية التحتية لتوصيل الرسائل مرة واحدة فقط للهدف الموجه‬
‫اليه‪ ،‬وامكانية المصدر الحصول على اثبات اذا لم يتم استكمال االرسال‬
‫*في مرحلة وصف الخدمة‬
‫ المدة القصوى المتوقعة من طالب الخدمة ليتم الرد عليه من قبل المزود‬‫*في مرحلة تدفق الخدمة‬
‫ الوقت المستغرق للتنفيذ‪ ،‬الوقت المستقطع ‪...،‬‬‫*قضايا نوعية الخدمة وحلول خدمات الويب التزال قيد الظهور واالستكشاف‬
WEB SERVICES
Web Services Development
The development and deployment of Web services do not require a particular
technology in the underlying platform
•A common text editor can be used to develop Web services
•There are several development tools that allow to easily develop Web services
– Microsoft Visual Studio .NET
– Sun ONE Studio
– IBM WebSphere Studio or Eclipse IDE with WSDK
– …
‫خدمات الويب‬
‫تطوير خدمات الويب‬
‫تطوير خدمات الويب ال تحتاج الى شخص تقني معين‬
‫*محرر النصوص الشائعة من الممكن استخدامه لتطوير خدمات الويب‪.‬‬
‫* هناك عدة طرق تطوير تسمح بتطوير خدمة الويب بسهولة‬
‫– ‪Microsoft Visual Studio .NET‬‬
‫– ‪Sun ONE Studio‬‬
‫– …‪IBM WebSphere Studio or Eclipse IDE with WSDK‬‬
WEB SERVICES
Web Services with .NET
•You have to
– Access to Internet Information Services (IIS)
• In a local or remote machine
• A server for web applications/services
• The service repository of one or more service providers
– Create a Web service project in Microsoft Visual Studio .NET
• A Web service is composed by classes
• Usage of keyword Web Method for the public methods invocable from the
Internet
‫خدمات الويب‬
‫‪NET‬خدمات الويب مع‬
‫•يجب ان يتوفر‬
‫• خدمة الدخول الى االنترنت‬
‫*عن طريق اله بعيدة او محلية‪.‬‬
‫خادم لتطبيقات الويب‬
‫مستودع الخدمة لواحد او اكثر من مزودي الخدمة‪.‬‬
‫• انشاء مشروع خدمة ويب باستخدام ‪Microsoft Visual Studio .NET‬‬
‫تتكون خدمة الويب من تصنيفات‬
‫استخدام الكلمات االساسية كطريقة عامة شائعة على االنترنت‬
WEB SERVICES
WEB SERVICES
Considerations
•Web services standard today permits application-to-application interoperability
– Server-to-server communications
– Client-server communications
•The coordination of a set of Web services working towards a common end is an open
issue
– Transaction-based applications
‫خدمات الويب‬
‫االعتبارات‬
‫*معايير خدمات الويب اليوم تسمح بقابلية تبادل التطبيقات مع بعضها‬
‫اتصال خادم بخادم‬
‫االتصال بخادم العمالء ‪Client-server‬‬
‫*التنسيق بين مجموعة خدمات الويب تعمل للوصول لنهاية معروفة ‪ ،‬وهي مسألة مفتوحة ‪:‬‬
‫المعامالت المستندة على التطبيقات‬
WEB SERVICES
Service Oriented Architecture
From an IBM document on SOA
“…SOA presents the big picture of what you can do with Web services…”
“…It can be based on Web services, but it may use other technologies instead…”
“…A service in SOA is an application function packaged as a reusable component
for use in a business process…”
•Software as a Service (SaaS)
– The key know-how involved is not who provides services but what service a
transaction requires at any particular point
– Separate the possession and ownership of software from its use
– Ultra-late binding
‫خدمات الويب‬
‫هيكلية الخدمات الموجهه ‪:: SOA‬‬
‫من وثيقة ‪IBM‬‬
‫هيكلية الخدمات الموجهه ‪ SOA‬هي مجموعة من مبادئ تصميم األنظمة تستخدم في مجال الحوسبة أثناء‬
‫مراحل تطوير األنظمة وإندماجها ‪:‬‬
‫‪ SOA‬تقدم صورة واضحة لما يمكن فعله بخدمات الويب …‬
‫“‬
‫…“يمكن ان تعتمد على خدمات الويب لكن يمكن استخدام تقنيات اخرى بدال عنها”…‬
‫…“الخدمة في ‪ SOA‬هي تطبيق وظيفي يحفظ كمكونات صالحة لالستعمال في خطوات العمل‬
‫”…‬
‫•البرامج كخدمة )‪(SaaS‬‬
‫ الدراية الفنية ليست في معرفة من يزود الخدمة ولكن بمعرفة نوع الخدمة الواجب تقديمها عند نقطة ما ‪.‬‬‫ الية الفصل ما بين الملكية وحق استخدام النظام‬‫‪-‬األلزام المتأخر جدا ‪.‬‬
SERVICE ORIENTED
ARCHITECTURE
SERVICE ORIENTED
ARCHITECTURE
An IT architecture composed of software that has been exposed as “Services”
– i.e. invoked on demand using a standard communication protocol
“Web Services” – software available as a “service” using Internet protocols.
One software application talking to another using a standards-based (i.e. nonproprietary) language over a standards-based communication protocol.
Universal “Dial Tone” between software applications
An IT architecture that enables “loose coupling” of applications
‫هيكلية الخدمات الموجهه ‪SOA‬‬
‫بنية تكنولوجيا المعلومات تتالف من البرامج التي تعرض على انها ”خدمات“ مثال ‪:‬طلب استدعاء باستخدام معيار‬
‫محدد لبرتوكول اتصال‪.‬‬
‫خدمات الويب ” – برنامج متوفر على شكل خدمة باستخدام بروتوكوالت االنترنت ‪“.‬‬
‫برنامج واحد يتحدث لالخر باستخدام مغايير محددة (غير مملوكة) لغة استخدام برتوكول اتصال محدد‬
‫عالمي ” طلب رنة“ بين تطبيقات البرنامج‪.‬‬
‫بنية تكنولوجيا المعلومات التي تمكن من ”ازدواجية ” التطبيقات‪.‬‬
SERVICE ORIENTED
ARCHITECTURE
 Usual misperception: SOA = Web Services
 SOA partions and represents business services
 SOA brings:
• service-oriented context for business logic.
• service-oriented applications.
• service-oriented technologies.
• a top-down organization transformation requiring real commitment
‫هيكلية الخدمات الموجهه ‪SOA‬‬
‫‪ ‬سوء الفهم المعتاد لخدمات الويب ‪: SOA = Web Services‬‬
‫‪ ‬الحصول على ترخيص بنية الخدمة الموجهة وتمثل خدمة األعمال ‪.‬‬
‫‪ ‬بنية الخدمة الموجهة ‪ SOA‬تجمع ‪:‬‬
‫‪ ‬سياق الخدمة الموجهة الى منطق األعمال‪.‬‬
‫‪ ‬تطبيقات الخدمة الموجهة‬
‫‪ ‬تكنولوجيا الخدمة الموجهة‬
‫‪ ‬تحول االتنظيم من أعلى الى اسفل يحتاج الى التزام حقيقي‪.‬‬
SERVICE ORIENTED
ARCHITECTURE
Loosely coupled: minimizes dependencies between
services.
Contractual: adhere to agreement on service descriptions.
Autonomous: control the business logic they encapsulate.
Abstract: hide the business logic from the service
consumers
‫هيكلية الخدمات الموجهه ‪SOA‬‬
‫•االزدواجية ‪:‬تقلل من التبعية بين الخدمات‪.‬‬
‫•التعاقد‪ :‬بسعى ليناء االتفاقية في مواصفات الخدمة ‪..‬‬
‫•المستقل ‪ :‬يتحكم بمنطق العمل الذي يتضمنه ‪.‬‬
‫•التجريدي‪ :‬يحمي منطق العمل من مستهلكي الخدمة‪.‬‬
‫البنية المناسبة للخدمة‬
Reusable: divide business logic into reusable services.
Composable: facilitate the assembly of composite services.
Stateless: minimize retained information specific to an
activity.
Discoverable: self-described so that they can be found and
assessed.
‫البنية المناسبة للخدمة‬
‫‪.‬قابلة لالستخدام ‪ :‬تقسم العمل الى خدمات قابلة ألعادة األستخدام ‪.‬‬
‫‪.‬مركب‪ :‬تسهيل عملية دمج الخدمات ‪.‬‬
‫عدم االنتماء ‪ :‬تقليل كم المعلومات المحتفظ بها خصيصا لتنشيطها ‪.‬‬
‫قابل لالكتشاف ‪ :‬يحمل وصفا ذاتيا ‪ ،‬األمر الذي يسهل االعثور عليه وتقييمه ‪.‬‬