Call WS in wdj

Hi all,
i'm sorry for my bad english.
i work with a CE 7.1 EHP1, i want call a WS,and i use this tutorial:
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46
The auto-generated code in doInit() in the component controller, in the first line(this is the code  : Model1 model1Model = new Model1(); ), raises this exception:
java.lang.NoSuchMethodError: com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(Ljava/lang/String;Ljava/lang/String;Ljavax/xml/namespace/QName;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Lcom/sap/tc/webdynpro/model/webservice/gci/IWSTypedModelInfo;Ljava/util/Map;Ljava/util/Map;)V
  at it.spqr.wdjcallws.model1.Model1.<init>(Model1.java:58)
  at it.spqr.wdjcallws.prova3.Prova3.wdDoInit(Prova3.java:112)
  at it.spqr.wdjcallws.prova3.wdp.InternalProva3.wdDoInit(InternalProva3.java:136)
  at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:160)
  at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
  at com.sap.tc.webdynpro.progmodel.components.Component.initController(Component.java:254)
  at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:555)
  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1340)
  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoPreprocessing(AbstractExecutionContextDispatcher.java:146)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppPreprocessing.doService(DispatchHandlerForAppPreprocessing.java:35)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
  at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoPreprocessing(ExecutionContextDispatcher.java:100)
  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:74)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:618)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:649)
  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:271)
  at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:691)
  at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:241)
  at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:259)
  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:202)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:127)
  at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:95)
  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToDispatcherContext(ExecutionContextDispatcher.java:146)
  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:92)
  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:104)
  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:54)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:486)
  at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
  at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
  at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:243)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
  at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
  at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
  at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
  at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
  at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:115)
  at com.sap.engine.core.thread.execution.Executable.run(Executable.java:96)
  at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
how can I fix this?

the problem is  the api in my eclipse (CE EHP1 SP04) with the api in server CE SP03

Similar Messages

  • Related documents or links on how to call webservices from WDJ

    Hi all
    i need documents & links on how to call webservices from Webdynpro for Java.
    if anybody send the documents on sample scenarios on the same then it is the great help to me...
    Thanks
    Sunil

    Hi Sunil,
    May these links help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/f289c67c759a41b570890c62a03519/frameset.htm
    http://help.sap.com/saphelp_nwce10/helpdata/en/64/0e0ffd314e44a593ec8b885a753d30/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/d2/0357425e060d53e10000000a155106/frameset.htm
    and  the below thread to call weservices in java.
    Re: How to call a web service from Java
    Regards,
    Supraja

  • Calling a ESS WDJ COmponent with different Client no

    Hi,
    my task is to make ESS available on a different Client (100) instead of 001.
    i was reading about the "Mapping Logical Systems" using the parameter sap-wd-arfc-useSys :
    http://help.sap.com/saphelp_nw70/helpdata/en/af/84a34098022a54e10000000a1550b0/content.htm
    I did the following :
    1. Create a new JCODestination :
    SAP_R3_HumanResources_MetaDataHNL and SAP_R3_HumanResourcesHNL with the new client.
    2. Call the URL
    http://<portal>:<port>/webdynpro/dispatcher/sap.com/ess~lea/com.sap.xss.hr.lea.appl.LeaveRequest?sap-wd-arfc-
    useSys=SAP_R3_HumanResources:HNL&sap-wd-arfc-useSys=SAP_R3_HumanResources_MetaData:HNL
    Result : i get a 500 internal Server error after the login for this client.
    Test 2: The same with the default JCO Destinations : same error
    Test 3: The same without the additional parameter : working
    The JCO Destination is only SAP_R3_HumanResources when i looked it up the Content Admin Area for Web Dynpro.
    What is the point i am missing ? Has someone done it successfully to connect to 2 systems per sap-wd-arfc-useSys ?
    Regards,
    Kai

    Hi Arun,
    the JCODestination Tests (Metadata) are successful.
    The Assignment for ess~lea is only for :
    SAP_R3_HumanResources
    SAP_R3_HumanResources_MetaData
    It is a standard ESS iview. How and why should i assign additional JCODestinations ?
    I overweite it per parameter sap-wd-arfc-useSys
    Regards,
    Kai

  • Calling java script in view

    Hi gurus,
    I am stuck with some issu, here is my issue as fallows
    Scenario:
    I am planning to open outlook client by passing some java script and i want to attach history of the email like same as reply button in MSoutlook
    - To call java script i am using webwidget UI element in WDJ and on action of  button i am calling that java script like as fallows
    String html = ReplyAll_class_j.callActiveXFromHTML(this.wdComponentAPI,"toemail", "fromAdd", "Subject of email",  <html><body>htmlbody</body></html>);
    wdContext.currentContextElement().setHtml(html);
    -  in java class i am passing some java script like as fallows
    public static String callActiveXFromHTML(IWDComponent compAPI,String toMailAddress,String ccEmailAddress,String mailSubject,String htmlBody) {
    Script is here
    the Issue is when i click the button it is not opening the outlook client but it is doing when i am click on the tab to recall the component, I thought it is doing this because i am passing "this.wdComponentAPI" as a parameter, but i dont know other solutions so please help me in this issue
    thanks in advance
    Anu

    Hi,
    I am not sure why is that statement "WE CANNOT CALL JS from WDJ"???? I did that pretty number of time in my developments. Can you please try the below mentioned way...
    Inside your method what ever you write to open the JS window
    String htmlcontent="Your HTML Content";
    try
    byte[] html=new byte [ 4096 ] ;
    html=htmlcontent.getBytes("UTF-8");
    wdContext.currentContextElement().setVaHTML(html);
    IWDWindow win =wdThis.wdGetAPI().getComponent().getWindowManager()
              .createNonModalExternalWindow(WDWebResource.getWebResource(html, WDWebResourceType.HTML).getURL(),"window Name As per your choice");
    win.setWindowSize(600,600);
    win.removeWindowFeature(WDWindowFeature.ADDRESS_BAR);
    win.removeWindowFeature(WDWindowFeature.TOOL_BAR);
    win.removeWindowFeature(WDWindowFeature.MENU_BAR);  
    win.show();
    catch(WDURLException url)
    wdComponentAPI.getMessageManager().reportException("WDURLException::"+url.toString(),true);
    Regards,
    SrinivaS

  • Calling a WD java Application URL from a wsdl at PI

    Hi experts ,
    we have a requirement where a wsdl at PI server should call a webdynpro java application , the URL of the application is  given to PI Team, but they are unable to call my webdynpro java application , is there any standard way of doing this..
    Regards
    Govardan

    are u sure this is your requirement?
    pi is not suppose to call that url
    wdj is supposed to be call by human via browser....

  • What HR applications of WDJ can be moved to WDA ?

    Dear Guru's,
    I will be assigned to an HR project, where my role would be to convert existing Webdynpro Java applications to custom Webdynpro ABAP applications.
    It will be helpful, if you can please tell me some specific WDJ application names, that you have experienced in converting to custom WDA applications.
    Also, please tell me, what is need to convert WDJ applications to custom WDA applications ? Is it because of version differences ?
    What should i concentrate, when i convert them from WDJ to WDA ? For example, when i explore an existing WDJ application, how can i identify a function module call within the WDJ applications ?
    Thanks and Regards.

    Hi
    Looking after your explanation i beleive that you have a requirement for ESS/MSS.If yes, then It depends on the EHP level you are working. Till EHP 4 we have WDJ versions fully supporting for ESS/MSS. from EHP5 80-90% of applications are in ABAP. Most of the cases I've seen people still working on Java in EHP 5. In such case you will face problem in working with Travel Mgt services. SAP recommends to Migrate from JAVA to ABAP. Apart from these we are still using JAVA services for few more applications/services in EHP5&6 like
    Who's who - WDJ
    Change own data-WDJ
    Sec 80 & 80C Deductions - WDJ
    Hope this Info will be useful
    Cheers
    Pradyp

  • Starting WDJ through WDA

    We have a requirement where a custom WDA screen sends the PERNR as a parameter and calls Standard WDJ screen.
    Has anyone attempted this funcationality?
    What are the setting / Parameter we should be passing to call the Standard WDJ from custome WDA component?

    From help link
    To control communication channels externally,
    you use an HTTP GET or POST request to the following URL:
    http(s)://host:port/AdapterFramework/ChannelAdminServlet?
    party=party&service=service&channel=channel&action=action
    The parameters in italics are described in the following table:
    party
    Identifies the party of the channel to be administered. You can use an
    asterisk (*) as a placeholder to administer several channels simultaneously.
    service
    Identifies the communication component of the channel to be administered. You can
    use an asterisk (*) as a placeholder to administer several channels simultaneously.
    channel
    Identifies the name of the channel to be administered. You can use
    an asterisk (*) as a placeholder to administer several channels simultaneously.
    action
    Identifies the action to be executed (start, stop, or status).
    You use the start and stop actions to start and stop the channels.
    You can use the status action to query the status of one or more channels
    Edited by: Ramesh P on Dec 8, 2011 4:34 PM

  • How to Trigger CAF web services from java Job schedulers?

    Hi Experts,
    I am in need of calling CAF based web services from custom Job scheduler.
    Could you please provide your idea and input if anyway we can call such web service by java api in custom jobs development?
    Thing is that we have CAF BO which hold around 1 million record (master data) and based on approval scenario (developed in WDJ apps) we will have to move this record to another business object for further manipulation?
    Hence due to huge number of record in BO, I would like to automate this activity by calling Jobs from WDJ apps and then Job will trigger the CAF web service which would create record into the BO object.
    Please share your idea and let me if it can be achievable by java apis to trigger Jobs by WDJ apps & webservice by jobs?
    Thanks & Regards,
    Pankaj

    Hi Experts,
    I am in need of calling CAF based web services from custom Job scheduler.
    Could you please provide your idea and input if anyway we can call such web service by java api in custom jobs development?
    Thing is that we have CAF BO which hold around 1 million record (master data) and based on approval scenario (developed in WDJ apps) we will have to move this record to another business object for further manipulation?
    Hence due to huge number of record in BO, I would like to automate this activity by calling Jobs from WDJ apps and then Job will trigger the CAF web service which would create record into the BO object.
    Please share your idea and let me if it can be achievable by java apis to trigger Jobs by WDJ apps & webservice by jobs?
    Thanks & Regards,
    Pankaj

  • Calling WDJ from WDA application

    Hi experts,
    Can anyone please tell me that how 2 call a WDJ application from a WDA application. Please explain in detail as i am complete novice in this field.
    thnx.

    Hi Thomas and experts,
    I have requirement where i need to call WD java standard application.
    My requirement : I am displaying teamview in my MSS through OADP by using WD ABAP...
                                 Initial Screen displays columns like Position, Employee name , Job ...etc
                                     when manager select position in teamview ....it has to check whether positions region went live or not.
                                    I) IF position region went live then it has to open 3rd party tool and pass parameters(Here i am open 3rd      party URL and passing parameters)
    Here my requirement, 2)Already we have standard WDJ application which is using as of now, so if positions region has not gone live then i have to call standard WDJ application with passing parameter and skipping initial screen which is displaying teamview and continue with position details
    Is this possible through portal which explained above. can any one suggest me how to proceed .
    Thanks in advance...
    Regards,
    Farooq

  • Call WDJ from WDA

    Hi
    Is is possible to call Web Dynpro Java components from Web Dynpro ABAP ones?  We currently have an SAP Portal based on NW2004 and are just upgrading to ECC6.0 and wish to use WDA.  However, it is likely we will want to integrate the WDA components with existing WDJ components rather than rewrite a lot of java code to ABAP.
    Any ideas anyone?
    Regards
    Ian

    Hi Ian,
    the 2 WD application sets should coexist ok.
    Navigating directly from one to the other is like any URL link.
    I guess you knew that.
    You can not treat them as subcomponents.
    If you hope to do context level component embedding,
    then I believe you are without luck.
    The framework assumes the Component to be embedded is on the same stack.
    Evening embedding WDA1 inside WDA2 on another ABAP stack is limited to URL
    suspend and resume plugs.
    I tried exactly what you want in 2 ABAP stacks without luck.
    It all comes back to SESSION.  I assume the JAVA stack cant work with the ABAP stacks session. Dont know WDJ enough to be sure.
    So only rudimentary url parameter passing to pass data back and forth.
    I hope your components are nicely encapsulated and can be called via URLs
    regards
    Phil.

  • Webservice call from WDJ component using SSO

    Hi All,
    I need to call a webservice from a WD Java component.
    Now this is an 3rd party external WS (not an ABAP one)
    That 3rd partysystem is a web based system with user accounts with password
    The userid of portal is the same as the userid of the 3rd party system.
    The requirement is that all WS calls from WDJ to the WS should use the individual account of the 3rd party to call the WS function... in other words not use a common service user..
    So
    portal login  = user1/pass123
    3rdpartylogin = user1/abc123
    When WDJ component invokes WS method during authentication it should use 3rdparty login userid i.e. user1 to invoke method
    Have any of you worked on soemthing similar ?
    Prem

    Still to be tried out

  • Controlling WDJ behaviour based on the Calling Application - Any Idea?

    Hi Folks,
    I have crated <u>two applications</u> to call the <u>one WDJ program</u>.. So that based on the calling application i need to change the behavior of the WDJ program.. that is displlay and not to display few UI elements based on the calling application..
    Can sone one pelase help me in this regards
    Thanks in advance,
    Srini.

    Hi Srinivas,
    please, follow these steps:
    1) in the url of your application send a parameter (e.g. 'a' for application 1 and 'b' for application 2).
    2) Into web dynpro create an inbound Plugs(Open your Interface View -> Plugs) as:
    Name : Default
    Event Handler: onPlugDefault
    Startup: yes
    This plug will read the value you sent in the URL.
    3) Assign to it a parameter in the Parameters Area, i.e. "param1" type string
    4) In the View you can capture the parameter value in the URL in the wdDoInit method, using this code:
    String par1 = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("param1");
    5) Note that in the View you must add the interface (Properties -> Required Controllers)
    That's all. Hoper this help you.
    Regards,
    Vito

  • ECM - EHP4 - Portal -- WDJ called from a WDA

    Hi experts,
    I am in SAP ECC 6.0 EHP4 and with the new scenarios in WDA deployed in the portal.
    In Enterprise Compensation Management, ECM, there is an iview developed in WDA called Planning Overview (the WDA associated is HRECM00_PLANNING_OVERVIEW ).
    This iview, when you press the button Review Details, a WDJ with the same name (Review Details) is called. The issue is that I want to copy the standard iview Review Details into a customer iview, but I don´t know how is linked the WDA with the WDJ.
    In the WDA HRECM00_PLANNING_OVERVIEW, method LAUNCH_PLANNING_UI,  we find the following code:
    method LAUNCH_PLANNING_UI .
      DATA fpm                  TYPE REF TO if_fpm.
      DATA navigation           TYPE REF TO if_fpm_navigation.
      DATA key                  TYPE fpm_s_navigation_key.
      DATA target_key           TYPE string.
      fpm = cl_fpm_factory=>get_instance( ).
      " Store table of pernrs in memory so that comp planning UI can read it
      wd_assist->write_memory_for_planning(
        EXPORTING
          crevi               = wd_this->selected_crevi
          planning_pernr_tab  = wd_this->planning_objec_tab ).
      " Navigate to Compensation Planning iView
      key-key1 = 'HRECM'.
      key-key2 = 'HRECM_LAUNCH_PLANNING'.
      navigation = fpm->get_navigation( is_key = key ).
      target_key = navigation->get_key_from_alias( iv_alias = 'ECM_WDJ_LAUNCH' ).
    navigation->navigate( iv_target_key = target_key ).
    endmethod.
    Do you know where is identified the code, alias, key or whatever with the standar web dynpro java of Review Details?? I mean the part of   Navigate to Compensation Planning iView
    Review Details has the PCD:
    pcd:portal_content/com.sap.pct/line_manager/com.sap.pct.erp.mss.bp_folder/com.sap.pct.erp.mss.14.bp_folder/com.sap.pct.erp.mss.14.iviews/com.sap.pct.erp.mss.hcm/com.sap.pct.erp.mss.ecmplanning
    Thanks a lot,
                   Juanjo

    Hi,
    Which role have u selected??i mean how did u configure this??

  • URL call in WDJ

    Hi All,
    I need help on the below requirement.
    I need to call an URL by passing two values and the resultant htl on this shouls captured to retrieve a value and this value should be taken up and passed to next URL to display.
    For the first URL a window should not open but just result should be captured and using this second result should ba called which should be displayed in a new window.
    I seen the WDJ Ui elements and found that LinkToAction and LinkToURL will suit for first and second one respectively.
    But how capture the resultant html after from the first URL is what i am intrested in.
    Thanks
    Supriya

    Hi Supriya,
    One way to capture the response of URL is to use the HttpClient APIs provided by Apache. You can find more information on it [here|http://hc.apache.org/httpclient-3.x/]
    Using the GET method of HTTP, you can retrieve whatever information is identified by the Request-URL. More information on it  [here|http://hc.apache.org/httpclient-3.x/methods/get.html].
    Regards,
    JC

  • IFrame in WDJ application to call another WDJ iview based on users country

    Hi All,
    I have a requirement wherein I have to display an iview based on the logged in user's country. This iview will be displayed within a WPC ivew. So the idea is to create just one WPC iview and put this WDJ iview in it, hence if a user from US logs in and sees this WPC ivew ..he will see US specific WDJ iview & if a user from UK logs in and sees this same WPC iview.. he will see UK specific....same should be the case for all other countries.
    I was exploring option and using IFrames can help me acheving the same, but on further research I found it deprecated and also when I write IWDIFrame. in nwds i get "The type IWDIFrame is deprecated"
    My SAP Portal is 7.01 & NWDS version is 7.0.11
    Any pointers to achieve my requirement would be of great help.
    Regards,
    JJ

    Thanks Narayan.
    I went ahead with your advice, and I got the navigation working BUT the iview opens in a new window.
    I need:
    MAIN iview is within a WPC webpage --> when we open wpc --> need to get eg. US iview exactly in place of MAIN
    What is happing:
    MAIN iview is within a WPC webpage --> when we open wpc --> US iview is open in another portal window & the wpc area were I have placed MAIN is blank.
    I am using following code:
         if (wdContext.currentContextElement().getVa_usercountry() != "" && wdContext.currentContextElement().getVa_usercountry() != null) {
                        if (wdContext.currentContextElement().getVa_usercountry().equals("US")) {
                             WDPortalNavigation.navigateAbsolute("ROLES://portal_content/hr/emea/iviews/ess/personal_information/com.emea.ess.ivu.addr_ir",
                             WDPortalNavigationMode.SHOW_INPLACE,
                             WDPortalNavigationHistoryMode.NO_HISTORY,
    Any advice to resolve this....I think I am almost there but need some more push !!
    Thanks.
    JJ

Maybe you are looking for