XML file transfer over the web

A company is sending us an XML file via push technology and visual basic:
'Set up to post to client server
objHTTP.Open "post", “http://someURL.company.com”,
'Set a standard XML header for the content-type
objHTTP.setRequestHeader "Content-Type", "text/xml"
'Send the XML.
objHTTP.send cXML
'Get the return message
cClientReturn = objHTTP.responseText
nStatus = objHTTP.Status
cStatusText = objHTTP.statusText
What is the best way to receive the XML from our company's end. We want to use PL/SQL code? Is Advanced Queuing a possible solution. What is the most eficient and straightforward solution?
Thanks,
JD

It depends on the # of concurrent requests and what you plan to do with the doc.
Two choices:
1) Use XMLDB HTTP server: leverages XML DB data management (straight-forward and simple)
2) Use OracleAQServlet: provides asynchronous message queuing

Similar Messages

  • Problem with file transfer over the net

    Hi!I'm trying to make a program that allows to send/receive files and I'm almost done,except for a little problem:the file received has some bytes missing at the end!
    For example if I send a text the last 2-3 lines are missing,same thing for an image,an html document,etc.,although the file opens without any problem.As transport-level protocol I'm using TCP so it's not a networking problem,I think the problem is in the application layer so I post here the code,hoping someone helps me out(in this example I'm trying to send an image .jpg):
    Sender:
    Socket connectionSocket=new Socket("ipadress",port);
    FileInputStream source=new FileInputStream(System.getProperty("user.home")+"\\Documents\\image.jpg");
    BufferedOutputStream send=new BufferedOutputStream(connectionSocket.getOutputStream());
    int c;
    while ((c = source.read()) !=-1)
                    send.write(c1);
    Receiver
    ServerSocket receiverSocket=new ServerSocket(port);
    Socket  connection=receiverSocket.accept();
    BufferedInputStream rec=new BufferedInputStream(connection.getInputStream());
    FileOutputStream receivedFile=new FileOutputStream(System.getProperty("user.dir")+"\\received.jpg");
    int c;
    while ((c = rec.read()) != -1)
                    receivedFile.write(c);I think the problem is in this code:somehow the sender stops sending bytes before the end of the file is actually reached...what do u think?

    Thank you so much!At the end it was a very stupid mistake!:D
    Btw now that the main problem is solved I continue posting asking for your opinion:is this program for you efficient enough?Or there's a better way to do file transfer?

  • Question about XML file transferring over the networking

    Hi, I am now to Java, and now I am going to set up a simple network in the lab.
    I have created a random array of data and transferred to XML file on my client. Now, I would like to send it to the server. I am wondering how I can put the XML file into my client, and do I need any parser to let the server show what random date it has received?
    Anybody can give me any idea or some basic code? Thank you.
    Now, I am referring the KnockKnock example in Java online tutorial. But, not clear how to deal with the XML File.
    Fengyuan

    Four crossposts.
    http://forum.java.sun.com/thread.jspa?threadID=5158198&messageID=9600070#9600070
    http://forum.java.sun.com/thread.jspa?threadID=5158200&messageID=9600074#9600074
    http://forum.java.sun.com/thread.jspa?threadID=5158201&messageID=9600076#9600076
    http://forum.java.sun.com/thread.jspa?threadID=5158202&messageID=9600078#9600078

  • Help needed in send and reciving file realtime over the web!

    Here is a scenario what I want to do and need some ideas about proceeding.
    I have a directory where the files are being added every 5 to 10 seconds. These files are to be transferred one at a time to some other location using some kind of secure protocol. The party receiving files will process each file and send the response back instantaneously. The send and response for each file is between 2 to 4 seconds. The response file is saved in a separate directory. If a successful response then sends another file and so on.
    The program iterates through the directory and if any files will send if no files wait for 10 seconds and check if any files to send and will run as long as someone manually shuts down. What's the better way to achieve this functionality.
    Any ideas the best approach and where to start. Thanks

    When you say "the send and response for each file is between 2 to 4 seconds," are you saying that's your requirement?
    What happens to the original files after they are sent? Are they deleted? If not, you need to be able to detect which files are new.
    You could write a standalone client and a standalone server, and do everything at the socket level.
    You could use a webserver to receive and process the requests.
    You could use SOAP or CORBA or JMS. It depends on more details of your requirements, your experience, time constraints to complete the project, environment...
    Basically you've walked into a car dealership and said, "I need a car. It should have an alarm and be able to go 80 mph. Which one is best for me?"

  • Applet security -- accessing files over the Web.

    I guess the topic pretty much sums up my question..
    I have an applet and I want to read a file from over the web.
    After creating a URL, I try to retrieve an inputstream by calling openStream() but I get all the java.security.AccessControlException: access denied rubbish..
    How do I get it working ?

    The applet can only read data from the server where it is saved. For security purposes applets have limited capabilities. They can't write data to a remote hard drive or read data from remote machines. A way around this is to create a "trusted applet". Basically what it does is informs any machine you are trying to access that you wrote this applet and are responsible for any negative outcome. There is a tutorial provided by Sun that can explain this better than I can. Here is the link:
    http://java.sun.com/security/signExample/index.html
    Good luck.

  • XML file transfer between ASP & JSP

    Hi !
    Actually the requirement is to provide an interface between an ASP application and a JSP application.
    What i could understand is that commonly used way is transfering XML files using SOAP.
    But, i have no idea on SOAP and need few clarifications.
    1. What are the roles of SOAP, WSDL and UDDI ? and does SOAP needs WSDL or UDDI and web services?
    2. Do i need to use web services just to transfer XML file from ASP to JSP ?
    3. is HttpURLConnection also used in this approach ?
    actually what my purpose is to know that to implement SOAP for XML file transfer what all i need to do ?

    Hi !
    Actually the requirement is to provide an interface
    between an ASP application and a JSP application.
    What i could understand is that commonly used way is
    transfering XML files using SOAP.
    But, i have no idea on SOAP and need few
    clarifications.
    1. What are the roles of SOAP, WSDL and UDDI ? and
    does SOAP needs WSDL or UDDI and web services?SOAP is a transfer protocol for exchanging structured and typed information : go to the w3 web site to understand better.
    WSDL are files to describe a web service : you will find inside an access point and signatures from your methods; if you want it's a little bit like an interface in java but with more informations. You don't need wsdl for soap.
    Last uddi is a repository for web services. You need to publish your service inside a Uddi registry and it's associated access point and tmodel (go to oasis web site for more informations). It's a little bit like yellow pages. You need to use Uddi only if you want to discover serviecs dynamically.
    Usually you use SOAP by calling a web services, as a web service is over the SOAP layer. The advantages of using SOAP is that it describes your data too. In fact if you have complex types to transfer between your two applications the partners have to know how to understand these data.
    2. Do i need to use web services just to transfer XML
    file from ASP to JSP ?Well, what do you want to transfer exactly between your applications. If this is just a text stream you can simply send your file by opening a socket. But if you want to work with your informations, to use them (that means you have to build the corresponding object) you could use web services as your informations are explicitely defined : what do you want to do exactly ? Last but not least if you have already XML file you can get your info directly and parse ir or ????
    3. is HttpURLConnection also used in this approach ?Yes you could call a servlet or something like that to transmit your informations
    actually what my purpose is to know that to implement
    SOAP for XML file transfer what all i need to do ?you have to be more precise with what you want to do with the info; simply display it or ???
    PA
    http://www.doffoel.com

  • Export Release Build Flash Builder 4.5 fails to load over the web.

    Exported Release Build Application fails to load over the web.  You can reproduce using the following steps:
    1. Create New Flex Project in Trial Flash Builder 4.5.
    2. Use the default Flex 4.5 sdk.
    3. Configure as a web application.
    3. Place the following MXML code in the main application file:
    <?xml version = "1.0" encoding = "utf-8"?>
    <s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
    xmlns:s = "library://ns.adobe.com/flex/spark"
    xmlns:mx = "library://ns.adobe.com/flex/mx"
    minWidth = "955"
    minHeight = "600">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:TextArea text = "Hello World!" width = "100%" height = "100%">
    </s:TextArea>
    </s:Application>
    3. Save the main application file and Export Release Build to bin-release.
    4. Place all files in bin-release on IIS web server in a web accessible location.
    5. Go to the web accessible location in any browser with newest flash player and view the application's html page.
    Actual Results:
    Flash movie appears blank. Context menu shows Movie Not Loaded. Network traffic shows application main swf downloaded. Framework dependent swfs not downloaded.
    Expected Results:
    Movie loads. Hello World! appears in text box. Context menu does not show Movie Not Loaded. Framework dependent swfs downloaded.
    Workaround (if any):
    Deploy on an Apache web server.
    The tests were run on IIS 7.x (7.0 for one, and 7.5)
    Flex application was built using Flex 4.5.0 SDK pre-bundled release (built-in flex 4.5 with Flash Builder 4.5 trial) on Mac OS X 10.6.7 (10J869)
    Flash Player 10.3.181.14
    Example failing website:
    http://staging.ibenergy.com/Test.html
    Any idea as to why my exported release build fails? Any help would be appreciated.

    Just tried this out on an IIS server with Flash player 10.3.181.14 - it worked.
    Are you using the release version of Flash Builder 4.5 with the release version of Flex SDK (not a prior SDK build)?
    The URL you mentioned gives me a 403 forbidden error.
    -Anirudh

  • Displaying report in .pdf format while Running oracle reports over the web

    I am running a report over the web via IE. I am suing .pdf
    format as the file type. The problem I am facing is that the
    report comes out with a blank in acrobat reader if there are
    just one or two records - i.e less thatn one pagefull. THe
    reports displays output only when there ar more than one
    pagefull of records.
    Any explanation for this bezarre behavior and any suggestions?
    I will very much appreciate your help.
    Regards
    Prasad.

    in R12 I found 2 choice
    1) when submitting requests (if available) you can set the output format by using the Options button (upon sompletion section):
    layout --> format --> select format you need (RTF/HTML/EXCEL/PDF)
    2) in the request form (view->request) selecr the report you want to reprint in the Tools menu select print/republish, in the html page that pop up select output format you want, number of copies =1 submit
    www2p

  • When upgrading to OSX Yosemite do all my programs and files transfer over such as Office for mac, saved documents from word,excel,pics,pdf files,etc.etc...

    Will all my files transfer over (or stay) automatically right after upgrading to Yosemite or do I have to backup every single desired program or document? Question is do I HAVE to please if you can answer if its mandatory or not. Not looking for recommendations that I SHOULD back up or anything like that just want to know if it is mandatory to perform a backup to be able to keep or transfer all my current programs and apps and documents currently on my MB Pro Retina.

    Yes, upgrading to Yosemite will not touch your 3rd party apps or files in the Home folder.
    Although not mandatory you should have a a backup of your hard drive regardless if you upgrade to Yosemite or not.  To not have a backup is just playing  Russian roulette as there are only two types of hard drives;  those that have failed and those that will.

  • XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted.

    1.Some web pages give "XML Fetch Error. The XML file assigned in the configuration.xml is either wrong or corrupted".
    2.Youtube gives, after pressing start button, message"An error occurred. Please try again later.
    Opening same youtube page with IE, there is no problems.
    3.Scrolling on Mozilla firefox pages works only with sidebar not with mouse wheel.
    Other user accounts on this computer doesn't have these problems.
    BR, Juha

    This can be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/flash-113-doesnt-load-video-firefox

  • Accessing config information in XML file in a Weblogic web service (JWS)

    Problem:
    I have implemented a web service for sending emails and pages via Java Mail and SNPP respectively using WebLogic Workshop on the BEA WebLogic 8.1 platform. In the service, I use certain pieces of information that are currently stored in an XML file on disk. Also, in its current state, the web service is implemented with public methods directly in the .jws Java file and not as a session bean. The file read from disk is performed every time the web service operation to send a message is invoked. As we all know, the I/O files access is very expensive and a performance bottleneck, especially when it is incurred on every invocation of the web service ‘sendMessage’ [operation.
    Without radically re-writing the application, I am looking for a way to improve the performance of the web service and can only come up with the following 2 ways:
    1) Move the code out of the sendMessage operation: Here, the main question I have is 'to where should I move it to'? I have seen in the WebLogic Workshop documentation that WebLogic Server maintains only a single instance of a Java class that implements a Web Service operation, and each invoke of the Web Service uses this same instance. In that case, I should be able to put the code in the constructor so that the files is read only at the time the class is instantiated, but a constructor in the .jws file that contains the web service operations itself does not seem to be invoked by the container (I tried to put a breakpoint in the constructor, but it seems that the constructor code never gets called)
    2) Move the configuration variables into some type of standard configuration file of WebLogic, something like web.xml or wlw-config.xml or jws-config.properties files. But I found that these XML files have an associated schema to conform to and do not provide any custom elements or attributes that I could add for my application(is that true?). Also, if I can somehow put the configuration information into any of these standard files, how do I access it from within the application 'without' doing a file read from disk? Are these configuration file items available in memory for access and use by the web service and if they are, what API can I use to access and use them?
    Any and all ideas are welcome!
    Thanks!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    I have been looking into a similar problem. Since web services are by design stateless, they aren't good for 'remembering' information between calls. Aside from a file read, the only other solution I have found is to use a database. You can make use of an entity bean or simply make some kind of JDBC call. I don't know if you need to stick with the config file, but if so maybe you could read the config data into a database once and then you might have faster access than reading from a file. I'm not sure about which would have better performace, but its all I have come up with so far. What parser are you using to read your XML file? Have you tried others to see if they have better performance?

  • Help : windows xp to mac os x file transfer over network

    hi folks! ... (sorry for the double post ... in the macbook discussion thread)
    i've recently bought a macbook pro and am in the process of switching predominantly to the mac from my windows pc. I'ld really appreciate a guide/tutorial on how to transfer the files of my pc to my mac over a home network
    okay .. here's wht iv got ..
    1. macbook pro with hardly any data
    2. laptop with windows xp home (which has a lot of my data) (ntfs formatted)
    3. external hard drive with a lot of data (hard drive formatted with ntfs)
    4. Router and wireless connection
    what i want to do ...
    transfer my data from external hard drive & my pc to my mac without using macdrive/macfuse. I want to enable file sharing over the network between the laptop (preferably the external hard disk attached to the laptop) and the macbook pro.
    I haven't done network file sharing before... and it would be really nice if anyone could guide me through it ..
    thanks!
    zambie

    Hi zambie,
    Here is article that might help you out:
    http://www.apple.com/getamac/movetomac/network.html
    basically it is the same between macbookpro and macbook to get file sharing from pc.
    Good Luck.

  • Pdf files printing via the web

    sorry incase i missed the obvious, but so far i couldn't find any infos on that topic:
    is it possible to hand over dde commands over the web?
    eg, instead of having a standard pdf link, hand over some ddes with it?
    > AcroRd32.exe /t path printername drivername portname - Initiates Acrobat
    Reader
    > prints a file while suppressing the Acrobat print dialog box,then terminates
    Reader.
    that's the part i need, any way to have those options in a link? :)

    next day next prob.
    i actually noticed it is indeed hiding the print dialoguie box, the problem i have, a get a nice preview after the printjob is done.
    any way to disable this one too? :>

  • [svn] 3037: Update flex-config. xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path .

    Revision: 3037
    Author: [email protected]
    Date: 2008-08-29 06:54:15 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Update flex-config.xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path. This will allow the correct playerglobal.swc to be located when the target player version is set in the flex-config.xml or passed to mxmlc or compc.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/resources/config/flex-config.xml

    Unfortunately I don't have the
    "org.eclipse.swt.win32.win32.x86_3.1.2.jar" file. On my computer
    the folder is not set up the same way (C:\Program Files\Adobe\Flex
    Builder 2\plugins) instead it is set up as (C:\Program
    Files\Adobe\Flex Builder 2\metadata\plugins) but I've looked in
    everything and that file just isn't in there. I've re downloaded it
    twice. Still not there. Is there anything else i can do.

  • EJB connectivity over the web.

    Is there any easy way I can create an EJB client to work over the web. The problem is that we can not open our firewalls to RPCs or RMIs. Any ideas? Any packages that let me abstract IIOP over XML to do this?
    Thanks,
    Hugo Troche

    Weblogic supports HTTP tunelling of RMI. Take a look at http://e-docs.bea.com/wls/docs61///faq/server.html
    R.
    KMS

Maybe you are looking for

  • Maintenance view field check.

    Hi, I want to insert new record into maintenance view and check some field that must be inserted. If i make them required so when i press "New Entries" all the redcord are ready for new entries and all the fields in each record are required so if the

  • Message mapping: table lookup

    The requirement: Source message contains some keys and values, and target message has different keys. Values are simply mapped. no problem. but the mapping between source message keys and target message keys is a bit complicated so it is controlled i

  • Borders not displaying

    Hello, I created an RTF layout using the Word BI Publisher Add-In and used borders around my cells, rows, columns, and table. When I preview the layout in HTML mode from word the template looks great. However, when I upload the template to OBIEE and

  • Transaction Isolation Level for EJB methods

    L.S. I just found out the in OC4J one can not set the transaction isolation level on ejb methods. Moreover one needs to revert to bean managed transaction (manual coding of the ALL transaction logic) to set the isolation level. On entity beans one ca

  • Popup problems on IE and Safari-I want my Power Bars. ;)

    Hello All, Trekbikes.com have an online scratch and win game and I have won power bars. I know, not much to brag about, but for some reason, the "winner's window" won't pop up automatically. Plus, when I click on the manual link, it leads me to their