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

Similar Messages

  • Need info on Accessing portal services within a Web Dynpro application

    Hi,
    I need information on Accessing portal services within a Web Dynpro application.I want to explore this topic.Can anyone give useful links?
    Thanks in advance.
    Rajani N

    Hi
    how to reference  a portal service with web dyn pro ?
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/how%20to/how%20to%20access%20a%20portal%20service%20within%20a%20web%20dynpro%20java%20application.pdf
    http://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/portal/WDPortalUtils.html
    Best Regards
    Jakub Krecicki

  • How to make use of asynchronous service in CAF development

    Hello SDNs,
    How can we make use of asynchronous service in CAF development;
    Actually i am new to CAF development; my business requirement suites for the service provided by SAP. But the service provided is asynchronous; is it not possible to use the asynchronous service in my CAF application? if it is possible, can any one please tell me the drawbacks of using it!
    You help would be highly appreciated.
    Thanks,
    Sireesha.B

    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

  • Using a Deployable Proxy in a Web Dynpro Application

    Hi,
    We have a Web Dynrpo application whose model is built from a set of Java business objects (POJOs.)  These Java business objects currently make calls to a back-end R/3 system using JCo.  We would like to provide the ability to allow the calls to be made over Web Services to the back-end system. 
    To call the RFMs as web services we have created a Deployable Proxy project, added the proxy as a public part, then referenced that public part in the web dynpro application.  At this point we can write code to call the web service that looks something like:
    InitialContext ctx = new InitialContext();
    Object serviceObject = ctx.lookup("wsclients/proxies/meridium.com/rcmo~proxies/com.meridium.rcmo.ws.proxies.plants.PlantProxy");                                        
    Z_MRDM_GET_PLANTSService service = (Z_MRDM_GET_PLANTSService)ctx.lookup("wsclients/proxies/meridium.com/rcmo~proxies/com.meridium.rcmo.ws.proxies.plants.PlantProxy");
    Z_MRDM_GET_PLANTSPortType port = service.getLogicalPort();
    Z_MRDM_GET_PLANTS plantParameter = new Z_MRDM_GET_PLANTS();
    plantParameter.setI_PLANTID(id);
    plantParameter.setI_PLANTNAME(name);
    Z_MRDM_GET_PLANTSResponse response = port.z_MRDM_GET_PLANTS(plantParameter);
    MT001W[] plantArray = response.getET_PLANTS();
    The problem is that when I call looup to retrieve the service implementation I get a ClassCastException. 
    The tutorials for using a proxy in web dynpro all assume that the web service is what the model is based upon but that's not possbile for our scenario we need to call the proxy from the business objects which are the basis for our model.
    According to the help documentation for consuming a deployable proxy in a JSP page:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/2d/b9766df88f4a24967dae38cb672fe1/frameset.htm</a>
    It discusses adding JNDI mappings.  Is this what's needed for the reference to work in a Web Dypro application too?  If so, how would one add the JNDI mappings references to a Web Dynpro application?
    Many thanks!

    Hi Dheeram,
    I'm not certain about JSPDynpage specifically, but in a general J2EE Enterprise Application project you can add a reference to the application-j2ee-engine.xml file.  For example here's the content of an application-j2ee-engine.xml file that references a proxy:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">
    <application-j2ee-engine>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.mw.jco</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.aii.proxy.framework</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">com.sap.aii.util.misc</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="interface">tc/sec/destinations/interface</reference-target>
         </reference>
         <reference
              reference-type="hard">
              <reference-target
                   provider-name="sap.com"
                   target-type="library">security.class</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="service">tc~sec~destinations~service</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="sap.com"
                   target-type="interface">tc~sec~destinations~interface</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="engine.sap.com"
                   target-type="service">webdynpro</reference-target>
         </reference>
         <reference
              reference-type="weak">
              <reference-target
                   provider-name="meridium.com"
                   target-type="application">rcmo~proxies</reference-target>
         </reference>
         <provider-name>sap.com</provider-name>
         <fail-over-enable
              mode="disable"/>
    </application-j2ee-engine>

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • How can I create a web Service from my Web Dynpro Application ?

    Hi,
    Kindly let me know How I could create a "Web Service" with my Web Dynpro DC project.
    Awaiting your responses.
    Regards,
    Mahesh

    Hi Mahesh,
          You can use the web services by creating the Model in web Dynpro
    And if you want to publish your own web service then you have to create a EJB module and publish as a web service.
    Thanks
    Ninad

  • How to execute a BI query/view from a web dynpro application?

    Hi all,
    I am trying to connect to a BI system from a Web Dynpro application. I have to execute a view/query and process the output in my application. Please guide me about how to establish the connection to the BI system from my web dynpro application and then execute the query/view.
    I have tried executing/modelling the BI query/view using Visual Composer but I get an error saying 'QueryView Instantiation failed' when I try to drag the view/query on to the design board.
    Please guide me and help me achieve this.
    Thanks & Regards,
    Kishan

    Hi Kishan,
    Define system for BI in portal and define JCo destination, then from WDJ application use can query BI.
    Create the Technical System and connect with JCO Destinations
    or
    Connecting through the BI Connecters (ex: XMLA Connecter)
    Refer below link:-
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60f35908-ecd4-2910-6c89-e75e1054d9d1?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60f35908-ecd4-2910-6c89-e75e1054d9d1
    In this document you will get details related to connector and other admin activity.
    Hope this may help you.
    Deepak!!!

  • How to authenticate users from SharePoint 2007 to the Web Dynpro platform

    Hi, I am working on integrating Share to Webdypro application. I want to implelement Single sign on from Sharepoint to SAP.
    So I can make use of Windows credentials for accesing my SAP application.
    So what all configurations need to be maintained at SAP side to achieve this thing.
    Can anyone please help me on this.
    Thanks,
    Betcy

    Hi Betcy,
    I am not familiar with sharepoint solutions, but as you mentioned about windows credentials I believe it refers to kerberos tokens. On this case you can take advantage of SPNego authentication.
    You can find more details on following SAP note:
    #[1488409|https://service.sap.com/sap/support/notes/1488409] - New SPNego Implementation
    I hope it helps.
    Kind regards,
    Lisandro Magnus

  • How to display the error message during the web dynpro application runtime

    hi,
        I'm a java developer,During i 'deploy and run ' a web dynpro application on server-1,if the application have some runtime errors. there are displayed many infomation about the runtime error,such as exception track,etc.
        But when i do the same on server-2,there just show something like:
                500   Internal Server Error
                                    SAP NetWeaver Application Server 7.00/Java AS 7.00
                Failed to process request. Please contact your system administrator.
    but the server-1 will stop the j2ee engine. 
    how can do i make server-2 show detail error message as server-1. when i debug web dynpro application need these infomation.
    Appreciate your inputs...
    (Note:server-1 and server-2 have same software version)
    Edited by: BingLin Zhong on Feb 18, 2008 2:13 AM

    The Sap-Notes 962319:
    1. Check in the Visual Administrator, "Licensing Adapter" -> "General" -> "SystemType" !
    If it is set to "DEVELOPMENT_MODE", verbose error messages are shown.
    If it is undefined, proceed with the next step.
    If it is set to something else, only exception IDs are shown. In this case the only chance is to search for this exception ID in the default traces.
    2. If the system type is undefined, then in the Config Tool "Configurations" -> "webdynpro" -> "sap.com" -> "tcwddispwda" -> "Propertysheet default" -> "DevelopmentMode" is evaluated. If it is "true", verbose error messages are shown.
    3. If verbose error messages are required but still the short version is shown, you probably face an error message that is not raised by Web Dynpro but by other components of the NetWeaver. In the Visual Administrator set "Properties" -> "HTTP Provider" -> "DetailedErrorResponse" to "true".
    4. In addition to the error page shown in the browser or client, important messages - including error messages and stack traces - are written to the log and trace files, e.g. to the default traces usr\sap\<SID>\<instance>\j2ee\cluster\server<number>\log\defaulttrace.trc.<number>.
    a) In some cases, when an exception ID is included in the error message, the detailed error message can easily be retrieved in the log file.
    b) When no exception ID is given, you have to search for the detailed error message in the log specifying time stamp and/or user ID.
    Always consider restarting the system after making changes on the settings.
    It is not recommended to switch the "SystemType" to an inappropriate value just for viewing verbose error messages. The system type potentially affects framework, applications and licensing in an perhaps unintended way.
    In the past there was no distinction between different system types regarding error messages. For security reasons this distiction has been introduced. It is not intended to show stack traces in non-development systems in the future. SAP does not provide workarounds or patches to enable such a behaviour again.

  • How to call a method of a zclass into web dynpro application

    How to call a method of a zclass into web dynpro application

    Hi,
    if the method is of type static then u can access it directly as below.
    call method class_name=>method_name
    If the method is instance method then U need to create the object of that class. then through this object u can access the method.
    CALL METHOD Obj_name->method_name

  • How i use nwdi to modify existing standard web dynpro application

    Hi,
    I need  to change some existing application of web dynpro Java. I found solution nwdi would help in that. But how i use it can any one explain me in detail. Nwdi has already installed over here. So can i use it can explain me step by step.
    Regards,
    Gurprit Bhatia

    Hi,
    First you need to import the WD application to your NWDS and then you need to checkout the code for making any changes after making the chanhes you have to checkin the code.
    First you need to setup the portal path in
    1. WIndow->Preferences->Java Development Infrastructure->development Configurations.
    2. You have to create a client in DTR by going into DTR Perspective.
    3. Import the configuration from the track (this is your standard WD application) in Development Configurations Perspective.
    4. Create the project from Inactive DCs tab.
    5. Navigate to WD Perspective and build the project.
    6. Check out the code to make chnages
    7. Checkin the code after making the changes
    8. Test the application in Portal
    Regards,
    Lakshmi.

  • How can i use vertical Scroll in ALV at web dynpro abap?

    Normally, i'm using 'UP/DOWN button' while set a alv in web dynpro though,
    wanna change to scroll vertically.
    well, there is a way using ifram so i cant make alv inside of ifram for make a scroll.
    but then, part of header also might be scroll together with data.
    so, i'm asking to help is there anybody who can let me know about it?
    Thanks.
    with Regards,
    Yui.

    Hi Suresh,
    I had the same problem. The reason is that the result of
      select * from wdy_app_property into table p_property_table
              where application_name = p_application.
    in CL_WDY_MD_APPLICATION=>GET_PROPERTIES_STATIC
    for p_property_table-value is not "SCROLLBAR" but " SCROLLBAR".
    Here is a workaround: type in the application parameters "SCROLLBAR " instead of "SCROLLBAR".
    Regards from Germany
    Udo

  • How to make iCal Server events viewable on the web calendar?

    Hi,
    I can create, edit and view events on the web calendar.
    I can create, edit and view my own events via iCal.
    How can I set it up so we can see all the calendars from our group on the web calendar? It's empty now other than what's entered via the web calendar.
    Is there really no integration between the two?

    I too thought web group calendar was subscribe only in iCal until I ran across the procedure at
    http://www.macosxhints.com/article.php?story=20080410162942908
    in the 4th comment down by protean. With a couple of additions I was able to post an event to the web group calendar and have an update on the web post back to the iCal calendar. My additions were needed to get the results as posted in the comment:
    1) make sure Enable Calendaring is selected for all group members,
    2) refresh iCal to ensure all group members are visible in the Personal Server Calendar Address Pane before adding the group calendar account,
    3) add all members in step 3 of the procedure including yourself, however, if the owner of the group (e.g. diradmin) is not a member then don't add it,
    4) prior to step 6 of the procedure you can verify the group is visible as in step 8 in the Personal Server Calendar delegation before deleting the group account; if not visible then you don't have to start from scratch, just work with the group account from step 1,
    5) the group calendar shows up in the left column list of calendars under Delegates calendars.
    So I got this to work.
    Then I setup a location in Directory.app with Delegates as the group. It shows up in iCal under Delegates calendar with the error notice
    'Error While Refreshing Access to account "location title" is not permitted.'
    So there is no calendar available for the location in iCal. The personal iCal account shows the Delegation of location and the Show checkbox is selected. The group is allowed to select the location on the web calendar and in the server iCal calendar. But the location doesn't indicate conflicts in the availability pane. Can someone tell me what might be missing?
    Harry

  • How can I call a Web Service in a Web Dynpro Application??

    Hi All,
    does anybody hav links, tutorials or what not??
    Thanks, JJJ

    Hi Jesse,
    You can do GET, PUT and POST using FormCalc, so you should be able to access a REST web service. 
    There is a example of accessing a RSS feed in this thread, http://forums.adobe.com/message/5695433#5695433
    Regards
    Bruce

  • Consuming 3rd party web service in Java web dynpro application

    Hi All,
    I am working on a scenario where external(3rd party) web service has to be consumed in WD Java application. I am provided with WSDL file. Let me explain how I usually consume other webservices:
         Create model->AWS model->Remote Location/file System->provide url->create/choose service group->finish
         Then I would generate the code in custom controller by applying template
          I assign provider system as local for the service group in nwa.
    This is normal process to me. I am struck with this 3rd party web service. Please share your ideas on the same. Any help is highly appreciated.
    BR,
    Manoj

    I ve created a provider system pointing to where 3rd party WS resides. i am trying to connect through WSIL. While pinging that provider system, I don't see that particular WS(that I am gonna consume). And while assigning this Provider system to service group, processing state getting 'Failed'.
    What could be reason?

Maybe you are looking for

  • How to solve problem related to svchost and Adobe flash player 11.6 r602 failing to work?

    Hi... I have been consistently facing a serious problem regarding the firefox I use. It's Firefox 20.0.1. I use Windows 7 and I have 8 gb of Ram. The problem is after I launch Firefox two dialogue boxes appear in quick succession one telling that "sv

  • Skype broken to the point of being completely useless

    Windows 8.1Skype 7.5.85.102IE 11.0.9600.17631  I have been frustrated with Skype since I upgraded to Windows 8.  I installed the desktop version and when someone called both versions would ring and after I answered one, the other would keep ringing.

  • HD content on the latest MacBook Pro?  iPhone 3G?

    I have the latest 15" MacBook Pro and wanted to know if I can rent/but HD content from the iTunes store. Will I be able to play back the content on my MacBook Pro? As for the iPhone 3G, HD content will not play, correct? Thanks!

  • Segment Space Advisor Error

    Hi, I get this error every morning in alert log Errors in file c:\oracle\product\admin\escort\bdump\escort_j000_3360.trc: ORA-12012: error on auto execute of job 8887 ORA-20000: ORA-20000: Content of the tablespace specified is not permanent or table

  • Getting "Document Dimensions" Readout to Stick

    I like to set the little status area at the bottom left of my image window to "Document Dimensions", because I like to watch the pixel count. It will stay like this during my editing session once I set it. Unfortunately whenever I go to look at the t