How to read an xml file in OSB using file protocol where reading file path is dynamic.

HI,
We have to read a xml file from a location and write into Db.
Here reading file location is dynamic .
Please suggest

Hi
With open dataset you can open any file on the application server. So it should be working, but maybe you are looking for:
CALL TRANSFORMATION my_transformation
       SOURCE  XML xml_string
       RESULT  ROOT1 = field1
               ROOT2 = field2.
Best regards,
Guido Koopmann

Similar Messages

  • How can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    how can I convert .pdf file to .doc using the free adobe reader app? when I try to convert the .pdf file it asks me to sign in. when I click on "sign in", I am taken to a service subscription page. So, no free conversions using free adobe reader app?

    As has been mentioned Adobe Reader cannot export PDF page content. Nor can it create PDF or manipulate PDF page content.
    What you can do is use one of Adobe's online subscription services. Two provide for PDF  to Word export.
    There's ExportPDF and PDF Pack.
    Be well...

  • How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?

    How do I set the HELP menu to use Indesign's local HELP files on the hard drive and not the web?
    CS 5.0 launches the internet browser.  > TO SLOW I DONT WANT THIS.
    CS 3.0 uses the local help files > I WANT THIS FOR 5.0.

    You're not speaking to the right forum for your request. Help is a Suite-wide feature and here is the forum where the Help application is discussed, and where the proper Adobe people hang out:
    Community Help Application

  • How compare two URLs for equality if one uses jar protocol?

    I'm trying to see if some URLs are referring to the same jar file but some of them come with the prepend/append of "jar:file:/" and "!/" and some are just as "file:/". So when I call "URL.equals(...)", it returns false. How do I properly compare these two?
    //Returns false, even though both can be used to find the jar file
    new URL( "jar:file:/home/me/tmp.jar!/" ).equals( new URL( "file:/home/me/tmp.jar" ) );

    The URL with the leading "jar:" and trailing "!/" is a JAR URL. It's described in the JarURLConnection class API document.
    This is one way (there any be a simpler one). You will have to figure out whether you're working with a jar URL or a "regular" URL by parsing the URL to figure out which kind it is. One diffrence is the leading "jar"
    import java.io.IOException;
    import java.net.JarURLConnection;
    import java.net.MalformedURLException;
    import java.net.URL;
    public class Xy
        public static void main(String[] args)
            throws MalformedURLException, IOException
            URL fileURL =
                new URL("file:/Program Files/Java/jre6/lib/deploy.jar");
            URL jarURL =
                new URL("jar:file:/Program Files/Java/jre6/lib/deploy.jar!/");
            String fURL = fileURL.toString();
            System.out.println("fileURL: " + fURL);
            String jURL = ((JarURLConnection) jarURL.openConnection()).
                getJarFileURL().toString();
            System.out.println("jarURL: " + jURL);
            if (fURL.equals(jURL))
                System.out.println("They are equivalent");
    }

  • Is there a program I can use to retrieve corrupted .MOV files, from a HD memory card where some files will open, and others wont?

    Hi,
    I have a Mac OS X version 10.6.8 with a 3.06 GHz Intel Core 2 Duo processor and 4 GB 1067 MHz DDR3 memory.
    I have recently shot some still and moving footage on my Cannon EOS 500 D (digital camera) using an AMICOE SD C10 8 GB high speed memory card.
    After uploading these photos and movies onto my Mac, I am only able to open about 2/3 of the files that appear on the screen.  In the case of the movie files, I can see a number of the file icons, however about 1/3 of them will not open (I get a message saying that Quicktime does not recognise this file - yet it is a .MOV file. Interestingly I can see a small thumbnail for each of these files that will not open, however I am unable to expand the thumbnail into the larger size) and there are a number of photos that simply do not appear as a file or thumbnail.
    Is there a program I can use to retrieve these corrupted .MOV and JPEG files from either my computer or the memory card?
    Thank you for your interest in this question.
    Cheers,
    Shaughno.

    ....to add to the last part... When adding to the iTunes library,- I need iTunes to make a quick-scan to verify that media I am adding isn't already in there,- preventing duplicates that make remedial tasks of removing* duplicates so annoying and unproductive...

  • How to convert hierarchy XML to CSV format using PI/XI

    Hi All,
         I am working with SAP PI/XI for the first time and need some help file conversion of complex hierarchy XML to CSV file using PI. I have done plenty of research on SDN and could find much related to what I want to do.
    Here is the example of how my input XML would look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <PartyMaster type="OrgHierarchy" name="Compass Group Owned">
        <PartyMasterHierarchy>
             <Hierarchy level="3" nodeName="Bon Appetit Sector" type="Sector" ID="A00000" refID="A00000">     
                   <Hierarchy level="4" nodeName="BA Division" type="Division" ID="AB0000" refID="AB0000" >               <Hierarchy level="5" nodeName="BA East Coast Region" type="Region" ID="ABE000" refID="ABE000">
                             <Hierarchy level="6" nodeName="Engstrom, John RVP" type="District" ID="ABE01" refID="ABE01" >
                             </Hierarchy>
                           </Hierarchy>
         </Hierarchy>
                    </Hierarchy>
                    <Hierarchy level="3" nodeName="Levy Sector" type="Sector" ID="K00000" refID="K00000".               <Hierarchy level="4" nodeName="Levy Sector Division" type="Division" ID="K90000" refID="K90000">              <Hierarchy level="5" nodeName="Levy Sector Region" type="Region" ID="K99000" refID="K99000">                   <Hierarchy level="6" nodeName="TBA Total" type="District" ID="K9901" refID="K9901">                        </Hierarchy>
              </Hierarchy>
         </Hierarchy>
                     </Hierarchy>
            </PartyMasterHierarchy>
    </PartyMaster>
    I would like to get CSV output in the format below
    *DISPLAY_NAME     DOCUMENT_DESCRIPTION      PARENT           EXTERNAL_ID     ORG_UNIT_TYPE*     
    Bon Appetit Sector     Bon Appetit Sector      constant value    A00000                       constant value
    Levy Sector          Levy Sector           constant value    K00000                 constant value
    BA Division          BA Division            A00000                 AB0000                       constant value
    Levy Sector Division         Levy Sector Division       K00000              K90000                       constant value
    BA East Coast Region     BA East Coast Region          AB0000             ABE000                        constant value
    Levy Sector Region     Levy Sector Region       K90000              K99000                        constant value
    Engstrom, John RVP     Engstrom, John RVP        ABE000               ABE01              constant value
    TBA Total                    TBA Total             K99000               K9901             constant value
    1) How do I go about this? I think I have to configure an adapter but which adapter would give me the desired result?
    2) How do I tell PI when to pick the file from and where to place it after conversion? Could this be done in adapter configuration?
    Any help will be greatly appreciated.
    Thanks.
    --Mithun

    Mithun,
    you would get lot of answers if you looking in the PI (process integration forum)... There is something calles File content coversion in XI file adapter (which can convert the xml to csv and viceversa)

  • How to parse/extract XML from clob field using ODI

    Hi,
    I am very new to ODI. I have an oracle table which has clob field. This clob field contains xml. I would like to parse this xml and convert it to oracle table. Means I would like to make all the tags of xml as oracle table columns.
    I have created a PL/SQL procedure and used XMLTABLE function and I have achieved my goal. The same this I am trying to do with ODI. Since I am new to ODI so any help is appreciated.
    Thanks

    In 9.2, you are limited into your options. Have a look into, among others, updateXML. Updating tp 10gR2 will give you more options to succeed.

  • How do I create links between two pdfs using FrameMaker 9, while both files remain open?

    In FrameMaker 9 is there a way to create cross reference to a particular page on another doc (without closing the current/source doc)?
    I tried using "openpage filename:pagenumber" option, the link takes me to page 1 of the referenced doc not to the specified page, and as it is a hyper link when page 1 of the referenced doc gets displayed the souce doc closes.
    When a link is clicked in the source doc, it is required that the source doc remians open.
    This is an urgent requirement, can anyone please reply soon?

    I think you've already asked this in this thread - http://forums.adobe.com/message/5613200#5613200 - and it's been answered there.

  • How can I adjust the file names when using the "export layers to files" Script in photoshop?

    Currently the standard set up adds "_0000s_0001_" in front of the layer names that I need the new files to use. I'm processing hundreds of images so I'd like to avoid selecting and deleting the extra characters one by one. Any way to automate this or set it correctly before exporting?

    http://forums.adobe.com/thread/688851?tstart=0

  • WHY YOU SHOULD NOT USE SKYPE (and where to file co...

    Approximately two weeks ago, my account was blocked for no apparent reason.
    I contacted customer support and they didn't know why it was blocked, but told me to go through the account verification process. I asked to speak to someone on the phone to discuss this but was ignored. Then, within 48 hours I suddenly received a NEW email telling me that my account was blocked PERMANENTLY (funnily enough THEY CHARGED ME $25 USD for SKYPE CREDIT before blcoking me!!!). I want to make sure ALL PEOPLE KNOW about the absurd practices of Skype. I am now out $25 USD and permanently locked out my account forever. WHere can we file complaints? Better BUsiness Bureau? I have contacted my rep numerous times on how to overturn this and he just ignores me saying nothign can be done. this is absurd!!
    See below from Tyron H (A horrible customer service rep I might add)
    Hello,
    Good Day! Unfortunately, we cannot re-activate your account. We take the safety of Skype customers very seriously and need to apply certain restrictions to protect our customers' details. We apologize for the inconvenience and appreciate your understanding.
    In accordance with paragraph 11.2 of the Skype Terms of Use we have terminated your right to use the Skype software, and have prevented any further access to your Skype account.
    This is because you are in breach of paragraph 6.3 (c) of the Terms of Use which prohibits the use of the Skype software to send unsolicited communications. Any Skype Credit that was in your account is non-refundable.
    Best Regards,
    Tyron H.
    Skype Customer Service

    My_Money wrote:
     A class action in the United States  prohibits them from doing this now (in the US) and repayed dupped users.
    Hello and welcome to the Skype Community.
    To clarify:
    The settlement reached in the USA applies to unused Skype Credit being made available to users following a 180 day period of inactivity and is honored by Skype worldwide [except in Japan].
    You are referring to a different issue - that of automatically recurring Subscription payments to which you agreed upon signing up.
    http://www.skype.com/en/legal/tou/   [item 9.4]
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Add Counter to File name when using Tran Protocol as FTP

    Hi There,
    Was wondering if there was any way to achive the same "Add Counter"  functionality used for File names in Reciever file adapter when we are using FTP as the transport protocol, this option is only provided in NFS,
    My requirement is ..
    Write files using counter on to ftp..
    say if three files already exists on the ftp server with names ...fname001, fname002 and fname003
    then the next time a file is written it should have a file name fname004 else fname001 if no file exists.
    Any help would be greatly appreciated

    No such standard functionality is available in communication channel...
    But you can try customizing ur scenario in one of the following ways...
    Case 1: If a field in source data carries the information regarding the sequence.
    You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a Ztable to store the sequence number , a function module to fetch the number , and then use a UDF in which you will implement the RFC call logic.Then the same process .... assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • How to create ViewModel in an MVVM application using entity framework where database has many-to-many relationship?

    I have started developing a small application in WPF. Since I am completely new to it, to start with I took a microsoft's sample available at
    Microsoft Sample Application and following the pattern of the sampke I have been so far successful  in creating four different views for their corresponding
    master tables. Unfortunately, I have got stuck up as the sample does not contain pattern for creating ViewModel when there is a many-to-many relationship in the database. In my application, I have the following data structure:
    1. Table Advocate(advId, Name)
    2. Table Party (partyId, Name)
    3 Table Case (caseId, CaseNo)
    4. Link Table Petitioner (CaseId, PartyId)
    5. Link Table Respondent (CaseId, PartyId)
    6. Link Table EngagedAdvocate(CaseId, advId)
    7. Link Table EngagedSrAdvocate(CaseId, advId)
    In the scenario above, I am a bit confused about how to go forward creating the required ViewModel which would render me to have multiple instances of Petitioners, Respondents, Advocates and SrAdvocates.
    Please explain details in step by step manner considering that whatever work I have completed so far is a replica of Microsoft's sample referred above. I would also like to mention that I have developed my application
    using VB.net. So please provide solution in vb.net.
    After getting many-to-many relationship introduced into my application, it would achieve one level above the sample application and I would like to share with the community so that it could be helpful to many aspiring developers seeking help with MVVM.

    Hi ArunKhatri,
    I would suggest you referring to Magnus's article, it provides an example of how you could display and let the user edit many-to-many relational data from the Entity Framework in a dynamic and data-bound DataGrid control in WPF:
    http://social.technet.microsoft.com/wiki/contents/articles/20719.wpf-displaying-and-editing-many-to-many-relational-data-in-a-datagrid.aspx
    You can learn how to design the ViewModel and the relationship between the entities.
    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.

  • Can I upload an image or text file to ebay using an alias of the file?

    Hi,
    I don't want to make a lot of duplicates of my photos. I need to upload photos to eBay, Craigslist etc. Can I upload a file by choosing the alias of that file when I'm in the 'post photos' part of creating an auction?
    Thanks,
    Rafael
    PS Soon I'll be working on Mountain Lion.
    Message was edited by: Rafael Montserrat1

    Uploading should not destroy the original, require a copy, or an alias, just copy it to eBay!

  • Reading huge flat file in OSB 11gR1

    Hi,
    I want to read a flat file in OSB.The size of the flat file may be larger, upto 1 MB.
    As per my knowledge, OSB provides following approaches to read a flat file-
    1.JCA(creating a file adapter in jdev and importing artifacts in OSB)
    2.MFL transformation
    3.Java callout
    Please let me know which is the best way to read the flat file.Also , is there any other way to do the same.
    Thanks in advance.
    Regards,
    Seemant
    Edited by: Seemant Srivastava on Feb 18, 2011 1:47 PM

    Which option is best one to convert a flat file to XML - is it via File Adapter or MFL ? Well, it's a topic of debate and it usually depends on your choice. Manoj has explained it clearly above that why one may prefer File Adapter over MFL. It also depends on your familiarity with the product. If you are a Oracle developer dealing with BPEL/Mediator mostly then you will prefer going for File adapter in this situation, even with OSB, but if you are a OSB developer (since the time it was known as ALSB) you will prefer MFL over adapter.
    It's just matter of choice & your comfort. Remember, in different-different cases, both solutions may result in different performance, so better test them from performance perspective and then choose.
    Such flexibility of optional tags can only be handled by mfl.I don't think so. File adapter should also be able to handle this use case. Have you checked this -
    http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/nfb.htm#CHDDHEAI
    Also, upto what size of input file is supported by mfl.It's a unanswerable question. It totally depends upon your system structure. I personally don't prefer huge files translation at OSB because it hurts the performance of OSB.
    but I think such feature will not be supported when the file adapter artifacts are imported and used in OSB 11.1.1.3/11.1.1.4Correct. From OSB Dev guide -
    25.2.1.1 Oracle JCA Adapter Limitations
    Following are limitations when using some JCA adapters with Oracle Service Bus:
    •Oracle JCA Adapter for AQ – Streamed payload is not supported with Oracle Service Bus.
    •Oracle JCA Adapter for FTP and Files – Attachments (large payload support), pre- and post-processing of files, using a re-entrant valve for processing ZIP files, content streaming, and file chunked read are not supported with Oracle Service Bus.
    http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15866/jca.htm#BABBICIA
    Regards,
    Anuj

  • How to fix the xml?

    We have the dilema of geting from an outside application to us a file with xml.
    We push the files in WebDAV and we have the information in the repository.
    Our problem is that the files are like:
    < Document >
    < Field1> val1 </Field1>
    < Field2> <?xml ,,,,,,
    &lt;Field3&gt;Value4&lt;/Field3&gt; .....
    >
    </Field2>
    </Field1>
    </Document>
    Our objective is :
    use the WebDAV and read the xml content from the resource_view after been inserted using webdav and copy/insert in a table in our aplication the content of the xml file.
    Our Problems:
    1)-We have in a field in the document XML where the begin and ending tags are like "&lt;" and "&gt;" also we have the "?xml" on it.
    2)- The files are bigger than 4000 chars.
    3)- When we try to use any of the xml function it fail.
    a)
    I have try to read the xml from the repository using the getCLobVal() and convert the information ot a XMLTYPE field in a table. But doesn't work.
    We use also replace() on the clob field to fix the "&lt;" , "&gt;" and the "?xml" part but we also have problems.
    b)
    I have been able to read the files from a directory with bfile.. as clob and fix the xml with the replace and able to write to the tables and do the interpretation of the file in our tables. But how I will be able to write this file to the directory after I have the information in the repository. We don't need an automatic process.
    The web application is presenting "path_view" information in a web page where the user pick/click the file to process.
    Thank you for your help in advance.
    I can submit a real file if email is provided.
    Jose.

    Your file is not valid XML. The only way that <?xml> can appear inside <Field2> is if it is enclosed in a CDATA Section. If that is the case you should be able to extract() the contents of field2/text(), and then use dbms_xmlgen to convert the contents from escaped XML to real XML...
    SQL> var xmltext1 clob
    SQL> var xmltext2 clob
    SQL> var xmltext3 clob
    SQL> --
    SQL> set define off
    SQL> begin
      2    :xmltext1 := '<T><FIELD1><?xml version="1.0" encoding="UTF-8"?><Test/></FIELD1></T>';
      3    :xmltext2 := '<T><FIELD1><![CDATA[<?xml version="1.0" encoding="UTF-8"?><Test/>]]></FIELD1></T>';
      4    :xmltext3 := '<T><FIELD1><?xml version="1.0" encoding="UTF-8"?><Test/></FIELD1></T>';
      5  end;
      6  /
    PL/SQL procedure successfully completed.
    SQL> set long 10000
    SQL> --
    SQL> select xmltype(:xmltext1)
      2    from dual
      3  /
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00209: PI names starting with XML are reserved
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 272
    ORA-06512: at line 1
    no rows selected
    SQL> select xmltype(:xmltext2)
      2    from dual
      3  /
    XMLTYPE(:XMLTEXT2)
    <T>
      <FIELD1><![CDATA[<?xml version="1.0" encoding="UTF-8"?><Test/>]]></FIELD1>
    </T>
    SQL> select xmltype(:xmltext3)
      2    from dual
      3  /
    XMLTYPE(:XMLTEXT3)
    <T>
      <FIELD1><?xml version="1.0" encoding="UTF-8"?><Te
    st/></FIELD1>
    </T>
    SQL> select extract(xmltype(:xmltext2),'/T/FIELD1/text()').getClobVal()
      2    from dual
      3  /
    EXTRACT(XMLTYPE(:XMLTEXT2),'/T/FIELD1/TEXT()').GETCLOBVAL()
    <![CDATA[<?xml version="1.0" encoding="UTF-8"?><Test/>]]>
    SQL> select extract(xmltype(:xmltext2),'/T/FIELD1/text()').getClobVal()
      2    from dual
      3  /
    EXTRACT(XMLTYPE(:XMLTEXT2),'/T/FIELD1/TEXT()').GETCLOBVAL()
    <![CDATA[<?xml version="1.0" encoding="UTF-8"?><Test/>]]>
    SQL> select xmltype(substr(CDATA,10,length(CDATA)-12))
      2   from (
      3           select extract(xmltype(:xmltext2),'/T/FIELD1/text()').getClobVal() CDATA
      4           from dual
      5        )
      6  /
    XMLTYPE(SUBSTR(CDATA,10,LENGTH(CDATA)-12))
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <Test/>
    SQL> select xmltype(dbms_xmlgen.convert(extract(xmltype(:xmltext3),'/T/FIELD1/text()').getClobVal(),1))
      2    from dual
      3  /
    XMLTYPE(DBMS_XMLGEN.CONVERT(EXTRACT(XMLTYPE(:XMLTEXT3),'/T/FIELD1/TEXT()').GETCL
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <Test/>
    SQL>Note in the above example the assignment to xmltext3 should read
    :xmltext3 := '<T><FIELD1> & lt;?xml version="1.0" encoding="UTF-8"? & gt; & lt;Test/ & gt;</FIELD1></T>'; but without the ' ' before and after each '&' character
    Message was edited by:
    mdrake

Maybe you are looking for