Downloading an XML file from Website through BPEL/ADAPTER

Hi,
I want to download an xml file from one webpage through BPEL. I am using jdeveloper 10.1.3.3 to create a BPEL process and Adapters.
Is there anyway to download the xml file from the site through FUSION middleware.

what do you mean download, is it a site where you click a hyperlink then down load the file.
This is not possible as this is invoked by human intervention. SOA suite is invoked by events. If you want to perform this kind of function you would need to create a jave service to perform this.
Is there any posibility that there is a FTP link that you could use?
cheers
James

Similar Messages

  • Downloading an XML file from Website through FUSION middleware

    Hi,
    I want to download an xml file from one website through BPEL. I am using jdeveloper 10.1.3.3 to create a BPEL process and Adapters.
    How can i download the xml file from the site through FUSION middleware?

    Another option would be to write a smal Java class the uses URLConnect to connect to the URL in question and use WSIF to bind it to the BPEL process.
    Just google for sample code.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                           

  • Dowloading an XML file from Website through FUSION middleware(BPEL/ADAPTER)

    Hi,
    I want to dowload an xml file from one website through BPEL. I am using jdeveloper10.1.3.3 to create a BPEL process and Adapters.
    Is there any way to download the xml file from the site through FUSION middleware

    Another option would be to write a smal Java class the uses URLConnect to connect to the URL in question and use WSIF to bind it to the BPEL process.
    Just google for sample code.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                           

  • Download video clip file from website, i.e., YouTube

    Can someone advise how to download video clip file from website & play it back on computer.

    YouTube video clips are flash videos. I use videobox, its shareware, with a free trial, it works for 5 days. Here's the link: http://www.tastyapps.com/ . Did this help?

  • Is there a way to download an XML file from internet to internal table.

    Hi,
    We have Two system that first is "R/3 4.6C"   and   second is  "WebAS 6.20" and prior is first.
    I tried so much ways, i searched Function modules, classes, transactions ...
    But i have not found a way to download and XML file from internet like "http://www.tcmb.gov.tr/kurlar/today.xml" to internal table.
    is it possible to do ?
    if not, i will do with Delphi and RFC but i dont want to do this outside from SAP.
    thanks
    ibrahim

    Hi Ibrahim Bhai,
    I am Facing same kind of issue of getting Data of url into internal table.
    I want to know what are the settings that need to be made in SM59 to achieve this.
    What are the parameters that need to be passed while call to FM 'http_get' .
    Full Points will be rewarded.
    In Advance Thanks.
    With Regards,
    Shahrukh.

  • Download a XML file from Web Services Using Flex

    Hi All...
    I am new for flex, im developing a windows application using Flex/Air, i have connected the web services with user authentication, now I want to download a xml file using web services in flex,
    how can i do this?? please reply...
    Thanks in advance
    Vasanth

    Hi All....
    I have done this myself using sample tutorials...
    here is the code for your reference guys
              plyLoginName = txtEmailIdDownload.text;                
                     var urlpath:String = new String("your url p?LoginName=");
                    urlpath = new String(urlpath.concat(plyLoginName));
                    urlpath = new String(urlpath.concat("&PlayerType="));
                    urlpath = new String(urlpath.concat(chkseasonvalue));
                    Alert.show(urlpath);
                var request:URLRequest = new URLRequest(urlpath)
                var fileRef:FileReference = new FileReference();           
                fileRef.download(request,"yourfilename.xml");
                Alert.show('File downloaded Successfully');   
                 txtEmailIdDownload.text = "";
                txtPWDownload.text = "";
    thanks
    Vasanth

  • Download multiple XML files from SXMB_MONI and / or RWB

    Hi
    Does anyone have a clever way to download multiple inbound / outbound XML messages from either SXMB_MONI and / or RWB. For example, I send in 100 XML files to XI. These are mapped to an IDOC. I want to download all 100 source and target XML messages 'easily' versus drilling into each and using 'Download Window 1' or 'Download Window 2'.
    Any ideas are much appreciated.
    Thx
    Duncan

    Hi Jörg,
    I try to use class CL_XMS_PERSIST with method READ_MSG_ALL but I can't find the content of the Payload in EX_MESSAGE...
    Can you help me please ?
    Thank you.
    Elisabeth.

  • Download a xml file from a server

    Hi guys,
    First of all excuse me for my disorganized english.
    I have a JSP applicaction using tomcat 4.1 wich is accesed from internet using an IIS server for the redirection.
    In my servlet I'm generating a XML file wich will be downloaded by the client, in the servlet I set up this header, like in the others forums some fellows told.
    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment;filename=\"" + nombreBorrador + "\"");
    I'm having a problem downloading a file from a server, the download dialog box says in the filename the name of the servlet instead of the name of the XML file.
    Any comments will be really appreciated.
    Best Regards
    JCh.-

    hai,
    give a print of ur variable "nombreBorrador" and check whether the name of xml file is getting passed correctly.
    Ani

  • Help........ How to download an XML file (URL) over HTTP within ESB?

    Hi,
    There is a requirement to download an XML file from the Web using Fusion middleware. The XML file is available as a URL, and is updated daily.
    http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
    We need to check if this is download is possible from within ESB.
    One Oracle consultant reported this to be slightly tricky, but possible through HTTP Binding. We never could get in touch with him again.
    So open to the forum.
    So please suggest your opinions, and icing on the cake if you can also point to some tutorial or sample code.
    Thanks,
    Amit

    just run a wget on the file and then you can pick it up with a file adapter, I note there is no XSD association with it.

  • Download XMl file from SFTP: performance issue

    Hi All,
    I am downloading an XML file of size almost 15-20 MB from an SFTP using winSCP.
    A C# code is written in SSIS script component which loops the remote directory to find the recent file then it downloads it. This process is taking almost 20 minutes to run in SSIS.
    Could anyone please suggest me the optimized solution.
    few keynotes: 1> on SFTP, there will be always more number of files, say 50-60.
                         2> file size may grow with time
                         3> comparing filename to find latest file because filename is suffixed with timestamp e.g. filename_YYYYMMDD.xml
    below is my C# code used in script component
    public void Main()
    string hostName = (string)Dts.Variables["HostName"].Value;
    string userName = (string)Dts.Variables["UserName"].Value;
    string password = (string)Dts.Variables["Password"].Value;
    string sshHostKeyFingerprint = (string)Dts.Variables["SshHostKeyFingerprint"].Value;
    string winscpexecutablePath = (string)Dts.Variables["winscpExecutablePath"].Value;
    string localOutPath = (string)Dts.Variables["User::localOutPath"].Value;
    string remoteDirectory = (string)Dts.Variables["User::ftpRemoteDirectory"].Value;
    string latestFileName = null;
    List<DateTime> fileDate = new List<DateTime>();
    Dictionary<DateTime, string> dicfiledate = new Dictionary<DateTime, string>();
    // Setup session options
    SessionOptions sessionOptions = new SessionOptions
    Protocol = Protocol.Sftp,
    HostName = hostName,
    UserName = userName,
    Password = password,
    SshHostKeyFingerprint = sshHostKeyFingerprint
    try
    using (Session session = new Session())
    session.ExecutablePath = winscpexecutablePath;
    session.Open(sessionOptions);
    RemoteDirectoryInfo directory = session.ListDirectory(remoteDirectory);
    RemoteFileInfo[] fileInfo = new RemoteFileInfo[directory.Files.Count];
    if (fileInfo.Length <= 0)
    Dts.Variables["User::isFileExist"].Value = false;
    else
    Dts.Variables["User::isFileExist"].Value = true;
    List<string> lstFileNames = new List<string>();
    for (int i = 0; i < directory.Files.Count; i++)
    lstFileNames.Add(directory.Files[i].Name);
    Dictionary<DateTime, int> dictFinal = new Dictionary<DateTime, int>();
    for (int i = 0; i < lstFileNames.Count; i++)
    if (lstFileNames[i].StartsWith("metrics_"))
    int year = Convert.ToInt32(lstFileNames[i].Substring(8, 4));
    int month = Convert.ToInt32(lstFileNames[i].Substring(12, 2));
    int date = Convert.ToInt32(lstFileNames[i].Substring(14, 2));
    dictFinal.Add(new DateTime(year, month, date), i);
    var sortedDateTime = dictFinal.Keys.OrderByDescending(x => x);
    int latestFileIndex = dictFinal[Convert.ToDateTime(sortedDateTime.First())];
    latestFileName = lstFileNames[latestFileIndex];
    // files transfer mode
    TransferOptions transferOptions = new TransferOptions();
    transferOptions.TransferMode = TransferMode.Binary;
    TransferOperationResult transferResult;
    transferResult = session.GetFiles(remoteDirectory + latestFileName, @"" + localOutPath + @"\", false, transferOptions);
    transferResult.Check();
    // Print results
    bool fireAgain = false;
    foreach (TransferEventArgs transfer in transferResult.Transfers)
    Dts.Events.FireInformation(0, null,
    string.Format("Download of {0} succeeded", transfer.FileName),
    null, 0, ref fireAgain);
    Dts.TaskResult = (int)DTSExecResult.Success;
    catch (Exception e)
    Dts.Events.FireError(0, null,
    string.Format("Error when using WinSCP to Download files: {0}", e),
    null, 0);
    Dts.TaskResult = (int)DTSExecResult.Failure;

    Hi Rahul,
    Is it possible for you to get the latest file by comparing the CreationTime of these files other than comparing the file names? If so, you can try the code in Reza’s blog:
    http://www.rad.pasfu.com/index.php?/archives/30-Find-Last-Created-File-in-Special-Directory-SSIS.html 
    Alternatively, maybe you can try a free third party SFTP Task available on the CodePlex:
    http://ssissftp.codeplex.com/ 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to link individual picker view selections to download an individual file from a website or other location such as dropbox using Xcode?

    Alright, the question I have has to deal with how to link an app to a website to download files. How, or is it even possible to link individual picker view selections to download an individual file from a website or other location such as dropbox using xcode. Sorry if this is the wrong place to post this, but if anyone can help or can send a link to a place that can, I would greatly appreciate it!

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • Unable to download pdf files from websites

    For a month now I have been unable to dowload PDF Files from websites.
    I have un-installed Adobe Software & re-installed hoping this would solve
    this on going problem. But I am afraid it has not this problem seems to
    have accured since the latest up date of Sarfari I trust Apple are coming up with
    some sort of solution to this current problem ??

    Far as I know the problem isn't on Apple's end. I'm download PDF files with no problem. But I've experienced what you are in the past and I think you were on the right track when you suspected Adobe. In the main Library folder (not the one in your personal directory) there's a folder called Internet Plugins. Look inside for a file called AdobePDFViewer and delete it. If I remember properly, you force Adobe Reader to install a new one by just starting Reader and it will ask if you want to install the PDF reader. Or, you might want to look at this plugin which, in my opinion, beats Adobe's plugin hands down.

  • How to set my computer settings to download excel and acrobat files from website

    How do I adjust settings to download acrobat and excel files from website.  I've already run a
    diagnostic on my security program and it is not a security issue. 

    You may have forgotten to post some information, but I fail to see in which way your question is related with Adobe Reader.

  • How to upload and download any file from plsql through weblogic server

    hi all,
    how to upload and download any file from plsql through weblogic server? i am using oracle 10g express edition and jboss.
    Thanks and Regards,
    MSORA

    hi bala ,
    for a windown server u can use VNC (virtual network connection) which opens a session on u r desktop later u can drag and drop form there vice versa and for a linux box you can use Win SCP which helps to open a session with interface to u r desktop in both cases you can upload and down load files very easiy just as we drag and drop items in a simple pc .. we use the same technique...
    bye
    vamshi

  • Send xml file from sap to third party url through https

    Hi,
    I have a requirement to send the xml file from ecc to a 3rd party url through HTTPS. How can we achieve this using ABAP.
    Client doesn't have XI enviroment. The client has provided the 3rd party url where the file needs to be uploaded.
    Please help ! <removed by moderator>
    Thanks in advance.
    Regards,
    Chitra.K
    Edited by: Thomas Zloch on Sep 12, 2011 12:58 PM

    Hi Chitra,
    I had similar requirement and here is what I did: -
    REPORT  Z_HTTP_POST_TEST_AMEY.
    DATA: L_URL               TYPE                   STRING          ,
          L_PARAMS_STRING     TYPE                   STRING          ,
          L_HTTP_CLIENT       TYPE REF TO            IF_HTTP_CLIENT  ,
          L_RESULT            TYPE                   STRING          ,
          L_STATUS_TEXT       TYPE                   STRING          ,
          L_HTTP_STATUS_CODE  TYPE                   I               ,
          L_HTTP_LENGTH       TYPE                   I               ,
          L_PARAMS_XSTRING    TYPE                   XSTRING         ,
          L_XSTRING           TYPE                   XSTRING         ,
          L_IS_XML_TABLE      TYPE STANDARD TABLE OF SMUM_XMLTB      ,
          L_IS_RETURN         TYPE STANDARD TABLE OF BAPIRET2        ,
          L_OUT_TAB           TYPE STANDARD TABLE OF TBL1024
    MOVE 'https://<hostname>/xxx/yyy/zzz' TO L_URL.
    MOVE '<XML as string>' TO L_PARAMS_STRING.
    *STEP-1 : CREATE HTTP CLIENT
    CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
        EXPORTING
          URL                = L_URL
        IMPORTING
          CLIENT             = L_HTTP_CLIENT
        EXCEPTIONS
          ARGUMENT_NOT_FOUND = 1
          PLUGIN_NOT_ACTIVE  = 2
          INTERNAL_ERROR     = 3
          OTHERS             = 4 .
    "STEP-2 :  AUTHENTICATE HTTP CLIENT
    CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
      EXPORTING
        USERNAME             = 'testUser'
        PASSWORD             = 'testPassword'.
    "STEP-3 :  SET HTTP HEADERS
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
          EXPORTING NAME  = 'Accept'
                    VALUE = 'text/xml'.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
        EXPORTING NAME  = '~request_method'
                   VALUE = 'POST' .
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
        EXPORTING CONTENT_TYPE  = 'text/xml' .
    "SETTING REQUEST DATA FOR 'POST' METHOD
    IF L_PARAMS_STRING IS NOT INITIAL.
       CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
         EXPORTING
             TEXT   = L_PARAMS_STRING
         IMPORTING
               BUFFER = L_PARAMS_XSTRING
         EXCEPTIONS
            FAILED = 1
            OTHERS = 2.
    CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
        EXPORTING DATA  = L_PARAMS_XSTRING  .
    ENDIF.
    "STEP-4 :  SEND HTTP REQUEST
      CALL METHOD L_HTTP_CLIENT->SEND
        EXCEPTIONS
          HTTP_COMMUNICATION_FAILURE = 1
          HTTP_INVALID_STATE         = 2.
    "STEP-5 :  GET HTTP RESPONSE
        CALL METHOD L_HTTP_CLIENT->RECEIVE
          EXCEPTIONS
            HTTP_COMMUNICATION_FAILURE = 1
            HTTP_INVALID_STATE         = 2
            HTTP_PROCESSING_FAILED     = 3.
    "STEP-6 : Read HTTP RETURN CODE
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_STATUS
        IMPORTING
          CODE = L_HTTP_STATUS_CODE
          REASON = L_STATUS_TEXT  .
    WRITE: / 'HTTP_STATUS_CODE = ',
              L_HTTP_STATUS_CODE,
             / 'STATUS_TEXT = ',
             L_STATUS_TEXT .
    "STEP-7 :  READ RESPONSE DATA
    CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
            RECEIVING DATA = L_RESULT .
    "STEP-8 : CLOSE CONNECTION
    CALL METHOD L_HTTP_CLIENT->CLOSE
      EXCEPTIONS
        HTTP_INVALID_STATE = 1
        OTHERS             = 2   .
    "STEP-9 : PRINT OUTPUT TO FILE
    CLEAR : L_XSTRING, L_OUT_TAB[].
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          TEXT   = L_RESULT
        IMPORTING
          BUFFER = L_XSTRING
        EXCEPTIONS
          FAILED = 1
          OTHERS = 2.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
      EXPORTING
        BUFFER                = L_XSTRING
      TABLES
        BINARY_TAB            = L_OUT_TAB .
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       FILENAME                        = 'C:AMEYHTTP_POST_OUTPUT.xml'
      TABLES
        DATA_TAB                        = L_OUT_TAB .
    Also, following is the detailed link for use of HTTP_CLIENT class: -
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
    Also, in below link, you can ignore XI specific part and observe how its sending XML to external URL:-
    (I know it describes call to SAP XI server's URL, but it can be used to call any URL)
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc
    In addition to all above, following configs to be present at ABAP application server: -
    1. The hostname used to URL should be present in SAP ABAP application server's 'hosts' file.
    2. Security certificate (if available) for URL to be called must be installed in SAP ABAP application server.
    Let me know if you achieve any progress with it...

Maybe you are looking for

  • Editor won't function PSE 13

    This just started tonight.  I began having problems with the Texttool notworking as it should.  I went to Edit>Preferences and reset on next Launch.  Now, the Editoropens butI cannot Open a file into Editor to work on the file.  Also, while in Editor

  • Hi i am putting photos in my project it will play the videos but not the photos never had a problem before

    hi i am putting photos in my project it will play the videos but not the photos i have not had a problem with this before

  • Leave Request - Configuration

    Hi All, We are using ESS/MSS 1.0, Webdynpro 600 with EP 7.0 and ECC 6.0. Can anybody please tell me....how to go ahead with configuration of leave request in ESS. We are going to use the standard ones itselfs. No customization. Please throw some ligh

  • I can only use macbook pro in safe mode. Kernel Error

    Can anyone help me get my MacBook Pro Mid 2009 15" back to normal? This is the kernel error that keeps apperaing when I try to restart my mac book. My mac book was restarting originally because i was installing xcode. I am now seroiulsy regretting it

  • Rounding in Crystal XI

    Post Author: DAndre10 CA Forum: General I'm using the following function to determine a person's age: round(({calcdata.dob},{calcdata.dodec})/360,3) I am rounding the result to three decimal places, but does anyone know of any other rounding features