Read XML from remote server

Not sure if this is even possible.
I am using APEX on a INTERNAL server, on the same network is another server hosting files.
Using PL/SQL code, I need to read the XML file.
So APEX/ORACLE is at http:\\server1\apex\f?p........
And the files are at \\server2\xml\file.xml
Can I load the xml from server2 using pl/sql in server1?
The XML is generated automatically from another system and can not be stored on the APEX server. It does not need to go into the database, just read, parced, and displayed.

Hi,
Using PL/SQL code, I need to read the XML file. You can create a directory object pointing to the location on server2 :
CREATE DIRECTORY xml_dir AS '\\server2\xml';then you can access the XML content like this :
DECLARE
v_xml_doc xmltype;
BEGIN
v_xml_doc := xmltype(bfilename('XML_DIR', 'file.xml'), nls_charset_id('CHAR_CS'));
-- XML processing here...
END;
/

Similar Messages

  • Read xml from application server

    Hello guys,
    I have craeted program read xml file from presentation server. its working fine...
    below is program
    now i want to program read xml file from Application server.
    so please give me some idea for that.........
    <MODIFIED BY MODERATOR - RESPECT THE 2,500 CHARS LIMIT>
    thanks
    jigar
    Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:50 AM

    Hi
    U need to just replace the fm to upload the file with command OPEN DATASET / READ DATASET / CLOSE DATASET: if you upload the data from application server in the same internal table loaded by fm for presentation your report should be the same
    Max

  • Read xml from SQL Server

    Hello
    I need to read a xml from a sql server 2000 database. The field in the database is declare as text.
    When a try to read <a>3</a> the database adapter returns something like this.
    /a/3//a/.
    How do I solve the problem?
    Thanks
    Gonçalo Ribeiro

    Hello again.
    I'm using ora:parseEscapedXML to convert the string that contains XML into XML.
    I'm doing it in an assign. My doubt is what kind of variable should received the information?
    Thanks
    Gonçalo Ribeiro

  • HOw to delete files from remote server?

    Hi,
    I want to delete files from a directory on remote server.
    I use the following command to delete on current server:
    find $srcdir -mtime +90 -name "COR*.txt" -exec rm -f {} \;
    Now, how can I delete files from remote server ?
    Thanks!
    Yogini

    Some possible options:
    1. There exists SSH implementation for Windows.
    2. You can make a workaround. You can setup share for specific/wanted directory.
    Then you can mount it on Linux machine and execute command localy and delete files "localy" in mounted directory.
    3. You can setup FTP server on Windows machine and do that remotely via FTP commands.

  • Drag and drop from remoter server

    Drag and drop from remoter server I get this<img src="../My Documents/SITKA/Unnamed Site 6/4coldfront_jacketAD.jpg" width="207" height="207" longdesc="http://www.jonsered.ws" /> what I want is this <img src="http://www.jonsered.ws/coldfront_jacketAD.jpg" width="207" height="207" longdesc= />
    the first one does not work on the web
    How is this done?

    When you click on a file (drag & drop) in Remote Server panel, DW GETS the file and places it in your Local Site folder.
    Your local site is defined in DW as ./My Documents/SITKA/Unnamed Site 6/.  Hence the path name change.
    Make sense?
    Nancy O.

  • Reading BLOB from SQL Server 2005 using DB Link from Oracle 10g

    Hi All,
    I am trying to read a table's data from SQL Server 2005 using ODBC DB Link created in Oracle 10g (10.2.0.3/4) database. I am not using oracle gateway.
    I am able read all data except for the BLOB data from SQL server 2005. It gives error given below when I try to execute query SELECT * from T_TRANSACTION_DATA@sdeslink inside a stored procedure:
    ORA-22992: cannot use LOB locators selected from remote tables
    Kindly help how to read BLOB from SQL server 2005 inside Oracle 10g.
    Best Regards!
    Irfan

    Irfan,
    If you can read the blob data using 10.2 HSODBC then there should be no problem using the 11g gateway.
    I recommend you download the latest version which is 11.2.0.3 available from My oracle Support as -
    Patch 10404530: 11.2.0.3.0 PATCH SET FOR ORACLE DATABASE SERVER
    This is a full version and does not need a previous version to have bene installed. When installing it needs to be in a completlely separate ORACLE_HOME from the existing 11.2 install.
    For the Ora-22992 problem have a look at this note in My Oracle Support -
    Ora-22992 has a workaround in 10gR2 (Doc ID 436707.1)
    Regards,
    Mike

  • Can't call a VI from remote server

    I have a VI running on a labview development machine(Labview 2010), the main function is handling excel report using report generator. I follow the link http://www.ni.com/white-paper/14469/en to set up labview machine and teststand machine respectly. But when I tried to call the VI from remote server, it is still not able to load the VI front panel and show the connectors. See the  attachment. It looks like it still trying to load VI from local drive because it can't find the builded-in subvis for report generator function.
    What should I do to make it work? Thanks!
    Solved!
    Go to Solution.
    Attachments:
    TestStand error.png ‏107 KB

    For those interested in the solution, the problem turned out to be two things.
    The first is if you want to be able to load a prototype of the VI in TestStand, you will need to either share the VI or create a dummy VI. If the shared VI uses subVIs you do not have access to, then you are better of creating a dummy VI that has matching connector panes.
    The second problem had to do with how the remote VI path was specified. If you have shared the VI, then you will enter in the shared folder path as your remote VI path. If you have not shared it, then you will need to enter in the VI path as it is on the remote machine.
    Rohama K.

  • Read XML from a hardware sensor file into ODI

    Read XML from a hardware sensor file into ODI
    Hi,
    I am trying to extract xml data from a flowmeter that generates XML data.
    The xml file is found in http://ip_address/history.xml
    I’ve defined my Topology as such
    JDBC Driver: com.sunopsis.jdbc.driver.xml.SnpsXmlDriver
    JDBC URL: jdbc:snps:xml?f=http://192.168.0.202/history.xml&ro=true
    Please note to access the file I have to supply a username and password so I did in the definition But when testing my setup I get an error:
    ava.sql.SQLException: The DTD file "http://192.168.0.202/history.dtd" doesn't exist: Server redirected too many times (20)
    Please note I cannot write dtd to the device as it is a read only device.
    Has anyone came across such an issue, how can I achieve this.
    Thanks
    Hicham

    Hi David,
    Thanks for your reply.
    I've tried this jdbc url
    jdbc:snps:xml?f=http://192.168.0.202/history.xml&d=c:\temp\history.dtd
    but when I test the connection i get the following error
    java.sql.SQLException: While generating the DTD from the XML file, a java.io.IOException exception occurred saying: Server returned HTTP response code: 401 for URL: http://192.168.0.202/history.xml
    If I browse http://192.168.0.202/history.xml and i supply the username and password I get an xml page.
    I've supplied the username and password in the definition tab of the Data Server windows but still getting the above error.
    THanks
    Hicham

  • Debug flex app loaded from remote server

    Hi,
    I'm developing a flex app which gets loaded from a remote
    server and it connects using amf to that server and gets some data.
    Now, I can't test from within the flex builder ide, as the URL will
    be empty. When I test using IE/Firefox pointing to the remote
    server URL where this debug.html is mounted, the swf asks for a
    host ip/name where a flash/flex debugger runs. When I give
    localhost/127.0.0.1, it fails and displays the dialog box again. Is
    there a way to connect the swf from remote server to connect to a
    debug console inside the FB2 ide?

    Well, I ran all commands shipped with FB2and found out that
    fdb does connect and allows to "continue". Still the in IDE
    developing experience and quick turn around isn't there. Is there a
    way to get the URL from which the swf was loaded from within the
    swf, so that if its a remote server, I can get data from it, else
    its in debug state, so I can get data from some hard coded
    host.

  • Reading mails from Hmail Server

    hi all,
    I am using an java mail api to read mails from a hmail server.I was successfull in reading mails and analysing it further but the problem that i face is my program could read only the recent mails ,all the remaining unread mails were not accessible from the java code.......i am attaching my code...
    package mail.hmailserver;
    import java.io.*;
    import java.util.*;
    import javax.mail.*;
    public class ReadMail_frm_hmailserver {
         int c=0;
    @SuppressWarnings("unchecked")
    public static void main(String args[]) throws Exception {
    ReadMail_frm_hmailserver mailObj=new ReadMail_frm_hmailserver();
    mailObj.readMails();
    public Vector[] readMails() throws Exception
         String host = "172.29.19.78";
    String user = "[email protected]";
    String password = "testuser1";
    // Get system properties
    Properties properties = System.getProperties();
    // Get the default Session object.
    Session session = Session.getDefaultInstance(properties,null);
    // Get a Store object that implements the specified protocol.
    Store store = session.getStore("pop3");
    //Connect to the current host using the specified username and password.
    store.connect(host, user, password);
    //Create a Folder object corresponding to the given name.
    Folder folder = store.getFolder("inbox");
    // Open the Folder.
    folder.open(Folder.READ_ONLY);
    //folder.open(Folder.READ_WRITE);
    Message[] message = folder.getMessages();
    // String [] contents=new String[10];
    Vector [] contents = new Vector[message.length];//creating array of vectors to store mails
    // Vector contents1=new Vector();
    System.out.println("No of mails : " + message.length);
    System.out.println("subject 1 : "+message[0].getSentDate());
    System.out.println("subject 2 : "+message[0].getSubject());
    // System.out.println("subject 3 : "+message[2].getSubject());
    // System.out.println("subject 4 : "+message[3].getSubject());
    //System.out.println("-----------------");
    // Display message.
    for (int i = 0; i < message.length; i++) {
              c=0;
              contents[i] = new Vector(); //since vector array is an array of arrays we hav to initilize each of the content vectors
    System.out.println("------------ Message " + (i + 1) + " ------------");
    System.out.println("SentDate : " + message.getSentDate());
    System.out.println("From : " + message[i].getFrom()[0]);
    System.out.println("Subject : " + message[i].getSubject());
    System.out.print("Message : ");
    //System.out.println(message[i].getContent());
    Multipart multipart = (Multipart) message[i].getContent();
    //System.out.println(multipart.getCount());
    String line = null;
    for (int j = 0; j < multipart.getCount(); j++) {
    //System.out.println(i);
    //System.out.println(multipart.getContentType());
    BodyPart bodyPart = multipart.getBodyPart(j);
    InputStream stream = bodyPart.getInputStream();
    BufferedReader br = new BufferedReader(new InputStreamReader(stream));
    while (br.ready()) {         
         try {
                                  //line.append(br.readLine());
              //line=line+"\n"+br.readLine();
              line=br.readLine();
              if(line.equals("NOTICE")){
                        System.out.println("entered-----------------------------exit loop");
                        //exit();
                        c++;
                        break;
              if(c==0)
              contents[i].add(line); //adding the mails line by line to the array
                             System.out.println(line);
              //System.out.println(contents[i].get(j));
         } catch (Exception e) {
                                  // TODO Auto-generated catch block
                                  e.printStackTrace();
                                  System.out.println("Exception : "+e);
         //contents[1].add(line);
    System.out.println();
    //System.out.println(line);
    // contents[i].add(line); //adding the mails line by line to the array
    System.out.println();
    // folder.close(true);
    //store.close();
    //System.out.println(contents.length);
    //System.out.println(contents[0].get(0));
    //System.out.println(contents[0].);
    return contents;

    You might want to use IMAP to read mail from hMail Server, if you keep messages on server. It has a lot more features for managing messages on server.
    A lot of POP3 implementations (both client and server side) will automatically delete retrieved messages. I don't know exactly what JavaMail does in that regard, nor of hMailServer, but I do know some mailservers out in the wild will ALWAYS delete mails retrieved with POP3.

  • The attempt to read data from the server failed

    Today I was looking into an error with several IMAP accounts in Apple Mail:
    +The attempt to read data from the server "<<servername.tld>>" failed.+
    At first I thought this was an Apple Mail problem, as the accounts in question seemed to work just fine when not used in combination. One possible answer to this problem is rather short:
    Apple Mail uses IMAP caching, which uses more than 4 connections at the same time to the mail server. Some mail servers (like courier-imap in its default configuration) do not allow that much connections from the same IP address. The more accounts you are trying to connect to at the same time raises this number of connections. Meaning while you could probably check one account for new mails, the second will ultimately fail for no obvious reasons. The only solution to this problem is to raise the connections allowed by your IMAP server software. this solution only applies to people who have root access to their mail server.
    in courier-imap you have to edit /etc/courier-imap/imapd
    and change MAXPERIP=4 to a higher number (5 to 10 times the number of accounts you want to check simultaneously)
    and change MAXDAEMONS=40 to a higher number (with only one user 200 might work, whereas if you serve multiple users, something like 500 or higher might be better suited).
    of course increasing the numbers increases load on your server. this is why there are these restrictions in place.

    MY SOLUTION REPOSTED FROM ANOTHER THREAD:
    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    "The server error encountered was: The attempt to read data from the server..."
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, not IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • Server error: "The attempt to read data from the server '(null)' failed"

    Multiple times during each day my client (Mail.app) puts up a little exclamation mark "!" next to the mail account hosted on our Leopard Server. Clicking on this little alert icon pops up a message that reads:
    +There may be a problem with the mail server or network. Verify the settings for account “Leopard Server Account” or try again.+
    +The server returned the error: The attempt to read data from the server “(null)” failed.+
    I can make the "!" go away by choosing Mailbox>Synchronize>Leopard Server Account. And everything seems peachy but it inevitably pops up again in another hour or two. It's annoying because I'm not sure if mail is getting through or not when the "!" is up.
    Any ideas why this is happening?

    MY SOLUTION REPOSTED FROM ANOTHER THREAD:
    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    "The server error encountered was: The attempt to read data from the server..."
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, not IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • Attempt to read data from the server failed...

    I'm getting the following error on one of my email accounts:
    +There may be a problem with the mail server or network. Verify the settings for account “[my account]” or try again.+
    +The server returned the error: The attempt to read data from the server “[my account]” failed.+
    I'd like to find out more about the error, so that I can start to track this down and see if there is a problem with the mail server settings, or if the problem is on my end.
    I don't see any reference to this error in the logs – would it be somewhere else?

    I've just solved a similar issue.
    I have a dedicated server running Plesk 9.5 and when I upgraded to iLife 11 and Snow Leopard this error appeared. I could quickly click "get mail" and I'd get all my mail, but only 3-4 of my 9 mail accounts would connect. Theo others would have the error:
    The server error encountered was: The attempt to read data from the server...
    I found solutions for those using IMAP mail:
    modify the /etc/courier-imap/imapd configuration file and change MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40. This allows all the machines behind my home firewall to connect to multiple accounts on the e-mail server with mailbox caching enabled.
    I'd made this change on my server but it didn't seem to have any effect. It dawned on me that I'm using POP, no IMAP. So I found in /etc/courier-imap/pop3d the same settings. I changed the MAXDAEMONS from 40 to 80 and MAXPERIP from 4 to 40 and voila, all my connections concurrently worked.
    This has taken me more than two days to fix and I hope posting this helps someone else with the same issue.

  • GUI_UPLOAD NOT READING DATA FROM PRESENTATION SERVER

    H HI IN   MY APPLICATION I HAVE USED GUI _UPLOAD        TO READ DATA FROM   PRESENTATION SERVER   IT WAS WORKING FINE BUT NOW I HAVE SCHEDULED IT IN BACK BACKGROUND WHEN I   DEBUGGED IT GUI _UPLOADI NOT READING DATA FROM PRESENTATION SERVER
    Edited by: ravikumar1006 on Mar 10, 2012 1:18 PM
    Moderator message: FAQ, please search before posting, do not write in all upper case.
    Edited by: Thomas Zloch on Mar 10, 2012 3:17 PM

    The issue is that, when you schedule a program as background job runs on application server not on local pc for that program use the application server resurces  and its not possible to read files from pc. You can find a lot of answers in forum for this

  • Oracle read files from FTP Server

    Hi,
    Somebody knowns Oracle how to read files from FTP Server ? Which package I can use?

    Duplicate post
    Oracle read files from FTP Server

Maybe you are looking for

  • Windows intune message are you the primary users of this computer?

    When logged in with a adminstrative account, we successfully installed the Windows Intune client with the login crecentials that are specific for one user. When this user is logged in to his Windows desktop and he wants to start the Company Portal, h

  • Create combo chart in webi

    Dear experts, Is it possible to have a combo chart in webi? By combo I mean having mixed a bar and line chart.... I would have a primary Y axis used by the bars and a secondary Y axis used for the line. If it's possible could you explain to me how to

  • [Share]Cooling down 970 Gaming!

    From MSI TW Forum link:https://forum-tc.msi.com/index.php?topic=113191.0 The story happened in a frigid night few weeks ago. I turned on my computer since I want to play Watch Dog, which is a very popular game recently. Huh? No response? I tried seve

  • When attempting to log onto the iTunes store, the formatting is wrong, and I cannot purchase anything. Can anyone help?

    Earlier this morning, I tried to access the iTunes store on my laptop. It seemed to be loading fine, but when the screen loaded up it was different. I could use the search bar to search for the things I wanted to purchase, but I couldn't buy anything

  • Best Place For iPhone 3G Purchase

    My wife wants an iPhone 3G. Is it better to purchase from an Apple Store or from an AT&T Store? I was thinking that perhaps the iPhone inventory is more current at the Apple Store. Any feedback will be most welcome.