Xml file manipulation using XI file adapter

my requirement is to change an attribute value in an xml file using XI.
example
<County InternalID="24581" Action="None">
should be changed to
<County InternalID="24581" Action="Insert">
I have used Adapter specific attributes to get thesame file name, which is looking at the target folder,
but the problem is
once it reached the target foelder
it looks like this
<ns0:County InternalID="24581" Action="Insert">
I donot need ns0:
Any thoughts please.

I have single xsd which I uploaded as External defintion, with names ED_source and ED_target in Repository
after that directly I created Message interfaces( no Message Type, no DataType)
I tried to remove namespace in repository, do I need to remove name space in the XSD itself and then upload it in repository.

Similar Messages

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • Garbage name of the Archive File while using the FTP adapter

    Hello All
    I am using Oralcle FTP adapter to poll a file ,after polling I am deleting the file from the current directory and
    archiving it into another directory.
    Problem is after archiving the file into the another dirctory name of the is fine changed as follows :
    d2wXEgGZrfypNsGa15uzOA==_20081015_082233_0015
    I want same name for the archived file as orginal file with timestamp
    Please help to solve this problem.
    Thanks
    Satendra Pare

    You cannot change the file name in the save dialog, it always uses the originally file name of the form.
    But you can use scripting to save a form under another name.
    Sample.
    http://thelivecycle.blogspot.com/search/label/Save

  • BPEL Process with multiple file types using one FTP adapter is not working

    i created a bpel process which will fetch the files from remote location using FTP adapter.
    Now the process works for only one format or file type like *.xls.
    How can i use more than one file format in one FTP adapter.
    OR
    is there any other way to do it.
    file type assignation is 5th step in FTP adapter configuration.
    i have tried *.xls,*.csv and *.xls;*.csv and *.xls:*.csv by seperating with comman, colon, space... still not working.
    i read the documentation *.* will not work.. for one file format it's working fine.
    looking forward for reply as soon as possible.

    Are you positive that it is not working? I'm not sure how you can use one FTP adapter for multiple file types unless the underlying data is exactly the same format or you are processing it as opaque data. Sometimes when a FTP adapter chokes on a file with a bad structure it doesn't create a BPEL instance, it simply moves the bad file to a separate folder.
    So I assume you are using opaque as the data type instead of using an XSD element?
    That said, I don't think you can put two separate file types in the filter. Is it possible for you to do something like: CommonFileName*.* or do you have similar files with other extensions?
    I know the above probably isn't of much help, but I had so many problems with the FTP adapter and its lack of features that I am writing my own. Unfortunately that is a large undertaking and there isn't any good documentation of JCA resource adapter / BPEL PM integration.

  • How to set file permission using Oracle FTP Adapter

    Hi,
    I am using Oracle SOA Suite 11.1.1.4. I am trying to put a file using Oracle FTP adapter on unix box. The file that gets written to target system has file permission as RW/R/R. But this is a legacy system, and for them to consume this file - they expect the file permission to be RW/RW/R.
    They have set the .profile with the required permissions for the ftp user account that we are using. But still when my BPEL process writes a file to unix box through ftp adapter, the file permission is RW/R/R.
    Is there any way to control file permissions while writing files using ftp adapter? Any help would be highly appreciated.

    907597 wrote:
    But these setting needs to be done on unix server. Yes, that's the way to go... There's no config for that on FtpAdapter as far as I know...
    This setting will enable the same configurations for all other ftp accounts on the server, which doesnt sound correct. Any other way of doing this? Or can this be done only for one ftp account?You have to check if your ftp server is capable of having different umask for different ftp users... I believe most do not...
    http://h30499.www3.hp.com/t5/System-Administration/Setting-FTP-umask-per-user/td-p/2590101#.UMZ0TeEe7ng
    Cheers,
    Vlad

  • Help! web.xml security without using WAR files

    I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks.

    The RDBMSRealm is just the authentication mechanism underneath WLS versus the
    web.xml of the WebApplication which describes all the access control for that WebApp.
    the later being scoped only to that WebApp.
    you don't need to deploy in a war file, you can expand the archive into an identical
    directory structure and then just point us towards the top level of that structure.
    see: http://www.weblogic.com/docs51/classdocs/webappguide.html
    .paul
    chris wrote:
    I'm currently using the RDBMSRealm and URL ACL security for my app. I would like to use the web.xml descriptor for security so that I can specify login pages and such. We currently are not using WAR files. I've been having alot of trouble setting this up. Is there a way to use the RDBMS realm along with the web.xml security? It looks like it should work, but I can't seem to get it to function. How do I specify the regular document root as a webapp? I'm currently running WLS 5.1 with SP4. Thanks.

  • SFTP to File Scenario using multiple files

    Hi All,
    I have a scenario wherein 2 separate CSV files ex a.csv and b.csv has to be picked up from the SFTP folder and the same has to be mapped and send to one single file ex c.csv.
    Say a.csv contains fields Name,Address and b.csv contains Phone,Mobile and I need to map them as per FSD into c.csv which will then have Name,Address,Phone,Mobile
    I am bit confused on how to do it.
    Shall I use Additional File name option in SFTP sender channel configuration? In that case how will I use the FCC as we have 2 separate csv files and both the files are CSV files and needs to be converted to XML.
    Any related threads will help.
    Regards,
    Shaibayan

    Hi Inaki,
    Thanks for your reply.
    BPM is not an option in our case as we are told not to use BPM.
    However as per the thread from Michael
    "pick both files in one run (one as file, the other one as attachment - so one communication channel )
    inside the mapping you can get the values from the attachment and do the mapping"
    This part is fine and we can do the mapping by creating N:1 mapping but since our files are .csv files so a content conversion is required for both the a.csv and b.csv. How to go through with this.
    The structure will be something like below in the message mapping after we add both the source structures in Signature Tab:
    Message
         Message1
              MT_FILE_A
                   RecordSet1
                        Name
                        Address
                        Field3
         Message2
              MT_FILE_B
                   RecordSet2
                        Phone
                        Mobile
    Can I use the below values for Content Conversion?
    Document Name:MT_FILE_A,MT_FILE_B
    Recordset Structure:RecordSet1,*,RecordSet2,* or we have to use MT_FILE_A.RecordSet1,*,MT_FILE_B.RecordSet2.*
    And in the Name Value for Name do we need to use dot for each Document Name i.e.
    MY_FILE_A.RecordSet1.fieldSeparator?
    Regards,
    Shaibayan

  • OS X will not let me delete .mov files, error says "file in use" but files not in use, still happens after restart

    Hi
    I have a folder full of .mov files but can't delete any of them, I get a message "File in use" but it isn't. Have managed to delete using Terminal, but that is a pain. New files have the same problem, have tried unlocking them and restarting the computer, but no joy. Thanks in advance for any help.

    Hello
    you may try this
    - use little app like Onyx download here
    http://www.titanium.free.fr/download.php
    - start from an external system hard drive , then navigate to your file to delete it
    - by luck if you have a second mac and a firewire cable , have a look at
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8443.html
    Pierre

  • Why won't FireFox open local .html files (when using "open file")?

    I teach hand coding and use FireFox to grade my students work. I also tell them to use this browser to review their own work. If they cannot navigate to their files on their desktop I will have to switch to another browser. I know it is something from the latest version... as I have been using FireFox for the last 5 years as my classroom browser of choice.

    Firefox should still be able to open files using open files.
    I use Windows so things may differ slightly but the option to open files is available but not visible by default, I can get the option to browse for files using: keyboard keys'''Alt , F , O'''
    My directory structure and path may differ slightly but I am also able to key directly into the location bar something such as '''''file:///C:/'''''
    A third option would be simply to click on the relevant HTML file and use the option to open, or open with Firefox. Such files may also be bookmarked.

  • How to overwrite source files, or use source file names?

    Hi all
    I would like AME (5.5.1.12, under Windows 7) to overwrite the source files that it is encoding, or if that's not possible, save the exported files to a different folder with the same file names as the sources.
    However I can see no way to do this without manually specifying a file name for every file. I need to process 400 files so this is not practical.
    Currently AME automatically adds a "-1" suffix to the exported file name, whether it's saved in the same folder as the source or a different folder.
    Can anyone advise, please?

    Hi Jim,
    Thanks for the reply. However, overwriting source files during a batch process is a common feature in audio/video software. It's possible in Audition, for instance, as well as in third-party programs such as Sound Forge, Wavelab and Samplitude.
    Presumably in these cases the software writes to a temporary file, either in RAM or on the hard drive, before deleting the original and replacing it with the new one.
    I'm surprised to hear that AME can't do this for conversions that stay within the same file format (such as the bit depth of a wave file).

  • Dynamic File selection using sender FTP adapter

    HI
    I have a FTP> SOAP scenario. In source i want to pick files based on date.
    File names would be like *****date.csv  
    Is there any way i can pick only files for current date?

    Hi ,
    You may use run operation system command before message processing option and write a script to rename the file which are of current date and specify that new filename in the sender channel.
    Regards,
    Beena.

  • Dynamic file name using reciver file adpater if no Mapping  involved

    Hi XI/PI experts,
    I am working on one scenerion where I have to poll the files from one server and send them to target FTP server with no content conversion( no Mapping involved).
    for example:
    if the source file is ABC_Invoice_item.csv
    then the target file is expected as  invoice_YYYYMMDD.csv
    Please advise how we can acchive this?
    Many Thanks in advance for your valuable inputs.
    Cheers,
    Mohan

    Hi,
          You can refer the following link for selecting additional files using a single comm channel :
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/692ab8a4b633eae10000000a1553f6/content.htm
    You can also use a Java mapping instead of adapter module to store the filename dynamically in the message header. In this case, use a data type that has just one field under it. Use the same data type for both sender and receiver.
    In your Java mapping, use the code for dynamic configuration to retrieve the sender filename, alter it and then store it in the message header again for use by the receiver adapter.
    No changes will be required in the sender comm channel. There will not be any conversion to xml format and the data will pass through as is.
    Regards

  • How to delete a file by using batch file

    hi
    i tried for deleting a file from batch filr in Linux environment.
    it is working when i run batch file thruogh command line.
    but its not woking through program.
    i am sending tha code that i used in tha program.
    First i have to create the file and send the information to that file
    and the content from taht file after that i have to delete the file.
    For that i wrote code but the batch is not woking.
    Batch file
    @echo off
    rm filename
    Actual Program Code
    I used RunServer
    public class RunServer extends Object
    RunServer();
    String cmdServer = "test.bat";
    Runtime run = Runtime.getRuntime();
    Process p = null;
    try
    p = run.exec(cmdServer);
    catch(IOException e)
    System.out.println("Error:"+e);
    By using RandomAccessFile i am creating a file
    please help me
    Thankyou

    1) You can't execute a batch without having a shell.
    2) It's totally stupid to run a one-line batch file from system.exec.
    3) It's also totally stupid to delete a file using Runtime altogether.
    But there you go...

  • How can I find files renamed using mv file/path/folder .filename

    So I was a complete idiot and was messing around with the terminal. I was trying to figure out how to hide folders from other people who would have access to my account. Instead of creating a useless text file within a new folder, I just tried it on one of my own personal folders. The folder itself contained about two months worth of work, and I have no clue why I did it. But I did, and now I cannot find it for anything. This is what I did:
    mv /users/azuredavid/documents/Q1/ .filename
    However when I tried to access this via the Go To folder option, it wouldn't work. I used the exact path as above as well as variations using a period. Eventually I resorted to using:
    defaults write com.apple.finder AppleShowAllFiles TRUE
    killall Finder
    Now all I see is the addition of .DS_Store and .localized files in the folder. Still no work folder. I've seen conflicting reports of what exactly is the correct command for the defaults write command. I've used the one above as well as a few others, like AppleShowAllFiles YES, bool true, etc. Is there any way to get those files back?
    Thanks in advance.

    1. Look for it directly inside your home folder, or try using the Terminal's find command to locate files with the names of items in that folder.
    2. The syntax used is one of the correct ones for that command.
    (87770)

  • 9.2.0 Upgrade (CPSID_50026) "Files in Use" - "Some files that need to be updated are currently in use" "Program Manager"

    I have no other applications open, when I try to update with 9.2.0, but I receive subject error message.  Task Manager shows NO Image Name called "Program Manager".  There is nothing else running, that is obvious to shut down.  Any suggestions, Please?
    rick

    Have these posted suggestions worked for anyone?  I have been using the same installation files on several different machines.  Most machines upgrade just fine but, I have a few that receive this error and I cannot seem to get past it:  "Some files that need to be updated are currently in use"  "Program Manager" is the program that the installer is complaining about.  Does anyone know what program "Program Manager" is?  I'm assuming it is an Adobe file but, why would it interfere with one of my installations and not all of them?
    I'm using the same installation files for all installs so, I don't believe that it could be my downloaded installation setup files.
    Thanks so much in advance for your assistance --

Maybe you are looking for

  • How to configure network with just 1 ethernet adapter?

    I was looking for a guide which would talk about how to configure your network in case if you have only 1 Ethernet adapter. Is it mandatory to have more than 1 network card to configure multiple ports? If not, what are the options available to deploy

  • Why won't iTunes launch like it used to?

    I had this problem going on ever since I updated it. My problem is that I would launch iTunes like I would normally do, but it started to bug me because I couldn't launch it again. Once I launched it for my purposes it's fine but after I close it and

  • Partner's bank type error?

    Hi, I have assigned Partner's bank Type in the vendor master data and I have mentioned it at the time of making invoces. But, when I am trying to run the F110 APP and system is not picking up the invoices I want to know is there anything which is mis

  • Please help error regarding GPShell 1.4.2 with Java Card 2.2.1

    Hi masters.. please help me regarding GPShell + Smart Card Reader (namely Omnikey Cardman 5321).. currently i've a smart card reader (Omnikey) and a sample java card that support for Java Card 2.2.1.. i've installed Smart card reader's driver, and it

  • Reporting python package bugs

    I just took the plunge and added [testing], [community-testing] and [multilib-testing] to pacman and updated 102 packages, including, of course, the Big Python Move of 2010. Nothing is broken (yet) except for calibre, or actually, python-cssutils-bet