Sunday, 28 December 2014

Accessing Websphere portal from Remote via XML Access

     1. Install java in remote system
     2. Copy the required files to remote machine(c:\xmlaccesssamples)
      PortalServer_root/base/wp.xml.client/bin/wp.xml.client.jar 
      PortalServer_root/base/wp.base/shared/app/wp.base.jar
      PortalServer_root/base/ wp.engine.impl/shared/app/wp.engine.impl.jar
      PortalServer_root/base/wp.utilities.streams/shared/app/wp.utilities.streams.jar
      AppServer_root/lib/j2ee.jar
     AppServer_root/lib/bootstrap.jar
     AppServer_root/plugins/com.ibm.ws.runtime.jar
    AppServer_root/plugins/com.ibm.ws.emf.jar
    AppServer_root/plugins/org.eclipse.emf.ecore.jar 
    AppServer_root/plugins/org.eclipse.emf.common.jar
    AppServer_root/plugins/com.ibm.ffdc.jar

    PortalServer_root\bin\xmlaccess.bat


1   3. Edit Xmlaccess.bat. Change classpath to point to current directory

@echo off

set JAVA="C:/IBM/WebSphere/AppServer/java/bin/java"

set CURRENT_PATH="c:/xmlaccesssamples"
set cpath=%CURRENT_PATH%\com.ibm.ws.runtime.jar
set cpath=%cpath%;%CURRENT_PATH%\bootstrap.jar
set cpath=%cpath%;%CURRENT_PATH%\com.ibm.ws.emf.jar
set cpath=%cpath%;%CURRENT_PATH%\org.eclipse.emf.ecore.jar
set cpath=%cpath%;%CURRENT_PATH%\org.eclipse.emf.common.jar
set cpath=%cpath%;%CURRENT_PATH%\com.ibm.ffdc.jar;
set cpath=%cpath%;%CURRENT_PATH%\j2ee.jar;
set cpath=%cpath%;%CURRENT_PATH%\wp.xml.client.jar;
set cpath=%cpath%;%CURRENT_PATH%\wp.base.jar;
set cpath=%cpath%;%CURRENT_PATH%\wp.engine.impl.jar;
set cpath=%cpath%;%CURRENT_PATH%\wp.utilities.streams.jar;

%JAVA% -classpath %cpath% com.ibm.wps.xmlaccess.XmlAccess

4.Open Command prompt and navigate to c:\xmlaccesssamples. Run xmlaccess.


Click here to  download files

No comments:

Post a Comment