Get file on demand with file adapter?

Hi all.
I need to get a file on demand (System A ask for a file to FTP server system) with FTP adapter. My problem is that FTP receiver adapter allows just uploading but not getting files. And sender file adapter is not valid for "on demand" scenario.
Thanks,
Gari.

Hey
as even u said ,on demand is not available for File,i guess starting from PI 7.1 they are gonna add some enhancements to File adapter to support this,but till then i dont think there is a direct way.
one way around which i think of is u might wanna write a Unix shell script,which will catch this demand and trigger the file to be placed in the specific directory.
u can have two scenario,the first scenario simply sends the demnad for file which will trigger the unix script(use the OS commands option in file adapter for this) and the second scenario will pick this file and send it
thanx
ahmad

Similar Messages

  • Xml file without namespace with file adapter

    Hi,
    Please can you assist. We will be receiving a XML file from an application without the namespace in the file.
    As I tested thusfar PI requires a namespace as part of the xml file.
    How would it be possible to you handle this with the file adapter.
    Ex.
    <?xml version="1.0" encoding="UTF-8"?>
    <applicatrion>
         <orders>
              <order>
                   <action>I</action>
                   <orderId>4261A92485</orderId>
              </order>
         </orders>
    </application>
    Regards
    Willie Hugo

    Hi Hugo,
    Please see if this link could clear some doubts http://www.w3schools.com/XML/xml_namespaces.asp
    We generally get an idoc xml in the below format without any issues:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ORDERS05>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <TABNAM>EDI_DC40</TABNAM>
      <MANDT>510</MANDT>
      <DOCNUM>0000000000127051</DOCNUM>
      <DOCREL>700</DOCREL>
      <DIRECT>1</DIRECT>
      <IDOCTYP>ORDERS05</IDOCTYP>
      </EDI_DC40>
    Thanks,
    Sudhansu

  • Zero byte files not transferred with FTP Adapter

    All,
    I am seeing that zero byte files are not being transferred using FTP Adapter (SFTP type). Is there a known bug around this? Please respond if anybody have seen this behavior and resolved this issue. I am using 10.1.3.3.0
    Thanks,
    Dipal

    Thanks Marc,
    I still have doubt if that is the case. When I tested the same from 10.1.3.3.1 windows platform and FTP being windows OS zero bytes files transferred OK. Do you think this is to do with OS or SOA version?
    Thanks,
    Dipal

  • Can't get past gray screen with file icon on it

    When i turn on my computer the power light goes out but the gray screen stays on. After two or three minutes an icon of a file with a question mark appears. I cannot get past this screen. I have removed my battery and tried again. I have also tried the other processes for a computer that won't turn on. In my case the computer does turn on just never gets past this gray screen. Please someone help me

    The question mark on the file tells you that your MacBook wants to start up but can't find a viable OS to start from. Can you start up from the DVD that came with your Mac? If so, go to Disk Utility and see if you can repair the internal hard drive. If you can't see the hard drive from within DU, your drive may have failed, and you may need to replace it. Good luck.

  • Cannot get HDR to work with files from Canon 40D

    Hello,
    I have read various tutorials and the forum and there seem to be a number of things that have to be just right to get the Automate Merge to HDR Pro to work.
    I obtain the images on a tripod using a timer and auto expose a stop bracket.  I understand white balance setting may be a problem...
    But no matter what I do I get a merged file with very bight colors essentially all over.
    I have trief JPEG and TIFF conversions from RAW.
    Any ideas/checklist?  THis is CS5, completely updated.
    Thanks

    It sounds like BT's hardware may have a firewall that's blocking more than it should.
    http://support.apple.com/kb/HT3669
    is the printer/scanner listing from Apple.
    Use this link: http://support.apple.com/kb/dl1398 to get the latest Epson drivers if your printer/scanner is compatible.
    If it isn't, here are some alternatives from my macmaps page:
    Epson, alternate Australian site may have more up-to-date drivers for Epson, Epson RIP and colormatching drivers from iProof Systems, Guten-Print (formerly known as Gimp-print), and Printfab. http://www.linuxprinting.org/macosx/

  • How to Get Windows Dir info with file dates

    I need to get the directory contents (file Name) and date of each file in the directory. If I ask file by file to get the date, it takes a very long time. I am checking about 28,000 files in about 4 directories.
    Because the PC has so many files in each directory, accessing the file names / dates is slow. It takes about 30min. to get the information currently.
    Does anyone know about a single VI that will get the dates and the names at the same time?
    Thanks,
    CH

    I had this vi laying around (LabVIEW 6.02) for a project that never went anywhere. It's a simple search for file name and last modified time.
    Warning: This is to give you an idea of how to solve the problem. It is not tested! It returns time values in LV seconds (since 1905, easy to convert). It has any number of warts (memory usage, listing llb contents, etc), but might be a start for you.
    Good luck.
    Attachments:
    List_Files_Times.vi ‏67 KB

  • Opening file using JFileChooser with File filtering

    ok guys I am trying set a file filter object to my file chooser it compile but i have a run time error, the error says:
    Exception in thread "AWT-EventQueue-0" java.land.IllegalArgurmentException: Extension must be non-null and not empty
    at javax.swing.filechooser.FileNameExtensionFilter..........
    I have declared
    JFileChooser jfc = new JFileChooser();
    as a global variable
    and in to my ActionListener, ActionPerform the following:
    ActionListener listener = new ActionListener()
              String selection, file, copy;
         public void actionPerformed(ActionEvent e)
    int tipe =0, size = 16;
         String Stile = " ";
         if (e.getSource() == openItem)
              FileNameExtensionFilter filter = new FileNameExtensionFilter("txt");
    jfc.setFileFilter(filter);
              jfc.showOpenDialog(null);
              try
              File f = jfc.getSelectedFile();
              String file = f.getAbsolutePath();
              File f2 = new File(file);
              BufferedReader in = new BufferedReader(new FileReader(f2));
              String text = "";
    String textl = text;
    while( text != null)
                   text = in.readLine() ;
                   textl = textl + text + "\n";
                   System.out.println(text);
    Can some one please tell me whats wrong? and if possible how to fix it? Thank you guys

    A couple of things might help:
    It's a good idea to post the entire stack trace (even though it may appear a bit long). Specifically it helps to know which line in your code triggered the runtime error. You read the stack trace down from the top and the first line you find belonging to your code is a good place to begin looking hard at.
    Another debugging technique is the SSCCE. The idea with this is that you come up with a really brief example illustrating your problem. (ie it compiles, runs and spits out the runtime error). It can be made brief by getting rid of anything extraneous to the problem. A bare button in a frame which when clicked sets up and displays the file chooser should be enough. I describe this as a debugging technique because in the course of constructing such things I often find I isolate - and therefore can see and fix - an error.
    Anyway, sorry this is so general. Maybe someone will come along with a "missing semicolon in line 3"-type solution but, if not, it may be useful.

  • How to delete all files and folders (with files) in IsolatedStorage.

    Hi awesome programmer:-) The code I have to clean up the local folder doesn't work properly so I won't even bother posting it here. I basically want to have a "master reset" option to remove all new created files and folder in the local folder.
    Can you give me simple code to remove all files/folder so the app goes back to the state it was when the user installed it for the first time? Thanks in advance. ps I were able to delete a directory(-ies) with this method:
    private async void DeleteDirectory(string directoryName)
    try
    var folder = await Windows.Storage.ApplicationData.Current.LocalFolder.GetFolderAsync(directoryName);
    if (folder != null)
    await folder.DeleteAsync();
    this.Dispatcher.BeginInvoke(delegate()
    txtUpdateFeed.Text = "Folder < " + directoryName + " > deleted.";
    catch (Exception ex)
    this.Dispatcher.BeginInvoke(delegate()
    txtUpdateFeed.Text = "Delete Directory << " + directoryName + " >> Error: " + ex.GetBaseException().Message.ToString();
    It seems to work, I have not tested with all conditions though. Anyway let me put up the code so you can see I have been trying: This is to delete everything but not all files are deleted:
    private void WipeAllData(bool bln)
    try
    txtUpdateFeed.Text = "Removing files...";
    if (bln)
    txtUpdateFeed.Text = "Removing folders...";
    //Delete videos directory
    DeleteDirectory("videos");
    //Delete pictures directory
    DeleteDirectory("pictures");
    txtUpdateFeed.Text = "Folders removed.";
    //Delete the rest of the files
    var iso = IsolatedStorageFile.GetUserStoreForApplication();
    foreach (string name in iso.GetFileNames())
    iso.DeleteFile(name);
    BtnWipeAllData.Content = "Wipe All Data";
    VideoCameraPowerValue = "on";
    BtnVideoCameraPower.Content = "Video Camera: ON";
    PhotoCameraPowerValue = "on";
    BtnPhotoCameraPower.Content = "Photo Camera: ON";
    txtUpdateFeed.Text = "Files removed successfully.";
    catch (Exception ex)
    MessageBox.Show("Wipe All Data Error:\n" + ex.Message.ToString());
    Why isn't all files being deleted?

    Hi Clint William Theron,
    Based on your descriptions, I know that when you run the above code, it does not delete all the files, then have you checked that which kinds of files or in which folder the files can not been deleted?
    Besides, if you want to let the app go back to the state it was when the user installed it for the first time, then an easy way is to uninstall and reinstall it.
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Photoshop CS6 file permissions issue with file created with Photoshop CC

    In our studio we have several capture stations and work stations all connected to one file server. An issue occurs when a user of CC creates a file and saves it to the server and a user of CS6 opens the file. The CS6 user cannot save the changes he just made to the file that was created in CC. The CS6 user can do a Save As with no issue. There is also NO problem if the file that was created in CC is transferred to a new drive using the Finder in Mac OS X.
    Has anyone else had a similar issue or know of a solution?
    Here is a screen cap of the error:

    We have solved our issue.
    After running Adobe updates on machine that uses CS6 and then re-starting that machine, our issue seems to have disappeared.
    Hope this helps others.
    Best of luck.

  • Load file on db with file system last modified date info

    Hi,
    i have e procedure for load a file on my DB table.
    How to write on my table the last modified date read for file system?
    Thanks in advance
    Marc

    Try this example to use dbms_pipe for executing the OS commands to get the last modified date of a file.
    calling shell script from sql procedure

  • Operating System Command After File Processing in Sender File Adapter

    Hello guys,
    actually we have different interfaces, and the client to take all the files from only one directory, for example D:/DPI.
    Unitl now we had one adapter for every file with the content conversion, so we didn't have problems with that. Now we have the problem that we sould maintain an order processing files.
    We thougth that an idea could be to execute one file pointing to D:/DPI and at the Operating System Command put like: copy D:/DPI/file.txt D:/DPI/outbound/file.txt, so when file is executed, we move the next file to another directory where is pointing the adapter. Doing this we have an error on the adapter giving us the message: Could not process due to error: java.lang.NullPointerException
    We are using a Windows.
    There is anyway to do in our way, or there is a better solution to resolve this problem?
    Any other idea to do this?
    Many thanks in advance.
    Regards,
    Xavi.

    Helo Guys,
    maybe I haven't explained well.
    We have one directory with different files. We have one adapter for every file( we need for the content conversion ) using NFS and all the adapters are pointing to the same directory.
    The problem is that if we have files A.txt, B.txt and C.txt we need to process in an order.
    And the problem we see is that for every file we have one adapter, so for example if we process file A.txt with one adapter, when this part is finished, we want to process file B.txt with another adapter, and the same for the rest of the files.
    So the idea we had is to create another directories, and when A.txt has finished move file B.txt to another directory.
    However this way is not running, if we log on the PI machine and execute cmd, we can do a copy of one file from one directory to another, but when we put this sentence in the adapter in OS command if we see the adapter log we see an error executing the OS command, but we don't know what is the error, there is no more information.
    There is any way to do this or maybe we have to manage in a different way?
    Many thanks in advance.
    Regards,
    Xavi.

  • Getting an image from a file

    I am trying to get an image from a file
    is there a way to convert a BufferedImage into an Image?
    or otherwise get an Image directly from a file?
    my searches turn up nothing
    TIA

    okay, so here's the new code:
    //  image_tracer.java
    //  image tracer
    //  Created by Erik Schmidt on 8/21/06.
    //  Copyright (c) 2006 __MyCompanyName__. All rights reserved.
    import java.util.*;
    import javax.imageio.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.*;
    import java.io.*;
    import java.awt.image.*;
    import java.util.ArrayList;
    import java.awt.Graphics;
    import java.net.*;
    import java.applet.*;
    //FILE class, deals with File IO (note: does not possess the full method count of the java.io class File, this class only supports IO)
    class FILE {
         private static String fname=new String();
         //class constructor, takes a String as an argument, returns nothing
         public FILE(String fName){
              fname=fName;
         }//end constructor
         //gets filename, takes no argument, returns a String
         public static String getFilename(){ return fname; }
         //Reads in a file, takes no arguments, returns a String-either the contents of the file, or an error message
         public static String readFile() throws FileNotFoundException,IOException {
              String ret=new String();
              String tempstr=new String();
              File tFile=new File(fname);
              BufferedReader inFile=new BufferedReader(new FileReader(new File(fname)));
              if(tFile.exists()){
                   while((tempstr=inFile.readLine())!=null) ret+=tempstr+"\n";
                   ret=ret.substring(0,ret.length()-1);
              }else{
                   return null;
              }//end if
              return ret;
         }//end readFile
         //Writes to a file, takes a String as an argument, returns true for sucess; false for IOException
         public static boolean writeFile(String str) throws IOException{
              PrintWriter prnt=new PrintWriter(new FileWriter(fname,false),true);
              try{
                   prnt.println(str);
                   return true;
              }catch(Exception ioe){
                   return false;
              }//end try/catch
         }//end writeFile
         //Appends text to a file, returns true on completion; false on IOException
         public static boolean appendFile(String str) throws IOException{
              PrintWriter prnt=new PrintWriter(new FileWriter(fname,true),true);
              try{
                   prnt.println(str);
                   return true;
              }catch(Exception ioe){
                   return false;
              }//end try/catch
         }//end appendFile
         //Tells if file exists.  Takes no arguments, returns true if it exists, false if not
         public static boolean exists(){
              File tf=new File(fname);
              if(tf.exists()) return true;
              else return false;
         }//end exists
    }//end FILE class
    class MyPanel extends JPanel {
         Graphics save;
         Image blank;
         Image face;
         ArrayList x;
         ArrayList y;
         ImageObserver ob;
         private class MListen implements MouseMotionListener {
              public void mouseDragged(MouseEvent e){
                   x.add(new Integer(e.getX()));
                   y.add(new Integer(e.getY()));
                   repaint();
              public void mouseMoved(MouseEvent e){
                   //do nothing
         public MyPanel(Image f){
              x=new ArrayList();
              y=new ArrayList();
              blank=Toolkit.getDefaultToolkit().createImage("~/sites/blank.jpg");
              //save=createImage(500,500).getGraphics();
              face=f;
              addMouseMotionListener(new MListen());
              x.add(new Integer(-30));
              y.add(new Integer(-30));
         public void paintComponent(Graphics g){
              g.drawImage(face,0,0,ob);
              //save.drawImage(blank,0,0,ob);
              g.setColor(Color.black);
              //save.setColor(Color.black);
              for(int i=0;i<x.size();i++){
                   //save.fillOval(((Integer)x.get(i)).intValue(),((Integer)y.get(i)).intValue(),20,20);
                   g.fillOval(((Integer)x.get(i)).intValue(),((Integer)y.get(i)).intValue(),20,20);
    class WListen extends WindowAdapter {
         public void WindowClosed(WindowEvent e){
              System.exit(0);
    class MainFrame extends JFrame {
         MyPanel panel;
         JButton submit;
         JPanel main;
         public MainFrame(Image face){
              super("Image Tracer");
              setSize(750,750);
              panel=new MyPanel(face);
              submit=new JButton("Save");
              main=new JPanel(new BorderLayout());
              main.add(panel,BorderLayout.CENTER);
              main.add(submit,BorderLayout.SOUTH);
              setContentPane(main);
    class IMAGE {
         public Image run(String filename){
              return Toolkit.getDefaultToolkit().createImage(filename);
    public class image_tracer {
        public static void main (String args[]) {
              IMAGE image=new IMAGE();
              MainFrame frame=new MainFrame(image.run("~/sites/face.jpg"));
              frame.addWindowListener(new WListen());
              frame.show();
    }ignore the file stuff, that's for later
    why does MainFrame not display the MyPanel object?

  • "URLs with .file not accepted"

    Just upgraded to Lion OS 10.7. When I try to search for an upgrade, I get the message URLs with .file not accepted. Anyone know what the problem is?

  • Partition with file type & size.

    Hello All,
    I need to install SuSE Linux Enterprise Sever 8 prior to Oracle 10g.
    I have 136GB of Hard Drive.
    My RAM is 3GB.
    Could anyone suggest me idol file system/partition with file type & size?
    I can create partition on my SLES installation.

    We are using raid5.
    But I can see only one hard drive.
    Do you think its ok to have only three partitions?
    what about /? (root)
    what file type I should used? ext 3, ext 2 or Resiser?

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

Maybe you are looking for

  • Adobe Illustrator CS 5 V15.1.0 Crashing after Mavericks Installation

    I have a co-worker who is on a 27inch iMac Mid - 2011 running OSX Version 10.9.1 who's using Adobe Illustrator CS5 to design various spreads for a local magazine. After installing Mavericks her Illustrator program crashes randomly, most of the time i

  • Plug-in 1.4 uninstalled (not)

    I still get an error message from the Java Plug-in 1.4 when trying to run an applet that requires 1.3.1_08, even though I've completely removed JDK 1.4 from my system (Windows 2000 SP3). I still have JRE 1.3.1_08 (JRE only), and JDK 1.3.1_09 installe

  • Boris FX 8 and OS 10.4.8

    I posted this problem I'm having on the Cow, but now I'm going to try here. Currently Boris Fx 8.0.3 crashes when launched from inside FCP. I was wondering if anyone else has been experiencing this.

  • IPhoto freezes whenever I try to add faces...

    I am running the latest version of iPhoto (iLife 11, all updates, etc.) on 10.6.7.  I have a top of the line MacBook Pro i7 (purchased in March 2011) with 8 GB RAM and 512 SSD.  For whatever reason whenever I try to add faces to my photos (either con

  • Using and external burner

    Hello, I need to burn many copies of a DVD and wonder what external burner would work with iDVD and my MBPro so that I can save my MBP drive from wear and tear. If that is even possible? Thanks, Al