Skip to main content link. Accesskey S
  • Anonymous
  • Log on
  • Help
  • IBM logo
  • IBM Mashup Center wiki
  • All Wikis
  • Home
  • Community Articles
  • Product Documentation
  • Learning Center


Search

Advanced Search
IBM Translated Product Documentation...

 Developing with Mashup Center 3.0.0.1

 Planning, Installing, Configuring Mashup Center 3
 Enterprise Content Management Widgets 4.5.2.1 documentation

 IBM Mashup Center 2.0.0.2 documentation

Tag Cloud

  • 2.0
  • 3.0
  • 3.0.0.1
  • action widgets
  • actions
  • admin
  • administering
  • administration
  • administrator
  • adminstering
  • Ajax
  • AJAX proxy
  • annotate function
  • annotator
  • API
  • api reference
  • benchmark testing
  • catalog
  • configuing
  • configuration
  • configure
  • configuring
  • creating
  • creating mashups
  • data
  • data mashup builder
  • data mashups
  • database
  • DB2
  • demo
  • deploy
  • deployment
  • designing applications
  • developer
  • developing
  • developing mashups
  • developing widgets
  • documentation
  • ECM Widgets
  • editing
  • Enterprise Content Management Widgets
  • errors
  • events
  • examples
  • explanations
  • feed
  • feed mashups
  • feeds
  • format
  • functions
  • getting started
  • greenhouse
  • guide
  • IMS database feeds
  • IMS feeds
  • IMS transaction feeds
  • installation
  • installing
  • mashup
  • MashupHub
  • mashuphub examples
  • mashuphub users guide
  • mashups
  • messages
  • migrating
  • objects
  • operators
  • Oracle
  • pages
  • payload types
  • pdf
  • performance
  • performance tuning
  • planning
  • product
  • programming
  • proxy
  • rest services
  • security
  • service
  • spaces
  • themes
  • troubleshooting
  • tutorial
  • tutorials
  • upgrading
  • user
  • users
  • v1.0
  • v1.1
  • v2.0
  • v2.0.0.2
  • v4.5.2.1
  • video
  • WAR
  • widget
  • widgets
  • widgets
  • wire
  • YouTube
InformationInformation
You are currently viewing machine translated content. IBM translation might be available. Click IBM Translated Product Documentation to see what is available.X


Home > Developing with Mashup Center 3.0.0.1 > Configuring endpoint bindings in widget definitions
Rate this article 1 starRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
(Current editable edition)
Original noneditable edition
Current editable edition
(Original noneditable edition)

Configuring endpoint bindings in widget definitions 

expanded Abstract
collapsed Abstract
This topic describes how to add endpoint binding dependencies to your widget definitions. Endpoint bindings are used to resolve URLs dynamically at runtime in order to prevent end users from getting connection errors when the service is unavailable. Endpoint bindings are also useful when administrators want to change the connection information for a widget without having to modify the metadata of the widget.



This topic describes how to add endpoint binding dependencies to your widget definitions. Endpoint bindings are used to resolve URLs dynamically at runtime in order to prevent end users from getting connection errors when the service is unavailable. Endpoint bindings are also useful when administrators want to change the connection information for a widget without having to modify the metadata of the widget.

When developing widgets, sometimes you may want to define endpoint binding dependencies for services instead of hard coding static URLs to them in catalog.xml, the widget definition file that is packaged with the widget. For example, you might be creating a widget that displays a calendar by connecting to a server where a calendar service is located. You cannot always guarantee that the service will be available. You also know that the administrator may change to a different server in the future. You can create an endpoint binding dependency in your widget's definition file so that the administrator can have control over the connection information without having to modify the widget's metadata.

In order to make use of endpoint bindings, administrators must create a configuration file that maps the dependencies that you define to a specific URL. You can either provide the schema for the XML file in your widget package for them to use, or you can describe how to create the schema in your widget readme file.

Note: This topic only describes how widget developers can create endpoint binding dependencies. For information about how an administrator handles endpoint bindings on the Mashup Center server, see ../com.ibm.help.mashups.admin.doc/mash_admin_endpoint.htm.

Understanding the syntax for endpoint binding dependencies

In simple terms, the syntax for an endpoint binding dependency looks like this:

endpoint://<endpoint_ID>/<relative URL>


The syntax always starts with endpoint:// followed by an ID and a relative path to the service.

The <endpoint_ID> value is an ID that Mashup Center uses to find and replace the value. Typically, this replacement value is a URL that is defined by an administrator in a configuration file on the Mashup Center server. For example, you might define an endpoint binding dependency ID as ID1, and the administrator has defined the endpoint binding value as http://www.ibm.com in the configuration file. Now, at runtime, ID1 gets replaced with http://www.ibm.com. At a later time, if the administrator decides that the widget should connect to a different URL, he simply needs to update the configuration file and not the metadata of the widget.

Note: When creating IDs for endpoint dependencies, always make sure that the ID is unique. Also, since administrators are using your IDs in their configuration tasks, be sure to create meaningful IDs that are easy to interpret.

Next, the <relative URL> value is the remaining part of the information needed for connecting to the service. For example, if the <endpoint_ID> value resolves to http://www.ibm.com at runtime, and the <relative URL> value is software, the widget will connect to http://www.ibm.com/software at runtime.

expanded Article information
collapsed Article information
Category:
Developing with Mashup Center 3.0.0.1, Product documentation, IBM Mashup Center 3.0.0.1 documentation, Product Documentation,
Tags:
developing mashups, spaces, pages, themes, widgets

This Version: Version 1 May 19, 2011 6:31:19 PM by IBM  IBMer

expanded Attachments (0)
collapsed Attachments (0)

 


expanded Versions (1)
collapsed Versions (1)
Version Comparison     
Version Date Changed by               Summary of changes
This version (1) May 19, 2011 6:31:19 PM IBM  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedSubscribe to RSSHelpAbout
  • All Lotus and WebSphere Portal wikis
  • IBM developerWorks
  • IBM Software support
  • IBM Social Business User Experience Blog
  • IBMSocialBizUX on Twitter
  • IBMSocialBizUX on Facebook
  • Lotus product forums
  • IBM Social Business UX blog
  • IBM Collaboration Solutions
  • Recently added feedRecently added
  • Recently edited feedRecently edited
  • Recently added comments feedRecently Added Comments
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Contact IBM
  • IBM Terms of use
  • Wiki terms of use