Consuming PI Webservice from Webdynpro Java Not working

Hello SAP,
Environment: CE 7.2.
Resolution expected immediately, Helpful answer is highly appreciated.
Is the namespace should not exceed 60char for PI Webservice, for executing the webservice from Webdynpro Java.
I tried with all the options in executing the PI Service from Webdynpro Java, None of the options worked. I am facing the below error while I was calling the PI Webservice.
I don't see any problem from Webdynpro Java, what ever the procedure I have followed is the standard procedure.
Fortunately when I execute the service from Webservice Navigator, it is working as expected. The same webservice when I consume it from Webdynpro Java it is not working
Options tried so far:
1) Published the Services to Service Registry and there by consuming the PI Service from Service Registry - Not worked
2) Tweaked the URL with few options - Not worked (Tweaking the URL, ex: portType, Binding)
3) Changing the Business Systems in PI and there after calling the service - Not worked
4) Initializing the code, instead of creating Service Controller and calling the PI Service - Not worked.
5) Created a Provider System and tried to call the PI Webservice from Provider System - Not Worked
For all the Options, I am facing the same error which is provided in the screenshot.
Below procedure which I have followed for calling the PI Webservice:
1) Created Adaptive Webservice Model
2) Provided PI Webservice URL (It prompts for PI System UserId and Password)
3) Selected Option - No Service Group Configuration
4) Provided Logical Destination
6) Completed creation of Model
7) Added the model as a UsedModel
8) Right Click on Comp Contr. and selected Apply Template and Created a ServiceController for the model (Entire mapping to comp contr, Initializing the nodes is taken care by Service Contr.)
9) Created an Template Action button and there by calling execute method which is auto rendered from CompContr..
10) Build the project.
11) Activated the code and Run the Application.
12) Getting the below error which is showed in the message.
ERROR MESSAGE:
Exception on execution of web service on destination 'GetPIHRPeopleData' for operation 'SI_CreateHRPeopleData_OS' in interface 'SI_CreatePeopleCompany_OS'

Hi Sankar,
If the webservice is working fine in the Wsnavigator then there is some problem with importing the webservice in webdynpro for Java. Please check the required parameter for creating the Adaptive Webservice Model. After adding in the used model and compoent controller binding, you need to write code for to execute the webservice model.
Please check the code for initialization and execution for the webservice and then test it.
Best Regards,
Arun Jaiswal

Similar Messages

  • Consuming ABAP Webservice in webdynpro java.

    hi All,
    i tried the all ways provided in sdn to create a webservice in ABAP when i test its working fine on j2ee server.
    when i call the same webservice from webdynpro its throughing this error can any body kindly help me in this.
    java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL).  ). The requested URL "xxxxxxxxxx".
    Thank you.
    venkat.

    Hi Venkatramana,
    The class of the ProxyGenerator is com.inqmy.lib.wsdl.ProxyGenerator. It is located in <SAPj2eeEngine_install_dir>/cluster/server/additional-lib/inqmysoap.jar or <SAPj2eeEngine_install_dir>/alone/additional-lib/inqmysoap.jar file. In addition the following JAR files must be included in your classpath - mail.jar, activation.jar, inqmyxml.jar, inqmysoap.jar, located in <SAPj2eeEngine_install_dir>/cluster/server/additional-lib/ or <SAPj2eeEngine_install_dir>/alone/additional-lib/ directory. You need also the inqmy-lib.jar file in <SAPj2eeEngine_install_dir>/cluster/server/lib/ or <SAPj2eeEngine_install_dir>/alone/lib/ directory in order to run the generator.
    SAP Note : <a href="https://websmp201.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=547847&_NLANG=E">547847</a>
    Before deploying make sure the JCo’s are up and running
    Go to http://server:port/webdynpro/dispatcher/sap.com/tcwdtools/Explorer to check the status of JCo’s.
    Regards,
    Mithu

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Error in consuming RFC Webservice in webdynpro

    Hi,
         I am trying to consume RFC Webservices in webdynpro.For that i created Z- functional module for availability check.But once i am deploying this application ,all the input fields of the corresponding application are disabled.
    The error is like
    Exception on execution of web service on destination 'DEFAULT_WS_EXECUTION_DEST' for operation 'ZwrMaterialAvailability' in interface 'ZWebService'
    Can someone help me to resolve this error?
    Thanks,
    Kundan

    Hi Saravanan ,
                             Thanks for your replay.
    Once i am testing the WSDL URL in netweaver webservice navigator,it showing an error like like
    Cannot download WSDL from http://host name.sap.com:8000/sap/bc/srt/wsdl/sdef_ZWEBSERVICE/wsdl11/ws_policy/document?sap-client=800: It is not allowed to access this service.
    But same URL is working fine in browser.It's displaying the XML file.
    Can you provide the solution to resolve this error?
    Thanks,
    Kundan

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • Getting error in consuming google webservices from JspDynPage

    Hi All,
    Getting following error while consuming google webservices from JspDynPage
    An exception occurred while processing a request for :
    iView : GoogleSer.google
    Component Name : GoogleSer.google
    Could not find portal application com.company.global.enterprise.portal.wsdl.webservices.service.
    Code :
    MyGoogle googleService =
    (MyGoogle) PortalRuntime.getRuntimeResources().getService("com.company.global.enterprise.portal.wsdl.webservices.service.MyGoogle");
    GoogleSearchResult result = googleService.doGoogleSearch("google", "SAP", 0, 10, false, "", false, "", "", "");
    ResultElement[] results = result.getResultElements();          
    if(results != null) {
    response.write("<br> Search Result Size " +results.length );
    for (int i = 0; i < results.length; i++) {
    response.write((i + 1) + ": " + results);
    Thanks
    Rudra

    Hi,
    I am still having the same problem, however the scenario in which I am getting varies.
    I am getting this exception:
    "com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message."
    Some users when trying to login into the portal are getting blank screen and for some the portal launcher page is loading fine and could go to the Home Page.
    When I view the logs I am seeing the Nested Soap Exception.
    Any Ideas??? Starting the J2EE engine also did'nt help.
    Thanks in advance.
    Madhavi

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

  • Access "Business Intelligence Consumer Services (BICS)" over WebDynpro Java

    Dear all
    I have to access the SAP BI from WebDynpro Java.
    At the moment I do this over the BI-JAVA-SDK which has unfortunately no integration with the BEx-QueryDesigner.
    Therefore my question:
    1. Is it possible to access the SAP BI over the "Business Intelligence Consumer Services (BICS)"? And if yes, where can I find the corresponding documentation? (I have not found it by myself)
    2. What is your preferred way to get data from the SAP BI in WebDynpro Java?
    Greetings
    Rolf

    Hi
    Did you solve problem with number 1?
    Aleksander

  • Geeting exception while executing BPM webservice from webdynpro.

    I have created a webservice to start BPM process.
    If I am testing from webservice navigator it works fine and BPM task gets created in my UWL. But when I execute this webservice from webdynpro I get the below error
    Exception on execution of web service with WSDL URL 'http://pepu56:50000/bpm/demosapcom/lngtranslationprocess/StartService?wsdl' with operation 'NewOperation' in interface 'TranslateBPMWSDLFile'
    Please note that : I have deleted the output part from both binding and PortType section of this webservice.
    Edited by: pramod bagauly on Jan 17, 2012 10:16 PM
    Edited by: pramod bagauly on Jan 17, 2012 10:18 PM

    I was doing a silly mistake. I was not running my webdynpro application from portal. I was running my application through "Deploy new archive and run" option.
    I got this clue to run this app after login into portal from the fact that when I was running webservice from WSNavigator I was prompted to pass user credential to execute this service.  I had not given any authentication option while creating web service, so just guessed if I run it from portal my user credentials might be taken. And it worked for me.
    I really don't know why I was asked for user credentials in WSNavigator and how my user credentils would have taken when I ran this app from portal. But this is how I am not getting this error.
    Edited by: pramod bagauly on Jan 18, 2012 8:27 PM

  • Reg: calling default desktop page of enterprise portal from webdynpro java

    hi Experts
    Here is an scenario where i need to call enterprise portal desktop from webdynpro java application.
    Actually i have designed a custom Home page in  WDJAVA  and this page i have assigned as default  frame work page in enterprise portal ,so once we logon through the portal URL wewill  be getting this custom home page as default page and when i click on next button it should connect to the predefined  SAP given default frame work page.
    The thing is i am able to see the custom page and the button but when i click on the button it is opening the same custom home page only not able to log on to portal default frame work page.
    My question is how can we connect to the predefined page from the custom home page.
    please share your regarding this scenario...
    regards & Thanks
    Deepika
    Edited by: deepika_indian on Mar 3, 2010 6:05 AM

    hi Experts
    you didnt get my point  i vl give in brief
    1) that at first we are going to enter the portal URL.
    2)we are going give userid and password and click  logon button.
    3)so once we click on that button it should open custom page what we have designed in by using web dynpro java.with in this application we will have next button which should connect to the sap given predefined default desktop page.
    i hope you have got my point.
    and more over where can we get the logon action coding in which par file,if so can you give brief information related to it.
    i changed the themes master rule collection there i have assigned this custom home page ,but when i click on next button it is opening the same custom it is not connecting to the default desktop.i think this is not the write approach.
    please share your knowledge and document also related to it.
    Thanking you
    Deepika.

  • Call stateless session bean EJB 2.0 from Webdynpro Java UI

    Hello,
    Can someone please tell me asto how to call a stateless session bean EJB 2.0 from Webdynpro Java UI?
    The NWDS version is 7.0.
    Thanks and Regards,
    Arya

    Hi Aryadipta
    Please check this pdfs
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b00917dc-ead4-2910-3ebb-b0a63e49ef10&overridelayout=true
    Steps for calling stateless session bean in Webdynpro java
    Go to NWDS -> open perspective ->j2ee
    select EJB Module Project ->create a project with name
    Open the Project -->RC on ejb-jar.xml -> Select new --> EJB
    Give name to EJB Bean (First letter should be in capital letters)
    select the type of bean as Stateless session bean and give the package name to store that EJB bean.
    After that Expand ejb-jar.xml and then select the <projectEJB> 
    Double click on this on method  tab double click you will get business method where we will create the methods for business logic
    Double click on projectEJB and then RC on bean tab and write required business logic in bean window as follows(based on requirement we will design a business logic).
    After writing the business logic go to project -> rebuild
    Till now we have created one EJB jar file
    then go to File-->Enterprise Application Project -->create a project (projectEAR)
    After creating a project click on next-> here we will have ear projects and then we select specific project required for our application.(here select projectEJB)
    After that Calculate EAR project will be available on j2ee explorer.
    Right click on <Bean> here
    select New->Web Service->give a name to webservice and select Default configuration type as simple SOAP
    -->click next -> Finish.
    That webservice and related are created in ejb-jar.xml .
    Expand the ejb-jar.xml.and double click on < webservice>
    RC ProjectEJB -> Build EJB Archive RC on CalculateEAR ->Build applicationarchive.
    Expand the projectEAR->RC on CalculateEAR.ear->Deploy to J2EE Engine
    Double click on calculateEAR.ear ->Webservice navigator tab ->we eill servers expand the node
    select the specific WebService  
    Here we test the webservice by click on Test and test it.
    After that go to Web dynpro perspective ->create one webdynpro Project and one component
    RC on model> Select import Web Service model(last)>give model name and package
    and select radio button as local file system or URL
    Go to WSnavigator->copy the WSDL path and paste it in model WSDL path and click on finish.
    from here onwards steps are same as that adaptive RFC model
    Hope it helps
    Thanks
    Tulasi Palnati
    Edited by: Tulasi Palnati on Aug 26, 2009 12:15 PM
    Edited by: Tulasi Palnati on Aug 26, 2009 12:43 PM

  • Creation of purchase requisition from Webdynpro Java

    Hi all,
        I have a requirement that i should create purchase requisition from webdynpro java. i imported all required BAPI in the webdynpro. But i am not getting what should i have to give as input paramater. I have imported the Bapi_Requition_Create. Please help me on thin what sould be the input parameter i should pass.
    Regards,
    Shreeharsha

    Shreeharsha,
    you can check out the fm inse37 and see what are the importing and tables parameters
    Thanks
    Bala Duvvuri

  • Has anybody created Iview from "Webdynpro Java" component in CE7.1 ?

    Hi All,
           Has anyone created Iview from Webdynpro Java component in CE7.1.
    Because the wizard that appears for creation of Iview has only "Webdynpro ABAP"
    component.There is no option to create iview from "Webdynpro Java" component.
               Althought in portal content--->Template folder i can see there is also
    another template for "SAP Webdynpro iview" which i think is for the Java scenario.
    But issue is, its not coming in the wizard.Can anyone tell me how to make it appear in the wizard ? It will be of great help to me.
    Thanks and Regards
    Ashis

    Hi Ashis,
    your deployed webdynpros are published under "web dynpro applications". just copy the webdynpro from there and paste it into the portal content section.
    http://help.sap.com/saphelp_nwce10/helpdata/en/ce/e0d6f54ae641fc9566501cffaa8c6c/frameset.htm
    Hope that helps you.
    Best wishes, Jens

  • Can we access PI tables from WebDynpro Java via PI 7.1?

    Hi Experts
    Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
    https://www.sdn.sap.com/irj/sdn/javadocs
    Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
    Thanks
    Neha

    Hi Neha,
    You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
    I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
    Hope this is useful.
    Regards,
    Seema Rane.

  • Trigger MDM workflow from Webdynpro Java

    Hi All,
    After updating records in MDM, I want to trigger an MDM workflow from Webdynpro Java and pass those updated records to workflow. Any inputs on how to accomplish this. Workflow has already been developed using MSVISIO by the MDM team.
    Thanks,
    Tom

    By following steps, it is possible to integrate  workflow (or any workflow designed in MDM) within portal:
    1. UWL (Universal Worklist): The UWL gives users unified and centralized way to access their work and the relevant
    information in the portal. It collects tasks and notifications from multiple provider systems. One can expose MDM
    workflow functionality on Portal using UWL.
    2. JAVA APIu2019s: MDM Java API consists of set of classes related to MDM workflows through which one can create an
    application that provide the MDM workflow functionality and expose the application as an iView in the portal.

Maybe you are looking for

  • Sap notes for 103 movement type and 105 movement types in sap

    Hi all, Please let me know if there are any sap notes for 103 movement type and 105 movement type in sap as soon as possible points will be awarded. thanking u in advance, srinivas.

  • CS3 Image Display Unstable-causes crash

    Unable to drag or move large images around Photoshop CS3. As I open more images the problem increases until at around 4-8 images, PS will crash. Also, while working on an image, as I add layers and increase the history list, it becomes unstable and m

  • Loop in sf

    Hi Friends, What is the use of loop in table(main area) in smartforms??

  • Link to OPEN Window to C: FOLDER on MyComputer

    Hi, In an HTML region, how can I put a link to Open an EXPLORER WINDOW to a specific folder on the user computer ( exemple C:)? thanks, Roseline Edited by: Roseline on 26 nov. 2009 09:34

  • How to type the "`" key?

    I have the "`" character in my wifi encryption passkey but I can't for the life of me find it on the keyboard. An alternative is if there is a way for me to configure the touch's wifi settings from within itunes.