.*iPhone.*
xdime
pdaview
Apple
Apple iPhone
.*Android.*
xdime
pdaview
Google
Google
.*BlackBerry.*
xdime
pdaview
RIM
RIM
.*iemobile.*
xdime
pdaview
Microsoft
Internet Explorer
Warehouse for various notes, scripts, code samples, tips/tricks, etc. relating to different technologies like WebSphere Application Server (WAS), WebSphere Portal, Java, Java EE, DB2, etc.
Showing posts with label Mobile Portal Accelerator. Show all posts
Showing posts with label Mobile Portal Accelerator. Show all posts
Friday, October 21, 2011
How to midy Supported Client List using XML Access
There are 3 steps to changing the supported client list using XML Access (xmlaccess) utility:
1. Take export of the entire portal using the following command and input file:
Command
Export File
2. Create Update_SupportedClients.xml file as follows:
Import File
Change the values of the "objectid" from the file (Result_File.xml) exported in the step 1 above. Change the "ordinal" and any other value as per your requirements.
3. Import the changes into Portal using following command:
Command
1. Take export of the entire portal using the following command and input file:
Command
xmlaccess -in Export.xml -user userid -password password -url portal.example.com:10039/wps/config -out Result_File.xml
Export File
<?xml version="1.0" encoding="UTF-8"?>
<request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
type="export"
export-users="false">
<portal action="export"/>
</request>
<request
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd"
type="export"
export-users="false">
<portal action="export"/>
</request>
2. Create Update_SupportedClients.xml file as follows:
Import File
<?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">
<portal action="locate">
<client action="update" domain="rel" markup="html" name="Default HTML Client" objectid="M_0000000000000000000000C010" ordinal="75">
<useragent-pattern>.*</useragent-pattern>
</client>
<client action="update" domain="rel" markup="xdime" name="Default XDIME Client" objectid="M_VBL70VO20G0000I1D5CPPM3043" ordinal="50" uniquename="mwp.default.xdime.client">
<useragent-pattern>.*</useragent-pattern>
</client>
</portal>
</request>
<request xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_1.4.xsd" type="update">
<portal action="locate">
<client action="update" domain="rel" markup="html" name="Default HTML Client" objectid="M_0000000000000000000000C010" ordinal="75">
<useragent-pattern>.*</useragent-pattern>
</client>
<client action="update" domain="rel" markup="xdime" name="Default XDIME Client" objectid="M_VBL70VO20G0000I1D5CPPM3043" ordinal="50" uniquename="mwp.default.xdime.client">
<useragent-pattern>.*</useragent-pattern>
</client>
</portal>
</request>
Change the values of the "objectid" from the file (Result_File.xml) exported in the step 1 above. Change the "ordinal" and any other value as per your requirements.
3. Import the changes into Portal using following command:
Command
xmlaccess -in Update_SupportedClients.xml -user userid -password password -url portal.example.com:10039/wps/config -out Result_File.xml If everything went well then you will see success message at the end.
Labels:
Mobile Portal Accelerator,
MPA,
WebSphere Portal,
WEMP
Subscribe to:
Posts (Atom)