Send from file to http server and save http/xml response to another file

Hallo,
is there anybody who made running simple think. Read xml file, send it to http server using plain HTTP adapter and then wait for response which is to be saved as another file?
ThanX a lot.
Honza Vrzak

Hello Honza,
I've made running these two asynchronous scenario. Maybe that might help you?
1.a) FileAdapter picks up XML and sends it to XI2.0
1.b) XI uses PlainHTTP-Adapter to sends the message to Webserver
1.c) HTTPRequestHandler (written in C#) receives the XML and writes it to HD.
2.a) JavaScript sending an XML to PlainHTTP adapter of XI2.0.
2.b) XI sends the message to FileAdapter
2.c) FileAdapter writes the XML to HD
What you need is an synchrounus scenario and I think I remember that the fileadapter is not able to work synchrounus. So I think you have to combine these two scenarious to one.
Regards Björn

Similar Messages

  • How to login to a remote (FTP??) server and read an XML file?

    Hello all,
    I would like some information on how to login to a remote server using a Java program.
    The server might be a ftp server, because the client will ftp a xml file to this server, and the java program needs to login to this server and read the xml file, then convert it into a general report with headings and data from the xml file.
    How can I quickly find the API information to login to a server and read an xml file?
    If anyone knows the packages off the top of their heads, that would save me some time surfing.
    If anyone can provide me some links, code examples, or information I'd greatly be thankful.
    sharla

    You can also just use plain java.net. It supports FTP. Example:URL u = new URL("ftp://user:passwd@server/path/to/file.xml");
    InputStream in = u.openStream();
    // do what you want ...

  • HTTP Server and XE

    Can the Oracle HTTP Server (OHS) be configured to be used in place of the default web server on XE? I have seen the thread about using Apache as a reverse proxie, but I wanted to simply use the OHS as the only web server for my XE installation. Can someone tell me how this is done?

    You might try the following:
    (I just did a quick try and didn't make sure that everything will work afterwards, but it looks good).
    XE uses the database user ANONYMOUS to connect to the database, not APEX_PUBLIC_USER or HTMLDB_PUBLIC_USER.
    1) make a backup of XE first
    2) change the password of anonymous:
    SQL> conn / as sysdba;
    Connect durchgef³hrt.
    SQL> alter user anonymous identified by xxx5;
    Benutzer wurde geõndert.3) add the following configuration to your dads.conf (or marvel.conf, depending on which you use):
    <Location /pls/xe>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure      wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString  localhost:1521:xe ServiceNameFormat
    PlsqlNLSLanguage            GERMAN_GERMANY.AL32UTF8
    PlsqlAuthenticationMode     Basic
    SetHandler                  pls_handler
    PlsqlDocumentTablename      wwv_flow_file_objects$
    PlsqlDatabaseUsername       anonymous
    PlsqlDefaultPage            apex
    PlsqlDatabasePassword       xxx5
    Allow from all
    </Location>4) restart the Oracle http server
    5) try http://<hostname>:7777/pls/xe (assuming that you run the OHS on the default port)
    It works for me.
    You only have to make sure that the /i/ directory contains the css and javascript files that are compatible with XE. I guess the ones from Apex 2.0 will work fine. But I am not sure. You might have to do some more testing here.
    Regards,
    ~Dietmar.

  • DMZ pattern with single HTTP server and OC4J separated

    I am new to Oracle products and I am I trying to configure 9iAS Rel 2 for a JSP/servlet project and would greatly appreciate any comments or pointers to specific documents that may be helpful.
    I would like to use the DMZ pattern for a small application without clustering anything or installing Infrastructure. I would like to have just the HTTP server between the two firewalls and have the application server (hosting the business logic) and the database server (9i Rel 2) behind the second firewall. I want to keep this as simple as possible.
    Is there any way to install just an HTTP server (such as Apache) in between the two firewalls and have it direct requests to the Oracle 9i (Rel 2) application server (J2EE & Web cache installation) behind the second firewall?
    If that is not possible (due to the need for Oracle's HTTP server and mod_OC4J to forward requests), then I would assume that I would have to install a copy of 9iAS on the one machine between the two firewalls (so that I would have the Oracle HTTP server with mod_OC4J) and then install another copy on a machine behind the second firewall (to host the business logic). Is this correct?
    With those installations in place, would I then follow the modifications that are mentioned in "Scenario C: Routing (or clustering) Instances Across Firewalls" of the 'Oracle9i Application Server: mod_oc4j Technical Overview' (i.e modify the following files opmn.xml, ons.conf mod_oc4j.conf) so that the 9iAS in between the two firewalls ignores its OC4J and forwards requests the to 9iAS behind the second firewall? (I know that this document is talking about clustering which is what I do not want to do, but I can't find any information about trying to put a single instance of a HTTP server in the DMZ while having a single instance of OC4J behind the second firewall).
    Would a better approach be to install a copy of 9iAS in the DMZ and then install a stand along copy of OC4J behind the second firewall?
    Does mod_oc4j automatically install with the J2EE and Web cache installation of 9iAS Rel 2?
    Thanks for your insights,
    - David

    You'r on the right track. You can't install just OHS or just OC4J seperatly but you can get the end result you are looking for.
    Install an iAS instance (j2ee&webcache) in the DMZ and shutdown all but the OHS process.
    Instanll a second iAS instance behind your firewall an shut down all but the OC4J process.
    you now have effectively what you want OHS in the DMZ and OC4J at the intranet.
    Now if you follow the directions in the Mod_oc4j overview doc. You modify the ons.conf by using the dcmctl commands
    getopmnport/addopmnlink
    Then you modify the mod_oc4j.conf using the instance:// tag to rouet requests from the OHS in the DMZ to the OC4J's
    in the intranet.
    You will need to open ports in the firewall for the ajp traffic between OHS and the OC4J's

  • To create a new file in application server and transfer data to ti

    i am doing the following where i have to create a new file in application server and transfer data to tht file from an internal table.but its saying file cant be opened.the path i am giving to parameter p_prefil is /tmp/prachi.txt.
    wats the prob..can anyone help.
    DATA:L_WA_FINAL TYPE TY_FINAL,
         l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc <> 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    if sy-subrc <> 0.
    write: 'file can not be written'.
    stop.
    endif.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc <> 0.
    write: ' file cannot be closed'.
    stop.
    endif.

    DATA:L_WA_FINAL TYPE TY_FINAL,
    l_wa_string type string.
    OPEN DATASET P_PREFIL FOR OUTPUT IN text mode encoding default.
    if sy-subrc ne 0.
    write: ' file cannot be opened'.
    stop.
    endif.
    LOOP AT P_I_FINAL INTO L_WA_FINAL.
    move l_wa_final to l_wa_string.
    TRANSFER l_wa_string TO P_PREFIL.
    write: 'file can not be written'.
    clear l_wa_final.
    ENDLOOP.
    CLOSE DATASET P_PREFIL.
    if sy-subrc ne  0.
    write: ' file cannot be closed'.
    stop.
    endif.

  • Question about HTTP Server and 9iAS

    I am kind of new to Oracles 9is products. I installed Oracle 9i Rel. 2 recently and it installed HTTP Server and other stuff as part of that install. I am trying to write a small web application. Is this install good enough to do basic servlet's, jsp's and may be EJB's etc ... or do I need to install 9iAS. I am confused on the fact that I know 9iAS will give me j2ee container, web container, clustering, etc ..., what functionality is included in the 9i databases web server piece.
    Also, can anyone point me to a good documentation that explains directory structure of 9i Rel. 2. I am familiar with the database part fairly well(oracle 7 release). However, I am confused as to new web related stuff (Apache, bc4j, etc..) in 9i Rel. 2.
    Thanks.

    Hi,
    No, you cannot run EJB's in the Apache installation. For that you might want to download OC4J.
    Basic Http pages and Servlets can run but I dont think it is advisable to use it for that. For any kind of development, I would suggest you to use OC4J.
    Oracle9i Database is web enabled and you can access the table, etc.. from a browser too. This is the reason Apache is provided with the basic installation. Oracle9i Rel 2 has XML DB in it which again can be accessed from the Web.
    For more help on any of these check http://otn.oracle.com/documentation/oracle9i.html
    You will be able to get all the related Developer's Guide here.
    Hope this helps,
    Rajat

  • Take screenshot and saves the image to a PNG file

    Hello,
    How can I take screenshot and save the image to a PNG file?
    thanks,
    Avivit.
    Solved!
    Go to Solution.

    this is a quite reproducible problem. Some more clarification on my part might help:
    I have a loop that contains, among other this, (1) a sub-VI that prints-screen and saves as a png and (2) a sub-VI that emails me the png file as an attachment. The 1st sub-VI simply uses the user32.dll to simulate a print-screen key stroke, calls clipbpard get image, and then formats and saves the image to a png file using the built-in VI write-to-png. This loop should update this same png file, because the path does not change. However, I've noticed that while the loop is running the png file does not update. It simply keeps sending the 1st image it took. The image updates if the VI stops and is run again. I assumed the problem was either with the clipboard not updating or the file not writing.
    I think the png file remains open while the main VI (i.e. this loop) runs because I cannot delete the file while the VI is running, only once it stops or is quit. Windows gives me an error that the file is currently in use by labview. Therefore, I think the file is not updated because it remains open.
    I've attached the print screen VI. Feel free to stick it in a loop and give it a try if you don't spot something obviously wrong. I did not include the main-VI that I actually use since it contains a lot of instrument I/O, which would prevent someone testing the VI.
    Attachments:
    PrintScreen.vi ‏18 KB

  • How do i create a contact list in adobe send from my email contact list and how do avoid typing individual email adresses

    how do i create a contact list in adobe send from my email contact list and how do avoid typing individual email adresses

    Hi [email protected],
    The e-mail addresses will not be memorized in Adobe send but will be saved in sent items.
    You can use Adobe send outlook plugin to access your email contact list and send.
    You can download it here:Send Large Files Online - Share, Control, Track & Manage | Adobe Send
    Regards,
    Florence

  • Splitting HTTP Server and 9IAS

    Whats the advantage of splitting the HTTP Server and application server. Bcos in our case the web server is installed thro a minimal installation and the Application server is installed using the enterprise edition in separate servers. Hence in both the servers the HTTP service is enabled . Also the Jserver of web server is not being used by us.
    It would be helpful if somebody could list out the various advantages / disadvantages with the above architecture.
    Thanks and Regards
    Swaminathan

    Question is probably best answered on the general 9iAS forum:
    http://forums.oracle.com/forums/forum.jsp?id=466592
    A quick answer: Reasons vary from distributing load (HTTP hits or application execute), using distribution of HTTP servers for high availability via new clustering capabilities in 9iAS, using different size boxes for one piece or another (e.g. big cluster of tiny HTTP servers and a smaller number of larger servers for EJB), utilizing hardware, physically and logically splitting apart functionality of 9iAS (not such an issue with just the core but more significant with Forms, Reports, Portal, etc).
    This paper gives the feature set supporting distributed deployment:
    http://otn.oracle.com/products/ias/ohs/collateral/r2/clusters.pdf
    and this paper:
    http://otn.oracle.com/products/ias/ohs/collateral/r2/bp-core-v2.PDF
    gives best HTTP and deployment practices that might answer your question.
    Mike.

  • HT1655 how do I migrate shuffle from pc to new pc and save library

    how do I migrate shuffle from pc to new pc and save library

    Use the Migration Assistant, or move the files manually through file sharing or an external drive. If you've already set the MacBook Pro up and use the Migration Assistant, the files will be put into a different user account.
    (119281)

  • Front-end HTTP Server and Performance with .jspx pages?

    This is more of a general question that I'm looking for validation:
    If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
    thanks

    This is more of a general question that I'm looking for validation:
    If the majority of our website is implemented as .jspx pages, with very few straight HTML pages, is there benefit in deploying to an environment with a separate HTTP front-end web server and back-end Application server (java container)? For example, I'm deploying to Tomcat as both the HTTP server and Java Application server for the .jspx pages; is there a performance advantage in deploying to an Apache HTTP server with a connector to Tomcat if I'm primarily serving up .jspx pages? I'm not as familiar with Oracle AS architecture, so my question is primarily around Tomcat deployment.
    thanks

  • In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    In Photoshop Elements 12, is there a way to batch process all photos in a file with 'Auto Tone' and save the changes?

    Thank you, that was perfect!
    Yoni

  • Linux server(how to save command out put to another file. )

    hi all,
    i have Q ?
    how to save command out put to another file.
    Ex: #ps -ef
    that particular cmd output i need to save another file.
    is it possible ...if possible ..please let me know
    And how to save command history in Linux.

    df -h >> /oracle/output.log
    /oracle -- mount point name
    Regards
    Asif Kabir

  • 10g: HTTP Server and OC4J on different servers?

    Can anyone assist with configuring HTTP Server and OC4J on different servers?
    I installed AS 10g on both; our application runs fine on one server, with the HTTP Server and OC4J both on the same box.
    I need to also test this with the HTTP Server on a separate box.
    I added this to mod_ocj4.conf:
    Oc4jMount /indox-qa1
    instance://cvodev2:oas_dev2.cvodev2.int.sys.com:indox-qa1
    Oc4jMount /indox-qa1/*
    instance://cvodev2:oas_dev2.cvodev2.int.sys.com:indox-qa1
    But when I try to access something like http://cvodev4/indox-qa1 I get this in the logs:
    [Wed Jul 06 16:54:10 2005] [warn] [client 10.1.1.231] [ecid: 1120683250:192.152.136.127:1248:1544:1,0] MOD_OC4J_0184: Failed to find an oc4j process for destination: instance://cvodev2.int.camsys.com:oas_dev2.cvodev2.int.camsys.com:indor-qa1
    [Wed Jul 06 16:54:10 2005] [error] [client 10.1.1.231] [ecid: 1120683250:192.152.136.127:1248:1544:1,0] MOD_OC4J_0145: There is no oc4j process (for destination: instance://cvodev2.int.camsys.com:oas_dev2.cvodev2.int.camsys.com:indor-qa1) available to service request.
    [Wed Jul 06 16:54:10 2005] [error] [client 10.1.1.231] [ecid: 1120683250:192.152.136.127:1248:1544:1,0] MOD_OC4J_0119: Failed to get an oc4j process for destination: instance://cvodev2.int.camsys.com:oas_dev2.cvodev2.int.camsys.com:indor-qa1
    [Wed Jul 06 16:54:10 2005] [error] [client 10.1.1.231] [ecid: 1120683250:192.152.136.127:1248:1544:1,0] MOD_OC4J_0013: Failed to call destination: instance://cvodev2.int.camsys.com:oas_dev2.cvodev2.int.camsys.com:indor-qa1's service() to service the request.
    I did some ethernet sniffing and it doesn't look to me like the OHS box is even trying to contact the OC4J box.
    Is there more configuration I need to do beyond this?
    Thanks,
    dwh

    hi user11159690
    Maybe this can help:
    "Oracle® HTTP Server Administrator's Guide 10g Release 3 (10.1.3) B25211-02"
    "7.32 mod_oc4j"
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b25211/confmods.htm#i1025739
    Maybe more specifically "Oc4jMount":
    http://download.oracle.com/docs/cd/B25221_04/web.1013/b25211/confmods.htm#CIHJBGFB
    (tip : You can use "Your Control Panel" to make your name visible in forum posts.)
    success
    Jan Vervecken

  • Internal server error - Http server and OC4J intance

    Hi
    Internal Server error ( GET/&lt;app name&gt;
    Hi,
    We are using AS10g R1: 9.0.4.0.0 in production and occasionally getting Internal Server Error. And to overcome this problem, everytime we have to restart the HTTP server; we tried re-staring the OC4J instance to find out whether OC4j is causing the problem, however it doesn't work until we restart the Http server. Interestingly Http server serves well other OC4j instances during the error for a particular app runing in different OC4J instance.
    ANY HELP WILL BE HIGHLY APPRECIATED.
    Here are more details:
    It's a J2ee (struts) app.
    Operating System: Sun Solaris- 5.10
    Http server access log msg:
    "GET /&lt;app name&gt; HTTP/1.1" 500 544
    Http server error log msg:
    MOD_OC4J_0184: Failed to find an oc4j process for destination: OC4J_1
    [Mon Sep  8 17:55:13 2008|http://forums.oracle.com/forums/] error MOD_OC4J_0145: There is no oc4j process (for destination: OC4J_1) available to service request.
    [Mon Sep  8 17:55:13 2008|http://forums.oracle.com/forums/] error [ecid: 51865290138,1|http://forums.oracle.com/forums/] MOD_OC4J_0119: Failed to get an oc4j process for destination: OC4J_1
    [Mon Sep  8 17:55:13 2008|http://forums.oracle.com/forums/] error [ecid: 51865290138,1|http://forums.oracle.com/forums/] MOD_OC4J_0013: Failed to call destination: OC4J_1's service() to service the request.
    [Mon Sep  8 17:55:15 2008|http://forums.oracle.com/forums/] warn [ecid: 51865292545,1|http://forums.oracle.com/forums/] MOD_OC4J_0184: Failed to find an oc4j process for destination: OC4J_1
    OC4J Log:
    Nothing unusual; looks good
    Mod_oc4j.conf
    LoadModule oc4j_module libexec/mod_oc4j.so
    Oc4jConnTimeout 300
    Oc4jCacheSize 0
    # in response to eSecure findings
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    Work around:
    Re-starting HTTP server

    Greetings,
    Since we see a 500 error below in the Http server access log msg: the server is unavailable. I suggest changing the OC4J logging to "FINEST" and then run your test again (server reset etc.) and post the log here.
    THX
    -Mike

Maybe you are looking for

  • Making a very bespoke xml gallery

    Hello people :-) Having come up with a new design for my friend's jewellery website that I'm building in xhtml and CSS, I've decided to go for flash for the gallery in order to keep it fully updatable. Mock up design here There are eventually going t

  • What is an Instance in SAP?

    Dear, What is an Instance in SAP? Thanx and Regards, Mohammad Nabi

  • Can i be swapped to ADSL2+

    Hi, Yesterday, I migrated from O2 where I have been for the last 7 years to BT. I used to download large files around 950B/s but now with BT, it has dropped to 820B/s. My upload has also dropped from around 1 meg to 0.45 meg. I noticed, looking at th

  • Is it possible to install Lion Server over regular Lion?

    I am considering buying Lion Server, so that I can get a feel for administering it (my background is in Windows Server and Warp Server for eBusiness).  I have a 2010 21.5" iMac, which I upgraded to Lion a couple of weeks ago.  I also have a MacBook A

  • Top Level Menus remain in normal mode when sub-menu page selected

    How do I get a TOP LEVEL MENU page to stay in ACTIVE MODE when one of its sub-menu pages has been selected? Currently, when I select and is actively on a sub-menu page, all the TOP MENUS are in normal mode, thereby not indicating clearly to users whe