Saturday 22 October 2011

XMLAccess to deregister the web modules from WebSphere Portal Server.

This is an add-on of previous post 'How to deploy an EAR file on WebSphere Portal Server?' The same way we can write XMLAccess script to deregister the portlets/web modules (.war file) from WebSphere Portal Server. Following is a sample xml file for doing the same:

<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
type="update" create-oids="true">
<portal action="locate">
<web-app action="delete" uid="<Pur here correct Web Module id>"/>
portal>
request>

Note: 1. you can add multiple tags to remove the web modules (.war files) from portal server. For each web  module it will be a separate tag. 

          2. Put ‘delete’ as a value of action attribute of tag.



No comments:

Post a Comment