Adding a new service to service list

About this task
BTT Web 2.0 On-Demand Workplace provides a very convenient way to add this new service to the existing service repository. The only thing you need to do is to develop a new widget and configure the WidgetCatalog.xml file and deploy the widget to Service.xml file.
  1. Develop a widget as a new service first. See How to develop a new widget for more information.
  2. Configure the WidgetCatalog.xml.
  3. Configure the Service.xml
Example
Following is an example of adding a new service:
  1. The new widget definition file, BTTHTMLWgt.xml, is as follows:
    <iw:iwidget name="simpleBTTHTMLWgt" xmlns:iw="http://www.ibm.com/xmlns/prod/iWidget" iScope="simpleBTTHTMLWgt"  supportedModes="view edit refresh close max collapse" mode="view">
        <iw:resource uri="BTTHTMLWgt.js" />
        <iw:itemSet id="attributes" private="true">
            <iw:item id="url"  value="http://www.ibm.com"/>
            <iw:item id="height" value="300"/>
        </iw:itemSet>   ...
    </iw:iwidget>
  2. Configure the WidgetCatalog.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <entries xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btt.cn.ibm.com/61/Web20" xsi:schemaLocation="http://btt.cn.ibm.com/61/Web20 ../BTTWeb20/schema/WidgetCatalog.xsd ">
    	...
    	<entry id='simpleBTTHTMLWgt' definition='../widget/web1.0/BTTHTMLWgt.xml'></entry>
    	...
    </entries>
    Note: The name attribute in the widget definition fileBTTHTMLWgt.xml is mapped to the entry id of WidgetCatalog.xml to initiate the widget.

    Refer to WidgetCatalog.xml in the reference section for more information.

  3. Configure the Service.xml file. Insert the new service to the target node of the existing tree:
    <?xml version="1.0" encoding="UTF-8"?>
    <ServiceList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://btt.cn.ibm.com/61/Web20" xsi:schemaLocation="http://btt.cn.ibm.com/61/Web20 ../BTTWeb20/schema/Service.xsd ">
    		...
    		<Service id="1.2" name="transfer" desc="transfer" logo="theme/servicelogo/navlogo.gif">
    			<Widget name="simpleBTTHTMLWgt">
    				<attribute name="url" value="Request?&amp;dse_applicationId=-1&amp;dse_pageId=2&amp;dse_operationName=displayPageOp&amp;dse_errorPage=menu.jsp&amp;dse_processorState=initial&amp;pageName=transfer.jsp" />
    			</Widget>
    		</Service>
    		...
    </ServiceList>
    Note:
    1. The name attribute of the widget is the identical one with that in the widget definition file.
    2. The attribute set of the widget is the subset of that defined in the widget definition file. The ones defined in the widget definition file will be overridden.
    Refer to the Service.xml for more information.
What to do next
Now, a new service is added to the existing service repository. It will be displayed in the service list and an end-user can subscribe it.