1 / 11

Web Services Context WS-CTX http://developers.sun.com/techtopics/webservices/wscaf/wsctx.pdf

Web Services Context WS-CTX http://developers.sun.com/techtopics/webservices/wscaf/wsctx.pdf. Presented by: Ioan Toma. Overview. Introduction Architecture Components Activities WS-CTX interactions Conclusions. Introduction.

tejana
Télécharger la présentation

Web Services Context WS-CTX http://developers.sun.com/techtopics/webservices/wscaf/wsctx.pdf

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 Context WS-CTXhttp://developers.sun.com/techtopics/webservices/wscaf/wsctx.pdf Presented by: Ioan Toma

  2. Overview • Introduction • Architecture • Components • Activities • WS-CTX interactions • Conclusions

  3. Introduction • WS-CTX allows multiple Web services to share a common context structure

  4. Architecture • WS-CTX represents a Web services interaction of a number of activities related to an overall application • Defines demarcation points between activates • Register Web services • Propagate context information • WS-CTX components: • Context Service • Context • Activity Lifecycle Service

  5. WS-CTX components Context Service • defines the scope of an activity and how information about it (the context) can be referenced and propagated in a distributed environment. • is concerned with managing the lifecycle of context propagation. Activity Lifecycle Service • offer additional information to the basic context • registered with the Context service and are informed of the lifetime of an activity

  6. WS-CTX components (cont) Context • contains information necessary for multiple Web services to be associated with the same activity. • is modeled as a Web resource and is accessible via a URI • consists of the following items: • A URI identifier - context identifier • Activity-service element – Context service identifier • Type of the activity identifier • List of the services currently participating in the activity • List of child activities • Timeout value • transported in a SOAP header block

  7. WS-CTX Activity • is a unit of (distributed) work, involving one or more parties (services, components, objects); a way of scoping application specific work • has a status: active, completing, completed, no_activity, unknown • has a completion status: success, fail, fail_only, unknown • has a outcome that is returned to the initial Web service application

  8. WS-CTX Activity (Cont) • Services involved within an activity: • Activity Lifecycle Service • Application Service

  9. WS-CTX interactions • Enlisting and delisting an Activity Lifecycle Service by using two interfaces • ALSRegistrar (Context Service) • enlistALS, delistALS • ALSRegistrant (ALS) • enlisted, delisted, invalidALSFault, generalFalut

  10. WS-CTX interactions (cont) • Interactions between ALS and Context Service • ALS (ALS endpoint) • begin, completeWithStatus, complete, getIdentity • ALSRespondant (Context Service endpoint) • begun, completedWithStatus, completed, identity, invalidALSFalut, validContextExpectedFault, generalFalut • Interaction between Context Service and Users services • CTXService • begin, complete, completeWithStatus, setCompletionStatus, getCompletionStatus, getStatus, getActivityName, getContext, setTimeout and getTimeout • UserCTXService • begun, completed, completionStatusSet, completionStatus, status, activityName, context, timeoutSet, timeout, invalidStateFault, invalidActivityFault, timeoutOutOfRangeFault, childActivityPendingFault, noActivityFault, noPermissionFault, validContextExpectedFault

  11. Conclusions • WS-CTX is intended as a lightweight mechanism for allowing multiple Web services to share a common context. • WS-CTX defines the context, the scope of context sharing, and basic rules for context management.

More Related