What is Portal Service?

Hi All,
       I want to use Portal Service in my WebDynpro Application. I don't know any thing about this. Can any body please give me some info about what is portal service and how to use Portal Service...
          Actually my requirement is to store data application wide. When i am searching in the forum for the same i found an useful link for this.
Re: Application wide data
         In that Ravi Pasupathy answered for this and proposed a solution using Portal Services.
Thanks in Advance,
VJR.

Hi,
Portl services are used to integrate webdynpro app with Portal, You can access portal data or features using this portal services.
see this
Re: how to make use of Portal service in the web dynpro application
Regards,
Naga

Similar Messages

  • What is the lifecycle of Portal Service

    Hi,
    I am thinking in building a Protal Service as a bridge to Stateful Session EBJ.
    so i have two question:
    1. what is the lifecycle of Portal Service?
       When the PRT destroy the Portal service
    2. what is the relation between Portal components and Portal Service and User.
    For example i have to two user
    that used the same Portal Component whitch used Portal Service to creat Stateful Session EJB.
    are two users useing the same ejb client?

    Hi Raja,
    a service is started with the portal startup, if the "startup" property is set to true, or, if not, a service is started on request. It can be restarted manually via the portal interface (System Administration -- System Configuration -- Service Configuration). So a service is destroyed when the portal stops or if the service is restarted manually (then the old instance gets destroyed and a new one gets created).
    A service behaves like a singleton, so you access the same instance, independent of users and components they come from; if you want to differentiate, you have to implement the differentiation by yourself.
    Hope it helps
    Detlev

  • What is the procedure for creataing a portal service

    Hi All
    an any one tell, What is the procedure for creataing a portal service inorder to establish a connection to Netweaver from Java.
    Regds
    Phanikumar

    Hi,
    I dont understand exactly your use case -- "connection to NetWeaver from java -- but a portal service is simply a portal application that contains a single java class that inherits from IService.
    The NWDS has a wizard for creating a new portal object, and one type of object is a service. The wizard in this case creates a public interface and a private implementation of your service.
    For more information, see http://help.sap.com/saphelp_nw04/helpdata/en/df/e6b74253ffda11e10000000a155106/frameset.htm.
    Hope this helps.
    Daniel

  • Error during startup of portal service after SPS11

    Hi Guys,
    After installation of SPS11 to our 2004s portal system we have problem with startup of our Portal service.
    Before SPS11 we had SPS9 system and everything was working correctly.
    Our service is connecting to Database during its initialization.
    This is part of our code:
    Properties p = new Properties();
    p.put("java.naming.factory.initial", "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    try
         Context ctx = new InitialContext(p);
         _ds = (DataSource)ctx.lookup(POOLNAME);
         Connection conn = _ds.getConnection();
         conn.close();
         LogWriter.traceInfo(LogWrapper.trace,"Connection established.");
    } catch (NamingException ex)
    The error is:
    #1.5#000802A2BF4A00580000038200003E3000042C1F016BDC9A#1174411586934#System.err#sap.com/irj#System.err#Guest#2####a813ff20d70611dbbcd7000802a2bf4a#SAPEngine_Application_Thread[impl:3]_27##0#0#Error##Plain###com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object not found in lookup of SABMILLER.
         at com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at com.sap.engine.services.jndi.implclient.ClientContext.lookup(ClientContext.java:344)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:254)
         at com.sap.engine.services.jndi.implclient.OffsetClientContext.lookup(OffsetClientContext.java:271)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at cz.sap.statemanagement.StateLogRetriever.<init>(StateLogRetriever.java:73)
    The probleam appears only during startup of portal!
    If you deploy service on running portal it is started without any problems.
    We tried to apply note (Note 960199 - 2-Phase Init Mechanism for Portal Services is Deprecated) but without success.
    This is modification of our portalapps.xml as described in Note.
        <service name="StatemanagementLogService">
          <service-config>
            <property name="className" value="cz.sap.statemanagement.StatemanagementLogService"/>
            <property name="startup" value="true"/>
            <property name="twophaseinit" value="always"/>
          </service-config>
    Please could you help us with this problem?
    Anyone has an idea what is wrong?
    Thanks a lot
    Ondrej

    Hi Nirmal,
    thanks you for your quick response. This is what the installer returns when I use your suggested command:
    Mar 7, 2012 2:35:56 PM [Error]: The parameter jce_policy_zip in externally supplied configuration is invalid.
    I looked up the parameters for the STARTUP:
    rootdir [guiport] [httpport] [guistart] [guimode] [config] [sid] [instanceNr]
    Thus the jce_policy_zip is not a valid parameter.
    However, after deleting the file specified I could just run STARTUP again and this worked.
    Thanks
    Marcel
    Edited by: M. Rabe on Mar 7, 2012 2:57 PM

  • Error while creating a Portal Service

    Hi All,
    I have created a portal service as illustrated in the following link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0b57e590-0201-0010-a29f-abd37a436f54
    I get the following error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : SnowServiceAccess.SnowComponent
    Component Name : SnowServiceAccess.SnowComponent
    com.sap.portal.tutorial.service.ISnowService.getAllStationPictures()Ljava/util/Hashtable;.
    Exception id: 06:51_10/05/06_0001_604684950
    See the details for the exception ID in the log file
    Any idea ???
    Thanks,
    Shiraz

    Shiraz,
    can you let me know what is the exact exception, that is logged in the log file ?
    May be you might have missed out some jar files.
    kiran

  • Consuming a webservice from a portal service...

    Hello all,
    I am playing around with the example code for imlimenting a federated search (found in the km section) and was trying to use a webservice call to google as an example of a the federated search.
    I generated a client side portal service (from the goodle wsdl) and I am now trying to access it form the search virtual index service I wrote...
    I someone can point me in the correct direction that would be great... I was looking at the following blog Accessing an External Web Services in Portal which helped setup the webservice but I find the code used to access it does not help. For one thing I can not find the IServiceName class anywhere in the portal or j2ee javadoc or jat files.
    Cheers,
    D.

    Hi ,
    I am getting the problems while consuming the web services in portal component.
    I am not able to call the methods of web services.
    look at my code.
    IListServiceName client=
    (IListServiceName) PortalRuntime.getRuntimeResources ().getService (IListServiceName.KEY);
         GetListResponse glr= client.getList();
    frist line is working fine.
    In my web service i have a method called GetList().
    Any way i have to call that method and get the result.
    But there are other classes which are automatically generated when i consumed the web service, like      GetListResponse().
    When i try to call client.GetList(); it gives the error at run time, No error in the code but the errors are coming at run time.
    Where is the problem? other things like proxy settings, etc i have done.
    What could be the problem? Can any one suggest.
    Regards
    Bala

  • Error in Portal service

    Hi All,
    i am trying to connect Crystal report  through portal service.
    but getting following error,
      Portal Runtime Error
    An exception occurred while processing a request for :
    iView : pcd:portal_content/com.xyz.fol.fxyzcrystalreports/com.xyz.rol.rcrystalreports/crystal_iview_COPY_0_0
    Component Name : com.sap.portal.appintegrator.sap.CrystalReport
    Exception in SAP Application Integrator occured: Unable to process template 'apsuser=<MappedUser>&apspassword=<MappedPassword>&apsauthtype=Enterprise&sf=<supplierid>', because 'supplierid' is an invalid terminal property of the Root context..
    Exception id: 02:51_09/08/07_0062_306388250
    See the details for the exception ID in the log file
    what may be the reason, any solutions?
    Thanks in advance
    Regards,
    Murali

    Hi,
    Please check if you have made a copy of the Crystal report Iview using plain copy method. If so use Delta copy...
    Also please check again if the system connection tests and user is valid and working.
    Regards,
    Rohan
    *reward points if useful

  • How to make use of Portal service in the web dynpro application

    hi
    I have some portal service and how to use that in the web dynpro application.
    and also what is the main diff between Portal Component and web dynpro application.
    do we required portal to run web dynpro application.
    thanks
    mmukesh

    Hi,
    >> I have some portal service and how to use that in the web dynpro application.
    Yes. U can use Portal service in webdynpro. Check the link given by subathra.
    >> and also what is the main diff between Portal Component and web dynpro application
    Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
    >> do we required portal to run web dynpro application.
    No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
    Regards,
    Vijai

  • What is the service number in INTEGRATION_DIRECTORY_HMI

    Can any one tell me What is the service number in INTEGRATION_DIRECTORY_HMI.
    Is it J2EE PORT (THE WE FIND IN xi home page URL)OR HTTP PORT (the one we find in SMICM > Goto > services)
    -Naveen.

    Hi,
    It should be 5<Java inst no.>00
    Also have a look into this document
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290
    Regards,
    Prakash
    Message was edited by: Prakash Arunachalam

  • Blank SOAP Action in Soap Request- Portal Service calling Web Service

    Hi
    I'm trying to access an Web Service through a client portal service which was generated by NWDS. I called this service from a basic component and tried to execute the WS function after populating all the needed fields. When I started the component I encountered the following error.
    java.lang.IllegalArgumentException: The SOAP Action "" include in the soap request not corresponding to the Portal service method..
    I initially thought it was because I was downloading the WSDL to my local and using that in the portal service generation. Maybe not all the information about the web service was being obtained. I tried it again after generating the portal service from the WSDL online but still obtained the same error.
    Any insight on what's causing the error would be appreciated. Thanks!

    Dear expert.
    i got the same problem with Reyes. anyone can solve this issue?
    thank in advance.

  • Can you call a SAP java Portal Service from the Dot Net code?

    Is there a link to a document or snippet of code to call a customized Portal Service in a Dot Net code?

    Hi Steve,
      yes.,u can call a java portal service in .net.,the only thing what u need to do is to establish that portal service as web service and use that web service in ur code..
    Regards,
    Vinoth

  • Access Portal Services within Web Dynpro

    Hi,
    I created a portal service and would like that some values of the same have to be set by a Web Dynpro application, but i have a problem to access this
    service. Always that a i try to get a reference of this service the object isn't instantiated and i get a null instantiated.
    What i`m trying to do is the broadcast message described in [/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1 |/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1]with a variation that need of some
    more Attributes and that the same will be pass by the Web Dynpro, like the broadcast message i`ll just use the alert concept and don't the publication.
    Follow below the describe of executed actions.
    1 - I did all the process as the [Weblog|/people/prakash.singh4/blog/2005/04/28/brodcast-messages-to-logged-on-users-in-portalpart1].
    2 - I generated the Jar and insert the same in a DC.
    3 - I generated the Web Dynpro application, in the used DCs and added the DC with the Jar, and i inserted the reference in a Sharing References. 
    4 - Did the deploy and insert the Web Dynpro in a Portal Iview.
    But always that i execute, i can't capture the reference of the service.
    Note: The reference in Sharing References was executed for several diferents forms of test, like for exemple:
    PORTAL:<vendor>/com.teste.broadcast
    PORTAL:com.teste.broadcast
    PORTAL:<vendor>/com.teste.broadcast.alertreceiver
    PORTAL:com.teste.broadcast.alertreceiver
    But always adding one at a time.
    Until put the saller like sap.com i already try.
    The creation of the service as described in the weblog can be accessed for a Web Dynpro? What the problem to access the Service??
    The codes follow Bellow.
    portalapp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <application>
      <application-config>
        <property name="PrivateSharingReference" value="com.sap.portal.htmlb,com.sap.portal.runtime.system.notification"/>
        <property name="ServicesReference" value="com.teste.broadcast"/>
      </application-config>
      <services>
        <service name="alertreceiver">
          <service-config>
            <property name="className" value="com.teste.broadcast.alertreceiver"/>
          </service-config>
        </service>
      </services>
    </application>
         BroadcastAppView.java
    import com.sap.security.api.IUser;
    import com.sap.tc.webdynpro.clientserver.portal.WDPortalUtils;
    import com.sap.tc.webdynpro.clientserver.portal.sf.WDPortalServiceType;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
    import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
    import com.sapportals.portal.prt.service.notification.INotificationService;
    import com.sapportals.portal.prt.service.notification.NotificationStringBufferPool;
    import com.sapportals.portal.prt.service.notification.StreamData;
    import com.sapportals.portal.prt.service.notification.TopicData;
    import com.sapportals.portal.prt.service.notification.TopicDataContainer;
    import com.teste.broadcast.Ialertreceiver;
    public void onActionSendMessage(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionSendMessage(ServerEvent)
            IWDMessageManager msgManager = wdComponentAPI.getMessageManager();
            INotificationService notService = null;
            try {
                    notService =    (INotificationService)
                            WDPortalUtils.getServiceReference("com.teste.broadcast");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference("com.teste.broadcast.alertreceiver");
                    //notService =  (INotificationService)
                    //      WDPortalUtils.getServiceReference(IAlertreceiver.KEY);
            } catch (Exception ex) {
                    msgManager.reportWarning("2-" + ex.getMessage());
            TopicDataContainer container = new TopicDataContainer(TOPIC_NAME);
            StreamData  messageStream = new StreamData(new ByteArrayInputStream(textMessage.getBytes()));
            TopicData durationdata =
                    new TopicData(TopicDataContainer.STRING, "60");
            TopicData userdata =
                    new TopicData(TopicDataContainer.STRING, user.getUniqueName());
            container.addTopicData("message", messageStream);
            container.addTopicData("duration", durationdata);
            container.addTopicData("user", userdata);
            container.addTopicData("group", "GROUP_ACCESS");
            //notService.publish(TOPIC_NAME, container);
            msgManager.reportWarning("-" + notService);
        //@@end
       * The following code section can be used for any Java code that is
       * not to be visible to other controllers/views or that contains constructs
       * currently not supported directly by Web Dynpro (such as inner classes or
       * member variables etc.). </p>
       * Note: The content of this section is in no way managed/controlled
       * by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private final static String SERVICE_NOTIFICATION = "com.sap.portal.runtime.system.notification.notification";
      private final static String TOPIC_NAME = "USTBroadCastAlerts";
      //@@end
    Thank.
    Luciano Feletti Aponte

    Hi Luciano,
    Take a look at for your answer:
    /thread/833576
    Regards,
    Rogério

  • Calling portal service from web service

    Hello,
    I'm trying to call portal service from web service. Is this possible? I'm getting an error.
    For example, code:
    IJCOClientService clientService = (IJCOClientService) PortalRuntime.getRuntimeResources().getService(IJCOClientService.KEY);
    .. is generating exception:
    java.lang.LinkageError: Class com/sapportals/portal/prt/runtime/IPortalRuntimeResources violates loader constraints
    Do anybody knows what's wrong?
    Best regards,
    Josef Motl

    Hi Josef,
    Is the IJCOClientService located on the producer side or on the consumer side?
    Amit

  • Difference between portal component and portal service?

    Hi I am kishore...
             I worked on portal components but not on portal services... Would anybody tell the difference between the portal components and portal services...? What is a portal service..?
               How we know which one to choose in the scenario.?
        Thanks in adavance

    Hi kishore,
    A portal component is custom Java code that is executed according to user requests, and generates HTML output for display on the client.
    Portal components:
    Page builder, which assembles pages
    Admin tools, such as logger, which is comprised of user interface messages.
    Pages
    Technically, the page is also an iView. A page includes iViews or pages (nested) and Layout components
    iViews
    There are two different isolation levels (iView types)
    Embedded: iViews’ html is embedded as part of page html. iViews are called synchronically on the server, and retrieved in one response, to  the client (this is the page response)..  Each iView reloading reloads all iViews on page.
    URL (Isolated): iViews are fetched by an IFRAME element in an “own” request. One response for the page followed by additional request-response for each iView (depending on browser 2-4 requests simultaneously).
    Portal Services:
    A portal service is a component that offers a globally accessible function in the portal. 
    A portal service act as the middleware, that is, interfaces that are enabled to exchange procedures and data. They offer functionality to portal components, and other services.
    There are two groups of portal services:
    Portal services (part of the PRT)     
    Caching                     
    Notification
    iView service
    Application Repository
    System Landscape
    Role, pages, worksets
    Web Services
    Unification service
    Portal services (external to the PRT)     
    Client Eventing                 
    URL generator
    Logger
    JCO client service
    Hope this helps.
    Regards
    Atul Shrivastava

  • How to call a  portal service from a servlet

    Hello all.
    I have a functioning portal service that I would like to call from a servlet.
    When I try to do so, I get a ClassCastException when I do this (on line two):
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    IDocumentPersistence docPer = (IDocumentPersistence) runtimeResources.getService(IDocumentPersistence.KEY);
    However if I do the following I can get a generic IService and use reflection to invoke the method (in the IDocumentPersistence interface) that I want to invoke:
    IPortalRuntimeResources runtimeResources = PortalRuntime.getRuntimeResources();
    com.sapportals.portal.prt.service.IService aService = (com.sapportals.portal.prt.service.IService) runtimeResources.getService(IDocumentPersistence.KEY);
    There must be a better way to use portal services (hopefully like scenario one above) in servlets. In web dynpro you can use portal services and cast them to the correct type. What am I missing?

    Hi Kim,
    how did you integrate the references to your Portal Service Interface into your web application?
    You should do this using the references in your application-j2ee-engine.xml, did you do this? It might be a problem with the classloader otherwise.
    The way you are calling portal services does work normally, however it is not the recommended way as it is documented in the SAP documentation.
    Please check the SAP documentation on how to access a portal service from a j2ee app:
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/9ddd0cbb211d72e10000000a1553f6/frameset.htm
    Best regards,
    Stefan Brauneis

Maybe you are looking for

  • Issue with Contract Replication from SRM to MDM  - XML structure

    Hi We are having an issue with trnsfering a contract to MDM. We have released the contract for update to MDM in the contract through the distribute to catalog option. An XML is generated in SRM that gets sucessfully passed to PI through Catalogupdate

  • Scheduling agreement from backend to srm

    Hi SRM Gurus, Can I have the stepup step procedure for a backend scheduling agreement transfer to SRM. Means  we have a scheduling agreement in backend but the further process we have to do in SRM like schedule lines generation. I suppose we need to

  • Why when I update Adobe it won't load any higher than 25 or 30%?

    Anytime I try to upload the new Adobe Flash Player Update, the installer won't download any further than 25% or 30% through. And this annoys me a lot because now it is impossible for me to view any videos, and I think I may not have access to some ce

  • Error After Upgrade APEX 4.2 - Ora-01403

    Hello, I installed APEX 4.2 over XE 11.2 The Installationprocess succeeded. 1-Install Oracle Database Express Edition 11g (APEX 4.0 work fine and publicate Apex Application Sample correctly) 2-Download APEX 4.2 3-Run @apexins.sql USERS USERS TEMP /i/

  • Goods receipt voucher

    can anyone send me the report to find the Goods Receipt Voucher displaying the following details in the output list, the amount of goods received and the amount in the delivery note and calculates the shortage with other information like GR Number, P