Web Dynpro application calling external web server using HTTPS giving error

Hello,
I don't know whether this is the right question in this forum but my ABAP web-dynpro applicaiton is expected to call another HTTP application on external web server through HTTPS. Presently it is calling through plain HTTP but we want to have HTTPS.
Here are the steps that we followed based on the link from help.sap.com
1] Received the certificate files from external web server
2] Created SSL Anonymous client
3] Imported the certificate files under this client and added into the certificate list
4] Re-started ICM
5] Created RFC Destination of type HTTP to connect to external server with SSL option and basic authentication. This RFC destination was working under plain HTTP.
When tried with Test connection it gave error "ICM_HTTP_CONNECTION_FAILED".
Any idea what might be missing. Thanks in advance.
Regards
Rajeev

Used proper certificate after which the error went away

Similar Messages

  • Calling a Web Dynpro application from a web application

    Hi everyone, I've got a problem I hope someone can help me resolve.
    What I wanna do is to show a login form, which is part of a J2EE web application (contained in a SAP Web AS), an after the user submits the required information, I have to redirect the user to a Web Dynpro application, which is contained in the same Web AS, but I have to redirect this user using single sign on.
    I'm not sure about what I have to do, I'm new in these technologies, I think I need to use UMFactory, but I have made some investigation and I'm not so sure about what I have to do yet, can anyone give me a hand with this?

    Hi Joel,
    Please follow the documents below
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/80fbc690-0201-0010-1aba-93d5c8232b4a
    http://help.sap.com/saphelp_nw04s/helpdata/en/b0/4d2b418a3edb2be10000000a1550b0/content.htm
    Hope this helps.
    Regards,
    Kiran Kandepalli.

  • Which sy variable is initiated when web dynpro application call rfc of r/3

    Hi,
    My question is that when i pressed my web dynpro application button which called rfc at r/3 at that time which system variable will initiated.
    Regards,
    Gurprit

    Hi Gurprit,
      All variables of sys structure will be intiated.
    regards,
    Ganga.

  • Exchanging data between a Web Dynpro application and SAP Web Shop

    I'll try to keep this as clear as possible:
    1) We have the SAP Internet Sales system running, which has a series of Business Object classes and corresponding Backend Layer objects that can return data from several sources.
    2) We are able to create our own Backend Layer objects that would return data from a component called IPC, which is a Java component.
    3) I would like a Web Dynpro application to retrieve data from this backend layer object, but I am not experienced enough with Java to know if what I want to do is possible. I don't think that I can use JCo, because I am trying to get a Java component (class?) in Web Dynpro to access a Java class remotely.
    4) I think I am asking is this: is there a way for a Java to Java connection to be created, much like Web Dynpro can use JCo to connect Java to ABAP systems?
    If this is a glaringly obvious question to Java programmers, my apologies!
    - Tony.

    Somebody on another forum recommended using RMI. Which would be the better option in terms of ease of implementation?
    - Tony

  • Connect Web Dynpro Application to a Web service

    Hi experts,
    I am trying to connect a Web Dynpro application to a SOAP Web service.
    I have downloaded the WDSL code and save it to a file in my hard disk.
    I used the create model wizard (Import adaptive web service model) and created a model in my Web Dynpro application.
    I have connected the component controller with the model and the view of the application to the controller.
    All content node elements that have created automatically in the model, have in cardinality property the value 0..1.
    I created input elements in the view but they are gray and not available (disabled).
    The read only properity of the input elements has the value "false".
    I tried to initiate the input element by putting the following code in wdDoInit() but with no luck.
    wdContext.nodeRequest_ProcessTransaction().nodeProcessTransaction().nodeTransactionRequest().nodeHeader().nodeMerchantInfo().currentMerchantInfoElement().setAcquirerID("xxxx");
    Can someone help with this?
    Thanks in Advanced.

    Hi,
    After importing the model, you need to create the instance for the model. Instantiate the Request object and then set the input parameters. Then you have to call the execute function, then the model will be executed and you will get  the data.
    Also instead of putting the code which you have wriiten in init, you can use:
    wdContext.nodeMerchantInfo().currentMerchantInfoElement().setAcquirerID("xxxx");
    You can directly access the node, no need to traverse the whole hierarchy.
    Regards,
    Manoj

  • Navigate from Web Dynpro application to an iView URL using parameters

    Hi all,
    I have a problem navigating from a Wed Dynpro application to an iView URL. For the navigation, I use the WDPortalNavigation.navigateAbsolute() method. The navigation works fine, unfortunately any parameter that I pass to the iView URL is ignored.
    Here is the code I use:
    WDPortalNavigation.navigateAbsolute(
    "ROLES://portal_content/rack_visualization/RackView",
    WDPortalNavigationMode.SHOW_INPLACE,
    WDPortalNavigationHistoryMode.ALLOW_DUPLICATIONS,
    "space=1&style=3&rack=none");
    The RackView iView is based on the "iView URL" template. I expect that the navigation points to a URL like my_encapsulated_url?space=1&style=3&rack=none. Unfortunately the parameter passing doesn't seem to work.
    Any help would be greatly appreciated!
    Thanks,
    Christophe

    did u get this working ???
    I have a similar issue with the url iview.
    thanks
    venkat

  • Web Dynpro application connecting to sql server

    Hi,
    I want to fetch data from SQL Server using webdynpro. Can anyone suggest me the steps to do this? I need to connect the SQL Server also to portal. I found one using visual admin another using system object in portal. Which is better way and how can use that connected system in coding to retrive data.
    Please help me. Points will be awarded for helpful answets.
    Thanks,
    Raz

    Hi,
    You place the code where ever you want to establish the connection to the data base which is located remotely in a diffrent IP from NWDS.
    The requirement for this we have 3 jar files.Which you have to copy in the lib folder.
    those are:-
    1.msbase.jar
    2.mssqlserver.jar
    3.msutil.jar
    XX.XX.XX.XX->IP Address
    XXXX---->Port no
    Code:-
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    conn = DriverManager.getConnection( "jdbc:microsoft:sqlserver://XX.XX.XX.XX:XXXX;databaseName=TrackingSystem","sa","sa" ) ;
    Statement st = conn.createStatement();
    String str = "select * from User Table";
    ResultSet rs = st.executeQuery(str);
    while(rs.next())
    String str1 = rs.getString(1);
    wdComponentAPI.getMessageManager().reportSuccess(str1);
    Thanks & Regards,
    Lokesh.

  • ADF Mobile : Rest call to a webservice using https - Certificate Error

    I'm trying to connect to a web service giving json and which uses https. I am using the following code.
    Also SalesApp connects to https://abc.com
    RestServiceAdapter restServiceAdapter = Model.createRestServiceAdapter();
    restServiceAdapter.clearRequestProperties();
    restServiceAdapter.setConnectionName("SalesApp");
    restServiceAdapter.setRequestType(RestServiceAdapter.REQUEST_TYPE_GET);
    restServiceAdapter.setRetryLimit(0);
    restServiceAdapter.setRequestURI("/sales/rest/v1/resources");
    try {
    response = restServiceAdapter.send("");
    I am getting an error of " Certificate was issued by an unrecognized entity ".
    Is there anyway to ignore the certificate warning ? Any request properties which can help with this?
    I'm not looking at adding any private certificates/verfying the certificate issued by server, just want to ignore the warning
    and proceed with the rest call.

    Hi, sure you will need to register your private certificate with ADF Mobile's embedded JVM. This is a security mechanism - the JVM we embed will only recognize certificates from well-know CA out of box. However, you can register your private certificate with the JVM. The steps are described in the ADF Mobile Developer Guide: http://docs.oracle.com/cd/E35521_01/doc.111230/e24475/security.htm#CDDCCDFF.
    Please note that you will need to be very careful when registering the JVM - extra spaces for example will cause certificate error and it could be hard to diagnose. Please ensure all the fields matches exactly with your private certificate's fields.
    Thanks,
    Joe Huang

  • Problem of Creating a web dynpro application based on a car rental web serv

    Based original SAP developer studio examples shipped with the developer studio, I first create J2EE application “QuickCarRental”. It works at http://192.168.254.4:50300/QuickCarRental.
    A web service “QuickCarRentalWebService” is defined in J2EE application “QuickCarRental”. My web dynpro application “TutWD_CarRental” is web service consumer invoking “QuickCarRentalWebService”.
    When I deploy “TutWD_CarRental” on SAP J2EE engine and  run the application at http://192.168.254.4:50300/webdynpro/dispatcher/local/TutWD_CarRental/CarRentalApp, i can see the web dynpro web application interface right.
    however, I get the following error when I input some data and Click button rent a car.
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
    when i click Display all bookings, the error is:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.
    I install SAP developer studio on my winXP desktop, and the SAP developer studio version is 2.0.10.
    I have my SAP Web application server and J2EE engine Version 6.40 run on a different machine. the SAP server IP address is 192.168.254.4
    could anybody give me some clue on this. is that because i miss some configurations on SAP server for enabling web services of “QuickCarRentalWebService”?
    Thanks!
    Thomas

    HI
    Find here.
    https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/9fc0e990-0201-0010-199c-e38fc6dafb5d
    Thanks
    Lohi.

  • Using Web Dynpro authentication for a Web Service call

    Hi all,
    I want to develop a Web Dynpro that calls a Web Service running on the same Web AS (7.0). The Web Dynpro will be integrated in a Portal. The web service that has to be called is automatically generated when we create a guided procedure :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/44c59fd7c72e84e10000000a155369/frameset.htm
    In my Web Dynpro, I imported the WSDL of this WS and created a model.
    The first time I tried to call the WS in my Web Dynpro I got an authentication error :
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested URL was:"http://<myHostName>:50100/GPRuntimeFacadeWS/GPProcessExposing?style=document&pid=CA544E9B629A11DB91480017A48D672A&pver=0.5"
    So I hard-coded an HTTP authentication :
         model._setUser("myWASuser");
         model._setPassword("myPassword");
    And the Web Service call now works.
    Now the next step is that the WS call is made by the user that runs the Web Dynpro. So I found this documentation :
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e8e95d1eba48dfa86ae91ad8816f5d/frameset.htm
    It would resolve my authentication problem, AND the transport issue : at the moment the Web Service URL is stored in the Logical Port of the WD model, and at transport time, a rebuild of the WD project will be needed.
    So I applied what is said in the doc : from the point of view of the Web Service consumer, I just had to add :
        model._setHTTPDestinationName("STARTGP");
    (where STARTGP is the name of the destination I created in the Visual Administrator with a "Logon Ticket" authentication.)
    before the execute(), and I removed my hardcoded authentication.
    Unfortunately, nothing changes... I still get a 401 authentication error.
    Does anyone have an idea about this ? Or maybe a workaround ?
    Thanks in advance for any suggestion.
    Regards,
    Julien

    Hello Julien,
    I have a scenario similar to yours. A client webdynpro application accessing a EJB methods exposed as web service. Those EJB's methods calls R3 RFC's. The client requirements' was to allow SSO through all the layers (Webdynpro -> EJB WS -> RFC). The Webdynpro and EJB's are deployed on the same WAS.
    Solution:
    1 - Create a RFC Destination on Visual Administration provide the R3 connection parameters and set the Authentication for "Current User (Logon Ticket)". Save your Destination;
    2 - In your EJB Project open your Web Service Configuration, on the Security page, set:
        Authentication Mechanism: HTTP Authentication
        Basic (username/password)
        Use SAP Logon Ticket
    3 - In your EJB, implement the following code to create JCO Client for the RFC invocations:
    Object obj = ctx.lookup(DestinationService.JNDI_KEY);
        DestinationService dstService = (DestinationService) obj;
        RFCDestination dst = (RFCDestination) dstService.getDestination("RFC", "<YOUR_RFC_DESTINATION_NAME>");
        Properties jcoProperties = dst.getJCoProperties();
        JCO.Client jcoClient = JCO.createClient(jcoProperties);
    4 - In your EAR Project, open your "application-j2ee-engine.xml" and add the References:
         "tc/sec/destinations/service" as Service
         "tc/sec/destinations/interface" as Interface.
    5 - Create your EAR File and Deploy;
    6 - Check if the web service now requires Authentication: go to http://<host>:<port>/index.html and click on Web Services Navigator. Test your Web Service. Your Web Service should requiere you to log in before execute the test;
    7 - Go back to your Visual Administrator and create a HTTP Destination. Provide your WS URL (should be something like "http://<host>:<port>/<WS_NAME>/Config1?style=document"). Choose Authentication: Logon Ticket. Save your Destination;
    8 - Go to your webdynpro project, import your WS Model. (If you have already created it, you have to delete it and import it again, refer to this blog on how to reimport WS Models: /people/bertram.ganz/blog/2005/10/10/how-to-reimport-web-service-models-in-web-dynpro-for-java  How To Reimport Web Service Models in Web Dynpro for Java );
    9 - Open your model's Logical Ports node, go to the Security tab, and choose "Use SAP Logon Ticket";
    10 - In your webdynpro code, before you call the ws invocation (should be something like that: <YOUR_NODE_DEFINITION>.modelObject().execute();), include the following line:
    <YOUR_NODE_DEFINITION>.modelObject()._setHTTPDestinationName("<YOUR_HTTP_DESTINATION_NAME>");
    11 - Save All Metadata and deploy your Webdynpro App. Test your results.
    I hope it helps you, as the documentation on how to implement this scenario is scattered through the SDN and all the SAP help portal.
    Best regards,
    Paulo.

  • Error using tabs in Web Dynpro application

    Hi all,
    I am working on a web Dynpro application where I want to use "tabs" to display different vendor details, basically I need two tabs one for header data, one for address data. What I did is I created a group and there created the element for the user to enter the vendor number and also created a button and binded it with the BAPI, now I created a tab using tabstrip and then inserting the tab and adding the element to the tab (in my case i m using the table type), once I finish this and try to do the syntax chek i am getting this error:  "ACC: Element "TAB" does not have a header"
    Can you please help me with this?
    Thanks,
    Rajat

    Looks like i was missing some step... I deleted everything and then re created and this time it works.

  • Getting error "Access via null" when running the web dynpro application

    Hi experts,
    I am getting the below error while executing my web dynpro application
    500 SAP Internal Server Error
    ERROR: Access via 'NULL' object reference not possible. (termination: RABAX_STATE)
    I am getting the error only when I am calling a method create manufacturer from my web dynpro program. If i comment this code my application works fine
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
      EXPORTING
        gi_manufacturer = ls_manufacturer
      IMPORTING
        lv_message      = lv_status
    i have created a attribute mo_ch_instance of type YSRM70CL_CH_SW_MD  where YSRM70CL_CH_SW_MD is the class which has the create_manufacturer method that i am using in my code.
    Kindly let me know whats the issue.
    Regards,
    Vinod

    Hi,
    if   wd_this->mo_ch_instance is not initial.
    CALL METHOD wd_this->mo_ch_instance->create_manufacturer
    EXPORTING
    gi_manufacturer = ls_manufacturer
    IMPORTING
    lv_message = lv_status
    endif.
    Check wether you have created the object for that class r not.
    Regards,
    Lekha.

  • How to Debug a BAPI from a Web Dynpro application

    I have a Web Dynpro application calling a BAPI, and I would very much like to see what data the Web Dynpro application is passing into the BAPI, and then debug the BAPI.
    Is there a way to do this? I'm wondering if it is possible to somehow set up the ABAP stack so that on receipt of the BAPI call, it appears on the tRFC queue waiting for execution.
    However it is done, I need a way to step through the BAPI on the ABAP stack.
    BR,
    Tony.

    Hi Anthony,
    The ABAP runtime environment contains various tools that you can use for analysis purposes, such as for debugging source code. All source code written for Web Dynpro applications in ABAP can normally be tested using the debugger.
    To allow it to test other Web Dynpro-specific program entities too, the debugger has been equipped with a special enhancement. In the phase model in the active application, you can typically see the following information at various points in time:
    -The structure of the content of the current controller,
    -The properties of the UI elements in the layout of the current view
    -The currently instantiated component usages
    Starting the Debugger
    The functions for debugging Web Dynpro entities are embedded in the new debugger. You therefore need to have selected the new debugger in your Workbench settings.
    Selecting the New Debugger
    1. In the menu, choose Utilities -> Settings.
    2. A dialog box now appears that contains two nested tab page areas. Choose the “parent” tab page ABAP Editor.
    3. The settings for ABAP Editor always open with the content of the child tab page Editor. Here, select Front End Editor (New).
    4. Now switch to the Debugging tab page in the ABAP Editor settings and select New Debugger.
    5. Save your changes and close the dialog.
    Starting the Debugging Process
    To run an application in debugging mode, you first need to set an external breakpoint in display mode in one of the methods in the component.
    Now start a test run of the application from ABAP Workbench as usual.
    The method in which you set the breakpoint depends on the purpose of the test run. To debug a view, for example, it is best to set the breakpoint in method WDDOMODIFYVIEW. Provided that the context of the view controller is not filled using a supply method, the view is fully instantiated in the phase model at this point in time.
    Selecting the Web Dynpro Tool in the New Debugger
    When you start the application, another session opens automatically for the debugger. If you have not yet saved any personal settings with regard to the layout of the debugger, the Editor tool will now appear on the left, with the Display Variables tool on the right.
    1. Select one of the three desktops in order to reconfigure it for debugging the Web Dynpro application (see Designing Work Areas).
    2. The right-hand edge of the debugger window has a bar of function icons. Choose the Replace Tools icon:
    3. In the next dialog box (New Tool) open the lowest node (Special Tools) and choose Web Dynpro.
    4. Confirm the dialog box.
    On the right of the debugger desktop, you will see that the previous tool has now been replaced by the Web Dynpro debugger. You can save this setting for future debugging activities. To do this, choose Save Layout In the debugger’s general toolbar.
    Thankyou,
    Ramganesh.

  • GP, callable object Web Dynpro Application (bespoke) not appearing in list

    Hey y'all
    We're developing our first GP, and we would like to call an existing bespoke Web Dynpro. When creating the callable object, we're selecting type Web Dynpro Application, but our Web Dynpro screen is not appearing in the drop down list on the next page. We think that this is because the application has been deployed to a different server (i.e. it has not been deployed onto the portal server).
    So the question is, has anyone faced this problem before, and is there a solution?
    Kind regards
    Jon

    Hi John,
    Please have a look at this Exception on creating GP Action
    This will solve your issue definitively. Do not take care of a given SDA, just redeploy everything and make sure that everything is overwritten by selecting the right option.
    Best regards,
    David

  • Adobe form data not being retrieved by Web Dynpro application

    Hi,
    I have created an online interactive Adobe form embedded in a Web Dynpro ABAP application.  The Web Dynpro application calls a function module to update data in SAP.  My problem is that the ABAP code that was generated to retrieve the data from the Adobe form and call the function module does not retrieve the data if it has been typed into any of the input fields.  Oddly enough, it does work if the data is entered by using the value helps that have been placed on the form. 
    I would appreciate any suggestions.
    Thanks!
    Russell

    Use messageboxes on various events to find out when your value dissapeears.
    If you´re not sure about the binding, you can always drag/drop from data view tab onto the layout and check the binding which the system generates for you. Just to make sure.
    Regards Otto

Maybe you are looking for