Clinton Davidson, Plumtree Software <Clinton.Davidson@plumtree.com>
Christopher Coco, Vignette Corp. <email@example.com>
Rich Thompson, IBM <firstname.lastname@example.org>
Andre Kramer, Citrix <email@example.com>
Subbu Allamaraju, BEA Systems <firstname.lastname@example.org>
Richard Jacob, IBM <email@example.com>
Scott Goldstein, Vignette Corp. <firstname.lastname@example.org>
Michael Freedman, Oracle <Michael.Freedman@oracle.com>
Atul Batra, Sun Microsystems Inc <Atul.Batra@Sun.COM>
This is the WSRP 1.0 FAQ. The purpose of this document is to provide explanation for common questions about the WSRP 1.0 specification. Although this FAQ is not normative, its question-based approach is intended as one of the starting points to WSRP for implementers and other readers. For a more in-depth introduction, readers are recommended to read the Web Services for Remote Portlets 1.0 Primer The primer explains the abstractions of the specification using sample scenarios, and provides guidance and best practices for implementers and advanced users of the WSRP Specification.
This version is a draft of the non-normative WSRP 1.0 FAQ. Comments and/or additions are much appreciated and may be emailed to email@example.com. If you are on firstname.lastname@example.org list for committee members, send comments there. If you are not on that list, subscribe to email@example.com list and send comments there. To subscribe, send an email message to firstname.lastname@example.org with the word "subscribe" as the body of the message. Copyright © 2004, 2005 The Organization for the Advancement of Structured Information Standards [OASIS
If you are on email@example.com list for committee members, send comments there. If you are not on that list, subscribe to firstname.lastname@example.org list and send comments there. To subscribe, send an email message to email@example.com with the word "subscribe" as the body of the message.
Copyright © 2004,2005 The Organization for the Advancement of Structured Information Standards [OASIS]
A portlet is a user-facing, interactive application component that renders markup fragments that can be aggregated and displayed by a portal. For example, a weather portlet that could be displayed with a stock quote portlet, or an ERP portlet from a portal vendor.
Web Services for Remote Portlets (WSRP) are presentation-oriented, interactive web services. WSRP provides a standard that enables all content and application providers to provide their services in a manner where they can easily be discovered and plugged into all compliant portals without programming effort on the portal's side. See the WSRP White Paper.
WSRP is a standard messaging interface for interacting with compliant UI components. JSR-168 is a standard Java interface for portlets that builds on the J2EE programming model of servlets. This is an interface between a particular Java type of UI component and its hosting container. Other differences are that JSR-168 is Java only, while WSRP is platform independent. JSR-168 generally is local while WSRP is remote. See the WSRP TC page for companies that provide mappings between JSR-168 and WSRP.
As noted in the WSRP White Paper, WSRP provides an interface to deal with issues such as Localization, Mime types, portlet modes (for example, edit, help and view modes),and window states (for example minimized, maximized, solo, and normal window states). Defining these states for each web service would be tedious and error-prone.
Among the reasons noted in the WSRP White Paper are ease of configuration, platform independence, and scalability. Consider the ease of consuming a weather portlet from a central site to installing, configuring, and updating a weather portlet on a number of servers.
The simple answer is to use the methods of a company that has implemented a Producer- see the WSRP TC Page. For example, a developer could use WSRP4J on Java, or the Microsoft WSRP Web Service Toolkit for Sharepoint or NetUnity on .NET.
The Producer is a web service that offers one or more portlets and implements various WSRP interfaces/operations. Depending on the implementation, a producer may offer just one portlet, or may provide a runtime (or a container) for deploying and managing several portlets.
The Consumer is a web service client (typically a portal) that invokes producer-offered WSRP web services and provides an environment for users to interact with portlets offered by one or more such Producers.
The base requirement is learning the URL of the WSDL. While this could be gathered via a number of means, convenient mechanisms include directory services, such as UDDI or ebXML Registry.
The Producer should use Registration as it allows the Producer to associate portlets and their customization data with the registered Consumer. Other possible uses of Registration are for the Producer to provide a custom set of portlets to a specific Consumer, or for the Producer to allow/deny certain capabilities to different Consumers. Registration also allows the Consumer to make the Producer aware of its capabilities, including consumerModes, consumerWindowStates, consumerUserScopes, and customProfileData. See the WSRP Primer for more details. Also see section 3.5 of the WSRP Specification for a discussion of scopes, including Registraton scope, Portlet scope, and Session scope.
In-band Registration provides a convenient method to register. In band Registration optionally allows a Consumer to specify modes (such as Edit, Help, or additional modes), window states, user scopes, and registration properties. See the WSRP Primer and section 7 of the WSRP Specification for more details. However, as the relationship between the Consumer and Producer may be arbitrarily complex, a Producer can offer other means for the Consumer to obtain a registrationHandle. Note that exposing the registration portType does not mean that only in band registration is supported.
A Producer offered portlet is one that is described in the
Consumers cannot explicitly modify the persistent state of such portlets.
A consumer configured portlet is a POP or CCP that has been cloned. Consumer configured portlets can explicitly modify their persistent state.
WSRP Primer and also How can I clone a Portlet?
A Portlet can be cloned either explicitly or implicitly. A portlet is cloned explicitly using the
clonePortlet operation of the
Portlet Management interface. A portlet is cloned implicitly when the Consumer sets the
portletStateChange field in the
cloneBeforeWrite, and the Producer returns a new
portletHandle in the
portletContext. See section 5.2.3 of the
WSRP Primer for a discussion of implicit cloning
and section 6 for a discussion of explicit cloning.
A Producer can that a portlet be explicitly cloned by setting
hasUserSpecificState of the
PortletDescription to true.
Note that setting this to false does not imply that the Portlet is not clonable. See section 5.1.12 of the
Cloned portlets can be destroyed by calling the destoyPortlets operation in the PortletManagementInterface See section 8.4 of the WSRP Specification. In addition, if the cloned portlets were scoped within a registration context, those portlets will be destroyed when the deregister operation is called. See section 7.4 of the WSRP Specification.
Yes. While our examples are in html, as that is the dominant mime type, WSRP does not restrict the mime
types that can be used. See the
MarkupType type in the
WSRP Specification for more details.
First, there should be some level of trust established between the Producer and Consumer during the
registration process. Second, the
getMarkup call usually returns a
markupString in the
If getMarkup returns Binary Content (
markupBinary in the
MarkupContext type), it is up to the Consumer
implementation to interpret this binary data.
The Producer is not transferring anything for execution on the Consumer. Also see
WSRP provides navigational state and session state. See Section 5.1.3 in the WSRP Primer for a discussion on state management. Also see section 3.6 Types of Stateful Information in the WSRP Specification.
Navigational state is analogous to a query string in http: the Producer does not need to hold the transient state, the state is bookmarkable by the user, and there are no timeout issues as there are with sessions. Session state is analogous to HTTP Session state management. The arguments for using one of the other are similar to that with HTTP; Session state makes it simpler to use more complicated data structures but increases memory requirements and requires dealing with session timeouts. See section 5.6 Recommendations in the WSRP Primer.
Yes. In a
getMarkup call, the Producer may optionally return a
which contains a sessionID to identify the session. This should not be confused with a
session which could be established between a user-agent (browser) and a Consumer.The Consumer
should supply this sessionID on future invocations of
performBlockingInteraction in order to not lose state the Producer
is storing for the user's interactions. If a Consumer does not invoke this portlet before this
interval, the Producer may terminate the session associated with the sessionID. For more information,
search for sessionID in the
No, the protocol does not facilitate this, although the producer can point to a larger group session in the http case. See section 3.8 Producer Mediated Sharing in the WSRP Specification. The Producer can also share state by encoding it in the sessionID and/or navigational state.
Caching is supported but not required. The Consumer may support caching by using the
which includes members for expiration duration, scope of cache (for all portlets, or just for this user), and a
validation tag (analogous to an ETag). See section 5.5 on Caching of Markup in the
Portlet customizations can either be stored on the Producer, or returned to the Consumer as
Note that returning
PortletState has a much higher network cost, as the
PortletState then needs to be returned
on many calls. See section 6.2.4 Clone Portlet in the
getPortletProperties roughly map to setValue/getValue in JSR-168 PortletPreferences.
An implementation could map portletProperties to portletPreferences in JSR-168, as WSRP4J does.
No, not in the 1.0 specification. The 2.0 specification is investigating eventing as a means to notify other portlets.
Yes, the best practice is to use a known unique user key for the
userContextKey in the
For example, many portals provide a specific ID for a guest user.
Section 6.1.20 of the
WSRP Specification defines a
UserContext type, which contains a
userContextKey to uniquely identify a
user. This key may map to a unique name in a directory system, e.g. a distinguished name in LDAP.
UserContext also optionally contains
userCategories, which contain Producer defined categories, and a
UserProfile type, which may contain profile information such as employer information and contact information.
See section 6.1.19 of the
WSRP Specification for more information on
Use the Axis WSDL2Java tool or the associated Ant task. Note that the -W parameter should be used to create the stubs with wrapped parameters. For all Java stacks, view the web services toolkit documentation.
Use wsdl.exe. Note that all wsdl files (interface wsdl, bindings wsdl, service wsdl, and schema [xsd]) need to be listed on the command line.