Portal application sync using Portal APIs

Hi All,
I am trying automate the EBCC sync process using Portal APIs. I think it's very
common since it avoids the manual sync process & helpful in creating batch process
using Ant. Is anybody did this before??, please let me know if you have any suggestions
etc.
Many thanks
Zulfi

Many thanks Deepak, It works now...
Cheers
Zulfi
"Deepak Shetty" <[email protected]> wrote:
>
should not url be
http://localhost:7501/portalAppDataSync/DataSyncServlet ?
also what does the server side log show? are you able to connect to your
datasync
servlet
i am not sure whether this is a weblogic error caused due to some other
reason
i have only done this with 4.0 not 7.0 so im not sure if this works
bye
deepak
"Zulfiqar" <[email protected]> wrote:
I am posting the Ant script since it has been deleted by the system..don't
know
why.
     <property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
     <property name="deploy.system.username" value="system"/>
     <property name="deploy.system.password" value="password"/>
     <property name="deploy.syncmode" value="refresh-from-client"/>
     <property name="url" value="http://localhost:7501/portalAppDataSync"/>
     <property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
     <property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
     <property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
     <target name="Sync">
          <java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
               <arg value="-root"/>
               <arg value="${basedir1}/portalApp-project"/>
               <arg value="-user"/> <arg value="${deploy.system.username}"/>
               <arg value="-password"/> <arg value="${deploy.system.password}"/>
               <arg value="-mode"/> <arg value="${deploy.syncmode}"/>
               <arg value="-url"/> <arg value="${url}"/>
               <classpath>
                    <pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
               </classpath>
          </java>
     </target>
Cheers
Syed
"Zulfi" <[email protected]> wrote:
Thanks Deepak, i tried on this in Portal server 7.0 by writing the
Ant
script which
is attached here. It gave some errors related to XMLMarshalling. The
Ant script
is,
     <property name="basedir1" value="C:/bea/user_projects/sourceDomain/beaApps"/>
     <property name="deploy.system.username" value="system"/>
     <property name="deploy.system.password" value="password"/>
     <property name="deploy.syncmode" value="refresh-from-client"/>
     <property name="url" value="http://localhost:7501/portalAppDataSync"/>
     <property name="basedir" value="C:/bea/user_projects/sourceDomain/beaApps"/>
     <property name="ebcc.lib.dir" value="C:/bea/weblogic700/ebcc/lib"/>
     <property name="weblogic.lib.dir" value="C:/bea/weblogic700/server/lib"/>
     <target name="Sync">
          <java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
               <arg value="-root"/>
               <arg value="${basedir1}/portalApp-project"/>
               <arg value="-user"/> <arg value="${deploy.system.username}"/>
               <arg value="-password"/> <arg value="${deploy.system.password}"/>
               <arg value="-mode"/> <arg value="${deploy.syncmode}"/>
               <arg value="-url"/> <arg value="${url}"/>
               <classpath>
                    <pathelement location="${weblogic.lib.dir}/weblogic.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/jdom.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/HTTPClient.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/p13n_system.jar"/>
                    <pathelement location="${ebcc.lib.dir}/ext/p13n_util.jar"/>
               </classpath>
          </java>
     </target>
You can also see the detailed information on the attached doc. Please
let me know
if anybody has any clue.
Thanks
Zulfi
"Deepak Shetty" <[email protected]> wrote:
For portal 4.0 i think
<java fork="true" classname="com.bea.p13n.management.data.DirectoryDataSync">
<arg value="-root"/>
<arg value="${basedir}/ebcc/portal-project/application-sync"/>
<arg value="-user"/>
<arg value="system"/>
<arg value="-password"/>
<arg value="${deploy.system.password}"/>
<arg value="-mode"/>
<arg value="${deploy.syncmode}"/>
<arg value="-url"/>
<arg value="http://${deploy.bindaddress}:${deploy.port}/portalDataSync/DataSyncServlet"/>
<sysproperty key="bea.home" value="${deploy.bea.home}"/>
<classpath>
<pathelement location="${deploy.wls6.home}/lib/weblogic.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/ext/jdom.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/ext/HTTPClient.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/p13n_system.jar"/>
<pathelement location="${deploy.wlp4.home}/lib/p13n/ejb/p13n_util.jar"/>
</classpath>
</java>
inside an ant target should be what you would want to do
HTH
deepak
"Zulfiqar" <[email protected]> wrote:
Hi All,
I am trying automate the EBCC sync process using Portal APIs. I think
it's very
common since it avoids the manual sync process & helpful in creating
batch process
using Ant. Is anybody did this before??, please let me know if you
have
any suggestions
etc.
Many thanks
Zulfi

Similar Messages

  • How to confirm if Web Logic Portal Application is using NETUI PageFlow?

    How to confirm if Web Logic Portal Application is using NETUI PageFlow?

    One easy way is:
    View Page Source via Browser and search for Javascript method getNetuiTagName.

  • POrtal application object - Abstract Portal Component, Location dropdown.

    Hi
    I am creating a Portal application project in NWDS.
    Inside this project I am creating a POrtal application object -> Abstract Portal Component.
    Now, there is a dialigue box which appears, prompting for object name and package.
    In the same dialogue box there is an additional dropdown box for Location.
    It has two values "api" and "core".
    What does these mean.
    Thanks

    The location of the new Java class file determines whether other applications can reference the classes. Generally, the choice is only meaningful when defining services and the interfaces to make available to those applications the reference the service.
    You can specify one of the following:
    ■      Core (default): Places the file in the src.core project directory, and makes it private.
    ■      API: Places the file in the src.api, and makes it public.
    Regards,
    Khushboo

  • Could not find portal application com.sap.portal.umeregistration

    Hi friends,
    We have migrated the portal from EP6 SP2 to NW'04 SPS 18. KMC and the portal migration has been done successfully. Now i can login with my ID in the new portal. But after migration some of the iviews stopped working and I am getting the error
    "Page could not create the iView."
    on the screen. In the log file the root cause is
    "Caused by: com.sapportals.portal.prt.core.broker.PortalApplicationNotFoundException: Could not find portal application com.sap.portal.umeregistration"
    Do you have any idea?
    Regards,
    Nilesh Patil

    Bhupesh,
    In EP7.0, you can access the log files in a different way.
    1) Directly accessing the log file on the server. location is <drive>:\usr\sap\<SID>\<instance_number>\j2ee\cluster\server0\log\defaultTrace.<n>.trc
    2) Accessing it through Visual Administrator. Go to the Server -> Services -> Logviewer
    3) Accessing the log file through Netweaver Administrator from Portal. URL for Netweaver Administrator is http://<Portal Server>:50xxx/nwa -> Login with Portal user/pass -> Monitoring -> Logs and Traces -> select predefined view -> Default trace.
    I hope this helps.
    Regards,
    Gowri

  • Error when creating record from portal into MDM using MDM API's

    Hi All,
    When trying to create a new record from Portal we are getting the below error. It is working fine till yesterday.
    We are using MDM API's from webdynpro java for creating.
    What could be the reason for this. Not sure whether this error is ocuring for all the users or for single user.
    "Exception: CommandException com.sap.mdm.commands.CommandException: com.sap.mdm.internal.protocol.manual.ServerException: Database command execution error. A SQL statement failed to execute. The actual error may have been written to a log file."
    Please help to resovle this.
    Thanks
    Satish

    Hello Satish
    Suppose your Portal was upgrated
    if it right -  search and deploy new mdm packages
    Regards
    Kanstantsin

  • IView from portal application in SAP Portal 7.3

    Hi,
    I´m starting with SAP Portal 7.3 and I have developed a hello word JSPDynpage with NWDI 7.3.
    I have successfully deployed it to the server and I can see my application under Portal applications, and do a success preview.
    But I´m not able to create an iView from this portal component.
    How do you create an iView from a deployed custom portal component?
    In other words, what is the alternative way of u201Cnew iView from paru201D in the new portal version?
    Thanks a lot.

    Dear Alberto,
    Check this post.
    Might help.
    PCD content of Netweaver 7.0 available in Netweaver 7.3
    Kind Regards
    /Ricardo Quintas

  • Identifying application name using Portal API

    Hi
    I have a Web Dynpro Java component that is being used in two different applications. I'm just wondering if there's a way to programmatically tell which application it was that called the component when a user enter certain input?
    Regards,
    Revathi Raju.

    Hi Revathi Raju
    There is no such API. If you need such information in your component you have to organize the logic by yourself. There are several possible ways to add such logic to the child component:
    1. Use interface method with parameter which identifies a parent. Example: setMode(String mode). Parent component must invoke setMode() with concrete value.
    2. Use several interface windows (interface views). Each interface view will mean specific use case of your component. Interface view's inbound plugs will help you to store the application mode in your component. Parent will embed the concrete interface view. The method also allows to provide different view layouts for each parent. In in other case it requires some routine work to clone the view layouts.
    3. Use single interface view, but with several inbound plugs. Parent component will fire the concrete plug.
    Personally I like the last methods the most, because it postpones the component mode determination to the WebDynpro navigation phase.
    BR, Siarhei

  • Gain access to portal application code in portal 7.3

    Hello,
    I'm particularly interested in a code of tclmitsamuimain~wd floorApp, this is a web dynpro (probably) application that displays the current active sessions of the users in portal.
    since the previous API's to get such information are deprecated, i tried to look for the WAR of the application, perhaps it wont be encoded, but unfortunately it is.
    Is there another standard way of getting access to such a code? or should i go to the idea of decompiling the classes ?
    thanks!

    Hi Eli,
    In general, decompiling SAP classes often brings you further, even if in WD cases this is less straight forward than in classical cases, as the model-driven approach does not always produce easy-to-follow implementations. Nevertheless, at least to get the insight, it makes sense.
    SAP (normally) does not deliver the source code of the core Java implementation of the WAS / the portal / ...
    Hope it helps
    Detlev

  • ABAP Webdynpro reports in portal do not use portal theme for some elements

    Hi,
    I have an ABAP webdynpro screen which uses, amongst other things, a date navigator and drop down lists.  All aspects of the portal theme seem to be picked up by the webdynpro except the date navigator and drop down lists.  They don't even use the SAP standard ones.  They display as plain text using TimesNewRoman font and not the ones specified in the theme.  They also do not use any of the colours in the theme.  All tables and fields etc are all themed ok.  Any ideas how I can fix this?
    Regards
    Cindy

    Could there be a lockal cache issue?
    Clear you browser cache via Tools > Internet Options >  Delete History
    Try again after clearing the cache, if that doesn't help then try downloading the Internet Explorer Developer Toolbar:
    http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&displaylang=en
    ...use this tool to get details about the css and classes aplied to the objects and use it to open a OSS message if it is a SAP WebDynpro application of talk to your developers if it is a Custom WebDynpro app.
    Good Luck,
    Benjamin Houttuin

  • Using ActiveX controls in GUI application, which uses TestStand API

    When using ActiveX controls in TestStand Operator Interface GUI,
    CVI reports User Interface Library error no.-143:
    "ActiveX control Error" on attempt to load panel, which contains ActiveX controls.
    The same code, which takes care of user interface, but not references
    TestStand ActiveX API (i.e. not creates TS Engine), works properly.
    What's wrong?

    Hello again Misha,
    Sorry about my previous answer, I overlooked the fact that you were saying this error was caused by placing ActiveX controls in your Operator Interface (OI) GUI (as my example shows I thought the problem was with GUIs displayed from step code modules).
    Nevertheless, the problem is still being caused by the same issue, and is solved in a similar fashion. The source for the CVI OI initializes the TestStand engine before it loads/displays the UI panels. The calls to initialize the engine seem to be CoInitializing the main GUI thread as multithreaded apartment (MTA) mode whereas you will need it to be single threaded apartment (STA) mode in order for the ActiveX control container to work properly. The TestStand engine is compatible with either modes, but only one can be in place at a given time. If we CoInitialize the OI's main GUI thread as STA this will solve the problem (the subsequent attempts of setting it to MTA will fail, but again this is ok since the engine is compatible with STA).
    In order to perform this functionality you will need to put a call to CoInitializeEx in the main function of the CVI OI source (this will also require that you #include the "windows.h" file at the top of the source also). Here is what the main function in your main.c file for the CVI OI will look like once you have done this:
    int main(int argc, char **argv)
    int retval = -1;
    sArgc = argc;
    sArgv = argv;
    if(InitCVIRTE(0, argv, 0) == 0) /* Initialize CVI libraries */
    goto Done; /* out of memory */
    // Intialize main GUI thread as STA to prevent other attempt to make it
    // MTA, which will not allow ActiveX controls to be used.
    CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
    /* initialize the test engine */
    if(!InitEngine())
    goto Done;
    if(!InitErrorDialogStrings())
    goto Done;
    if(!InStandaloneExecutable() && !DisplayRunningInEnvironmentWarning())
    goto Done; // get out now
    if(!ProcessPreLoginCmdlineArgs())
    goto Done;
    if(!CfgFile_Load())
    goto Done;
    if(!CfgFile_RestoreOptionSettings())
    goto Done;
    if(LoadGUIPanels() < 0)
    goto Done;
    if(!InitFileQuickList())
    goto Done;
    /* set initial gui state */
    if(!InitGUI())
    goto Done;
    RunUserInterface();
    retval = 0; /* normal exist status */
    Done:
    /* cleanup */
    SeqFileList_DeleteAllSequenceFileRecords();
    ExeList_DeleteAllRecords();
    IconList_DeleteIconList();
    SaveAndCleanupFileQuickList();
    CfgFile_SaveOptionSettings();
    CfgFile_WriteAndCleanupForExit();
    AdaptList_DeleteAdapterList();
    DestroyToolMenus();
    CloseEngine();
    FreeErrorDialogStrings();
    return retval;
    Note: Remember to #include "windows.h" at the very top of the main.c file and to include ole32.lib in your project file list in order to link in the definition for CoInitializeEx.
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • OIM Client application development using OIM API, when user password is not available

    I am developing a cleint application for OIM. The client application is a set of services, running on a separate server from where OIM is running.
    The OIM version used is 11gR2.
    As I look into the oimClient object, the login method takes username and password. As my application is in an SSO environment, I do not have the password for the user, and just have the user's login ID.
    If I am correct, the tcUtilityFactory allowed a digital signature option, to support scenarios like the above.
    Question is, does oimClient support similar functionality? I did not find any examples in the Oracle documentation.
    I will appreciate if someone can confirm a similar usage and provide me some sample code and configuration details.
    Thanks.
    -subrata

    Check: http://www.ateam-oracle.com/authenticating-oim-apis-without-end-users-password/
    -Bikash

  • A query in an Application that uses Bluetooth API..

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

    Hi all,
    Please see the Bluepad application using bluetooth which connects a server & a client.
    now I want to connect multiple clients with a server. but i m not getting what to change in the code. even though u connect 2 clients, the server accepts the first client only.
    u can see the Bluepad application in
    C:\SonyEricsson\JavaME_SDK_CLDC\PC_Emulation\WTK2\apps\BluePad_P9xx ( if u ve installed SonyEricsson sdk also refer BluetoothDemo in apps in which we can connect multiple clients to a server. but its 1 way communication means ony Server is sending some data to its clients but here in BluePad we r doing 2 way communication means Server & Client both send some data (byte[]) to each other.)
    or
    get Sony Ericsson SDK from sonyericsson.com
    see
    http://developer.sonyericsson.com/thread.jspa?messageID=106424&#106424
    So plz help me how to connect multiple clients with a server? not only connect but i want to do 2-way communication.
    means in that application whatever I draw in 1 device should be displayed in other devices.
    Thanks & Regards,

  • Message Board taskflows - useless in custom WebCenter Portal application?

    Hi,
    I am developing custom Webcenter portal application. I have added Message Board - wall viewer taskflow (/oracle/webcenter/peopleconnections/wall/controller/taskflows/WallViewer.xml#WallViewer) to the page. In binding parameters, I can set parameters like userId (I have set it to #{securityContext.userName}). After that each user can post to the wall and see his previous entries. But how can I let my user see posts from other users?
    I have connected from my portal to WebCenter Spaces via Webservice API. Created group space named 'myspace' with API and added users as members. I also set my custom portal application to use the same database as Spaces application, to be sure that group spaces I create and entries from Message Board will be stored in the same database.
    But when I try to use binding paramter spaceName (I set it to #{'myspace'}) I get error message "Failed to find the space of the message board."
    So how can I display messages from group space in my custom portal via Message Board taskflow? In custom portal I only managed to achieve situation, where single user can only see his own posts, what makes this taskflow pretty useless

    I did further research, maybe this will give you a clue:
    I browsed into code of Message Board taskflow (peopleconnections-view.jar -> oracle.webcenter.peopleconnections.wall.controller.taskflows.WallViewer.xml). The first activity in this taskflow is method call - checkGroupSpaceName, which execures method bound as #{pageFlowScope.WCPeopleConnWallViewerBean.checkGroupSpaceName}
    I decompiled oracle.webcenter.peopleconnections.wall.internal.view.WallViewerBean class. In checkGroupSpaceName method there is a line
    scope = ServiceContext.getContext().findScope(spaceName)
    On the jspx page where Message Boards taskflow is added, I've put a line:
    <af:outputText value="#{serviceCtx.allScopes}" id="pt_ot2"/>
    which displays as output:
    [Scope[name=defaultScope, guid=s8bba98ff_4cbb_40b8_beee_296c916a23ed]]
    So clearly Webcenter does not "see" the scope of any space, especially it doesn't see "myspace" scope.
    Any ideas what do do?

  • Portal application can't read request info

    hi all,
    i use  portal application for change portal user's infos.but when i sent request info,
    request.getServletRequest().getInputStream() method is cutting my sending line after 90. character.
    in R3 side i use HTTP_POST function and fill request info (table paramater).
    i tried to send 2 line(less than 90 character) in request info, but i can't read second line in java code.
    Is IPortalComponentRequest accept only 90 character ?
    how can i solve this problem , any idea ?
    my code is below, variable "str" is filling only first 90 character;
         protected void doOnNodeReady(
                   IPortalComponentRequest request,
                   IEvent event) {
         String str = "";
         try {
              InputStream is = request.getServletRequest().getInputStream();
              InputStreamReader isr = new InputStreamReader(is);
              int c;
              while ((c = isr.read()) > -1) {
              str = str + (char) c;
                } catch (java.io.IOException ex) {
                 str = "Error accessing input stream";
    thanks

    New discovery...If I shut down all instances of IE on my machine, then reopen my test form, it works. Once. The second time I try it I get the same peculiar behavior again, until I again shut down all instances of IE.

  • Portal application without workshop

    Hi,
    Can anyone tell me how to create a portal application without using weblogic workshop but by using IDEs like JBuilder, eclipse etc. Please explain if any plugins available.
    Thanks in Advance....

    I'm afraid it's not easy to build WebLogic portal applications without workshop. But work is under progress to build plugins for Eclipse that will enable developers to build portal applications (Pollinate project- you can find more information on Apache website).
    Seenu.

Maybe you are looking for

  • WC_Spaces Managed server not showing up in AdminServer

    I am trying to install the webCenter spaces managed server. I installed the schema to database and extended my existing domain with the spaces product and I have all the products that you have to install with it, but when I start the admin server the

  • Importing music and videos from itu

    Hi,I just recently threw in the towel with the ipod after I went though 5 of them in under 2 years. So I decided to switch to the Creative Zen vision M, and I was wondering if anyone knew if there was a way I could get the songs and music videos that

  • For some reason I cant sync my ipod!

    i have windows 7 and keep getting an error message that itunes stopped working and it shuts down how can i fix this?

  • Link to URL

    Hi, I need to create a button that when called, opens a URL. This URL is a Web Report created by BPS_WIF0. I know the URL, but I want to avoid hardcoding this url in the abap report because it's different in each server.  Is this URL stored in a spec

  • JVM Launcher error

    I have installed Limewire on my winXP machine, which uses java 2 runtime (SE v1.4.2_04). Along with Limewire, it installs an adware program called LimeShop. When I attempt to uninstall LimeShop, I get the following popup error from the JVM Launcher: