Using HttpsURLConnection Error - from Web Dynpro

I have this case where I need to connect to a https site using SSL api.
I'd created a java class to connect to the https site using the normal "javax.net.ssl" package provided by J2SE api. And this work successfully.
However, there will be a problem if i trigger an action from the view to call for this java class, there will be an error.
One thing which i found weird is :
1.) If i use the normal java class to connect to the https site, it uses this connection protocol :
sun.net.www.protocol.https.DelegateHttpsURLConnection:https://server/test/test1.jsp  (Works successfully)
But
If I call this java class from a view, it uses this connection protocol :
iaik.protocol.https.HttpsURLConnection:https://server:443/test/test1.jsp  (Unable to work)
How am i to make the web dynpro to use this "javax.net.ssl" api? I tried removing two of these library file :
iaik_jsse.jar
iaik_ssl.jar
but the error still occurs.
Does anyone have any idea how to solve this problem? Thanks.

Hi jo lum
did you solve the problem? I am facing the same. Maybe you can give me a hint.
Thank you in advance
Martin

Similar Messages

  • How to change the Portal Password using a link from Web dynpro application

    Hello Everybody,
    I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
    Thanks to all,
    Regards,
    Saby.

    Hi Maksim,
    Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
    Thanks in advance.
    Regards,
    Sarabjeet Singh.

  • Getting following deployment error from Web Dynpro. Please help.

    Feb 17, 2009 3:13:36 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [016]Deployment aborted
    Settings
    SDM host : tpepqa
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/DIPESH1/LOCALS~1/Temp/temp514457433364913160Welcome.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/DIPESH1/LOCALS~1/Temp/temp514457433364913160Welcome.ear
    Aborted: development component 'Welcome'/'local'/'LOKAL'/'0.2009.02.17.15.13.26'/'0':Caught exception during application deployment from SAP J2EE Engine's deploy service:java.rmi.RemoteException: Cannot deploy application local/Welcome.. Reason: Clusterwide exception: Failed to deploy application local/Welcome. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/Welcome. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine? (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted

    hi Dipesh,
    The error may be due to :
    1)some dependent dc's are not deployed on the server .Please do deploy it first.
    2) some ear with the same name is already existing on the server.So it is not able to deploy this one. For this one , the solution is change the application name and component name and deploy again.Hope this will work out.
    Thanks,
    Parama.

  • Authorization error calling a XI web service from Web Dynpro

    Hi all,
    I'm trying to communicate to XI from a Web Dynpro application but I get an Unauthorization error (401).
    I've generated a WSDL in XI and import it to web dynpro as a new Model. But when a I call the web service, the exception "Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized." appears.
    I don't know how to pass the right user and password from Web Dynpro, I've tried the web service from SOAP client tools and it works fine.
    I'll apreciate any help.
    Regards,
    Diego.

    Hola mi  nombre es Luis,
    Creyendo que eres español te escribo en tal idioma.
    He visto que a ti también te devolvía un error de autentificación 401, y que lo subsanaste, pero a mi con la solución que te dieron no me vale, ya que implemento el código que te ofrecieron para arreglarlo y ahora me da un fallo de "Server Error" poniendo en usuario y password, los correspondientes a XI.
    +Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay req=new Request_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay();
    wdContext.nodeRequest_MI_outTurnoverDetailsDisplay_MI_outTurnoverDetailsDisplay().bind(req);
    req._setUser("username");
    req._setPassword("password");+
    No sé si es que ese usuario y contraseña son otros distintos.
    Si pudieras ayudarme, te lo agradecería.
    Un saludo, Luis

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • Trigger File Generation to a Server from Web Dynpro Application

    Hi Everybody! Hope you had a good new years eve
    Is it possible to generate a File on a Server outgoing from Web Dynpro?
    I tried to use GUI_DOWNLOAD. But as I couldn't use the GUI_DOWNLOAD from the Web Dynpro, I wrote a Report "ZCMI_EXPORT_FILE" that generates a Text-File. When I start the Report by myself, the file gets generated. All fine.
    To be able to generate the File from Web Dynpro, I created a Batch Input Function Module, that I call in the Web Dynpro. The File is not created and it does not show any errors.
    Do you have any idea how i can get this working? I'd also be happy with a different approach.
    Best Regards and Thanks,
    Steffen
    REPORT that is called with Batch Input from Web Dynpro:
    call function 'ZFM_GENERATE_EXPORT'
      exporting
        it_detail_record     = lt_records
        is_export            = gs_export
      importing
        ev_string            = gs_export-document
        et_dataset           = data_tab
      exceptions
        parameter_is_initial = 1
        others               = 2.
    if sy-subrc <> 0.
    endif.
    concatenate '\\SERVER\EXPORT\' gs_export-filename into lv_filename.
    call function 'GUI_DOWNLOAD'
      exporting
        filename                = lv_filename
      tables
        data_tab                = data_tab
      exceptions
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        others                  = 5.
    if sy-subrc <> 0.
      exit.
    endif.

    HI,
    GUI_DOWNLOAD does not get's executed in the Backgroud.
    there is no way to do it as a background job.. create the folder.. transfer the file to the application server in the backgorund using OPEN DATASET... use the tcode CG3Y to download the file from the app server to your folder..

  • Pass Parameters to an external appl when launched from web dynpro ABAP .

    I want to Pass Paramaters to an external application when launced from Web dynpro ABAP . I have successfully launched an .exe file ( Notepad / eViewHSEditor ) from Web dynpro using the logic from Standard WD_TEST_APPL_ACFEXECUTE component  But I am unable to Pass paramters to the .exe file .
    example :-  I would like to pass parameters  text1 text2 in the arugement list and I expect it opens an untitled notepad and in the file it will have parameters text1 text2 . But it is behaving in a different way . Below are the detailed steps of what I have done .
    The steps that I followed :-
    1)  Right now I have created the white list Configuration for Notepad.exe
    2) I have created 1 and 2 postions both of type string and permission Legal .
    3) The Paramter Value is * for both 1 and 2 .
    4) I activated the whitelist and it generated an .XML file
    5)
              application = 'C:
    WINDOWS
    system32
    notepad.exe'.
              argument = 'text1 text2' .
              co_element :- I am reading the element from the conrtext .
          co_element = wd_context->get_lead_selection( ).
          co_element_stru-attribute_name = 'ERROR'.
          co_element_stru-element = co_element.
          wd_this->acf_method_handler->if_wd_acfexecute~execute( application =  application
                                                                 argumentlist = argument
                                                                 errorinformation = co_element_stru ).
    when i execute  the application , it is trying to launch a notepad with file  'text1  text2.txt'  and it doesn't have one , it is asking do you want to create .  If You yes, it will open notepad with name 'text1 text2.txt' . If you Pass abcd in the arugement list , if the file with name abcd.txt exists , it opens the notepad with that file name .

    You try to open notepad from your PC with the same command, you will the same result.
    start->run->notepad "test1 test2". You get the popup saying that "test1 test2" file is not existing. You can google it to find a way to pass the text while opening notepad and try to fit that in your WebDynpro argument. I doubt if it is possible though.

  • Update cluster table from Web dynpro

    Hi
    I am trying to export data to a cluster table from web dynpro using this statement:
    EXPORT zhr_sanct_st100 FROM zhr_sanct_st100 TO DATABASE zhr_clrm(ep) ID zhr_clrm-srtfd.
    same piece of code work well if I include it in a report program through se38, but If I use it in Web dynpro, it doesnt update the cluster table and there is no error shown.
    please reply ASAP.
    Vishal kapoor

    Thanks for your immediate reply. it worked this way:
    IMPORT structure name TO structure name
      FROM DATABASE cluster table name
      TO wa_zhr_clrm
      ID zhr_clrm-srtfd.
    initially i missed to insert a work area wa_zhr_clrm, which has all the key fields of the cluster table.
    Regards
    Vishal Kapoor

  • Another image question - using Regular ABAP not web dynpro

    Following Otto's awesome instructions:
    1) create image field in your form (not only image!! it must be the image field)
    2) load your picture in the backend
    3) convert the image into XSTRING
    4) create the XSTRING variable in the interface/ context, fill it with the picture data
    5) bind the image field to this variable
    6) enjoy
    Regards, Otto
    We can easily get an image to appear on a form produced from Web Dynpro ABAP using an XML interface.
    However, we are having an issue doing the same using a regular ABAP report and Data Dictionary interface.
    We added a new field to our DDIC structure called signature TYPE RAWSTRING (we can't define a new domain with type X since SAP doesn't allow that, but they are both Variable Length Byte Strings).
    We use the exact same code to upload the same image from UNIX, we see the byte string in our variable, but no image appears on our form (using the ImageField object).
    We then created a Global variable with type Xstring in our interface. We pass our binary image to the function module. Through debugging, I see that an error occurs because the gloabl variable states it's max characters is only 255.
    any ideas?

    Otto,
    thanks for the replies.
    I did make sure to embed the image. We tried both jpg and bmp, but neither worked.
    for testing, I hardcoded this in the WD and it worked. I copied it over to our ABAP method
      DATA: lv_ds TYPE string VALUE '/sapmnt/DEV/interface/renewables/pbch-1/archive/352.bmp',
                 lv_xstring TYPE xstring.
      OPEN DATASET lv_ds FOR INPUT IN BINARY MODE .
      CHECK sy-subrc = 0.
      DO 1 times.
        READ DATASET lv_ds INTO lv_xstring.
        IF sy-subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
    This gets me an Xstring field that's 1272 long.
    I pass the lv_xstring field directly to the FM IMAGE field, which is defined as an Xstring in the PDF Interface
      CALL FUNCTION ls_function
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
          is_scale_stng      = ls_scale_stng
          it_scale_tkti      = it_scale_tkti
          it_scale_seal      = it_scale_seal
          is_scale_tkt       = ls_scale_tkt_print
          image              = lv_xstring          " <---- pass the xstring image
        IMPORTING
          /1bcdwb/formoutput = ls_form_output
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
    Stepping into the FM, I see that IMAGE now has the same size of 1272
    In my PDF Form layout, I dragged/dropped the ImageField object on my form.
    I found the IMAGE field in my Data View tab and dragged/dropped that onto the ImageField to Bind it.
    I checked 'embed image data'.
    I checked the form properties and the layout was set to 'Standard'. I changed it to ZCI, as well.
    I know the data is coming across because I can drag/drop the image field from the Data View directly on the form as a Text Field and see the hex data come through.

  • "UnknownHost" exception while connecting to mysql from web dynpro

    Hi
    I am trying to connect to Mysql 5.0 database from web dynpro application.I am using NWDS 7.1.
    I have followed this blog and created the datasource in NWA.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8675
    I have written the following code in my web dynpro application.
    InitialContext ctx;
           try{
                ctx=new InitialContext();
                DataSource ds=(DataSource)ctx.lookup("jdbc/dbconnect");
                Connection conn=ds.getConnection();     
                wdComponentAPI.getMessageManager().reportSuccess("connected");
                Statement stmt=conn.createStatement();
                   String query="select Col from TestTable";
                   ResultSet res=stmt.executeQuery(query);
                   while(res.next())
                        String str1=res.getString(1);
                        wdComponentAPI.getMessageManager().reportSuccess(str1);
              }catch (Exception e) {
                   wdComponentAPI.getMessageManager().reportSuccess(e.getMessage());
                   // TODO: handle exception
    But I m getting the following error as "UnknownHost exception"
    I checked with the datasource created in NWA.Here in the Driver status it is showing the driver as unknown.
    I have added the following driver.
    mysql-connector-java-5.0.8-bin.jar
    Any idea on how to solve this problem?
    Do I need to add the driver in my application also.
    Thanks in advance,
    Sumangala

    Hi,
    Have you created a datasource in Visualadmin?
    Was that tested and was it success full?
    If you havent done this this could be your issue
    make sure the following code is using the correct datasource
    DataSource ds=(DataSource)ctx.lookup("jdbc/dbconnect");
    Regards
    Ayyapparaj

  • How to use a CAS in web dynpro with NWDS 7.0

    Hi, all.
            I implemented a cas project (some entity services and application services). Now I want to use it in a web dynpro project.
    I know how to do that with NWDS 7.1, but it seems  something differernt with NWDS 7.0.
    Can  anyone give me a hand?  Thanks.

    hi
    CAF Core project comes with a sub-project WebDynpro.
    You can implement business logic using CAF Core Service ,integrate it in WebDynpro UI.
    1)Select your CAF project root , right click on it and select u201CCreate Web Dynpro Modelu201D from the context menu.
    2) Switch to the Web Dynpro Perspective
    3)You can find  the CAF Core services have been generated and are available to the WebDynpro component.
        you can find caf services under modelclasses of webdypro project .
    4)Then you proceed with creating component etc..
    Regards
    sowmya.

  • How to pass the data from web dynpro to workflow.

    hi gurus,
    how to pass the data from web dynpro to workflow.
    Regards
    vijay

    Hi
    you can use function module
    data   ls_input_container  TYPE swr_cont.
    data   lt_input_container  TYPE TABLE OF  swr_cont.
    CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
        EXPORTING
          task            = ptask
        IMPORTING
          return_code     = lv_return_code
          new_status      = lv_new_status
        TABLES
          input_container = pinput_container
          message_lines   = lt_message_lines
          message_struct  = lt_message_struct.
    where you pass the data in imnternal table "pinput_container" as
      ls_input_container-element = 'KUNNR'.
      ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'CLUSER'.
      ls_input_container-value = lv_cluser.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'BUKRS'.
      ls_input_container-value = lv_bukrs. " youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VKORG'.
      ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'VTWEG'.
      ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
      ls_input_container-element = 'SPART'.
      ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
      APPEND ls_input_container TO lt_input_container .
    *Also Forgot to mention where ptask is your workflow ID *
    Regards,
    Arvind
    Edited by: Arvind Patel on May 14, 2010 7:38 AM

  • Passing parameters to Transactions from Web dynpro Application through ITS

    Hi,
    i need to call a transaction from Web dynpro through ITS. On action from web dynpro application, i am concatenating the respective parameters mentioned below along with URL. The problem is one parameter(VARIANT) is being passed to the t-code CAT3 correctly. The next mandatory parameter(PERNR) is not passed to the respective field.Here is the URL Code:
    CONCATENATE 'http'
    '://' host ':' port
    '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'CAT3'
    '%20TCATST-VARIANT=' lv_name2 '&CATSFIELDS-PERNR=' lv_name1 INTO url.
    Called T-Code CAT3
    Passing Parameters are:
    Data Profile TCATST-VARIANT
    Pernr: CATSFIELDS-PERNR

    Pradeep,
    iam trying to pass values from webdynpro application to SAP GUI Transaction
    here is the sample code which iam using
    CONCATENATE  'http://s0164dep01.adta.uae:50000/irj/portal/interop?NavigationTarget=pcd:portal_content/Testing/trn_iw33?'
    '%20CAUFVD-AUFNR='
                 'ApplicationParameter=CAUFVD-AUFNR='
                  lv_workorder';'
              'DYNP_OKCODE=SHOW'
             INTO lv_url.
    i could'nt able to succed as its displaying page not found exception.
    Help me on this to proceed further
    Regards
    Jaipal.E

  • Calling adobe form from Web Dynpro ABAP

    Hi Friends,
                        This is the following error, which i got when i tested my application. Calling adobe form from Web Dynpro ABAP.
      WebDynpro Exception: ADS: Request start time: Tue Nov 16 14:00:22 YEKT
      2010(200,101).
                        Can some one tell me how to solve this....
    Regards
    Sankar

    Hi,
    Please refer to this same link in forum
    WebDynpro Exception: ADS: Request start time, start Interactive Form
    WebDynpro Exception: ADS: Request start time
    Thanks
    Pradeep

Maybe you are looking for

  • BH-903 is a bad product

    Hi, BH-903 is a well designed headsed with great features but I am too disappointed with it. I bought it on january last year and received a non functional headset ( left and right keys were not working). I had to send it back to Nokia and received a

  • What is best windows compatible web share format once and for all?

    Wmv looks good, but I don't want to buy flip4mac studio. The other formats I have tried look bad and are huge files. I have searched forum for answer in vain.

  • Help installing mac os x tiger

    so i installed disc one of mac os x tiger on my macbook, and when it asks for disc two and i insert it, it loads all the way, then when my computer is turning on it goes back to the beginning of the install and keeps repeating the process. please hel

  • MS Word "Save As" in iFS

    Hello I have following problem and I am seaching for a soulution or statement: We use iFS 9.0.1.0.1 I have create my own parser. The parser look for MS Word document (doc). When I copy a MS Word document viva SMB anything is good. When I open a MS Wo

  • Alpha Effects Not showing up in Final Movie

    During playback in the timeline, everything works fine. But when I export my movie, there are a couple of alpha fades at the end that won't fade. They just appear and dissappear. All my other alpha fades work though. Whats the deal?