Using XML Access to export and import Portal pages

0 comments



XML Access (XML Configuration Service) is a command-line batch-processing utility for exporting & importing various portal configurations. In this article we will learn how to export and import portal pages using this utility.
  • Login as administrator in WebSphere Portal Server Console.
  • Navigate to Administration -> Portal User Interface -> Content Root -> Home
  • Click on the Export Page icon as shown below for the portal page Web 2.0 Introduction.
Portal Console

Below popup window will open. Click Yes to Export the page Hierarchy of Web 2.0 Introduction portal page.

Popup window

Click Save to save the exported file to your local file system.

Popup window

Page is exported successfully as shown below.



Click Close to close the window.

Now Delete the Web 2.0 Introduction portal page using delete icon shown in the image below.

Portal Console

Click Ok.

Popup window

Click Home to confirm that the selected page is deleted.

Portal Console

Now to recreate the same Portal Page we will import the XML which was exported for that we navigate to
Administration -> Portal Settings -> Import XML -> Browse -> Import as shown below.

Portal Console

You will receive successful message as shown below once the import process is successfully completed.

Portal Console

and now you see that the Home -> Web 2.0 Introduction is recreated again.

Portal Console


Same can be done using XML Access using the commands line :

Copy *.xml files from the source directory where the exported XML was saved C:\XMLAccess to C:\temp
for full portal export.
C:\IBM\WebSphere\PortalServer\bin>xmlaccess.bat -user wpsadmin -pwd wpsadmin -url http://localhost:10040/wps/config -in export_full_portal.xml -out full_exported_config.xml
So output of the above command is full_exported_config.xml.

Command Prompt

Look for successful message as shown above after the import is completed.

For partial page export
C:\IBM\WebSphere\PortalServer\bin>xmlaccess.bat -user wpsadmin -pwd wpsadmin -url http://localhost:10040/wps/config -in export_test_page.xml -out partial_exported_config.xml
So output of the above command is partial_exported_config.xml

Command Prompt

Look for successful message as shown above after the export is completed.

For partial page import
Now before doing the partial import you can delete the Web 2.0 Introduction Portal page and then you can execute the command mentioned below :
C:\IBM\WebSphere\PortalServer\bin>xmlaccess.bat -in partial_exported_config.xml -user wpsadmin -pwd wpsadmin -url http://localhost:10040/wps/config

Command Prompt

Look for successful message as shown above after the import is completed.

Also see

Generating a complete XML access export of a Portal Configuration

No comments:

Post a Comment

Recent Posts

Popular Posts

© 2011-2019 Web Portal Club