How to combine "Object-to-XML (OXM)" and "Direct to XML Type" mapping?

hi
If I have an XMLType column in my table (wich I can map using TopLink) and I have defined the structure of the contents of this XMLType column using XML Schema (wich I can map using Toplink), how can I combine both types of TopLink mappings "as transparently as possible"?
for "Object-to-XML (OXM)" mapping
see http://www.oracle.com/technology/products/ias/toplink/technical/tips/ox/index.htm
for "Direct to XML Type" mapping
see http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/relmapun004.htm#CHDFIFEF
thanks
Jan Vervecken

Thanks for your reply James Sutherland.
Although I haven't used a "TopLink Converter" before, this seems like a good idea.
The thing is that the "TopLink Workbench Editor" for my "Direct to XML Type" mapping doesn't have a "Converter" tab, some other mapping type editors do have such a "Converter" tab.
I'm not sure if I completely understand how such a "TopLink Converter" is supposed to work. How many attributes do I need in the "XMLRow" Java object for the "MY_XML" column in the "XML_TABLE" table I try to map to?
I suppose I should try to get a situation where the "XMLRow" Java object has an "myXML" attribute of Java class type "MyXML" (where "MyXML" has been mapped to an XML Schema), not?
So do I also still need an attribute "myXMLDocument" of type org.w3c.dom.Document as I do now for the "Direct to XML Type" mapping?
Oh, by the way ... for anyone who hits this forum thread looking for the reason why the TopLink Workbench reports the problem "Attribute must be assignable to java.lang.String, org.w3c.dom.Document, or org.w3c.Node" while your attribute is of such a type, read this forum post
Re: Toplink WB 10.1.3 - Aggregate field mapping bug and XMLType question
For me the "Direct to XML Type" mapping works fine, just ignoring the waring. This is supposed to be bug number 5071250.
thanks
Jan Vervecken

Similar Messages

  • How to retrieve data from catsdb table and convert into xml using BAPI

    How to retrieve data from catsdb table and convert into xml using BAPI
    Points will be rewarded,
    Thank you,
    Regards,
    Jagrut BharatKumar Shukla

    Hi,
    This is not your requirment but u can try this :
    CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
    GRANT READ ON DIRECTORY text_file TO fah;
    GRANT WRITE ON DIRECTORY text_file TO fah;
    DROP TABLE load_a;
    CREATE TABLE load_a
    (a1 varchar2(20),
    a2 varchar2(200))
    ORGANIZATION EXTERNAL
    (TYPE ORACLE_LOADER
    DEFAULT DIRECTORY text_file
    ACCESS PARAMETERS
    (FIELDS TERMINATED BY ','
    LOCATION ('data.txt')
    select * from load_a;
    CREATE TABLE A AS select * from load_a;
    SELECT * FROM A
    Regards
    Faheem Latif

  • How to combine objects into one

    Can I combine two or more objects (say, text box and rectangle) so that they effectively become one object? Other software calls this Grouping of objects.

    Welcome to the Apple Discussions. See Old Toad's Tutorial #7 - Converting Photos w/Frames, Drop Shadows and/or Reflections into a Single JPG Image. It describes exactly what you want to do.
    OT

  • Reading A xml file and sending that XML Data as input  to a Service

    Hi All,
    I have a requirement to read(I am using File adapter to read) a xml file and map the data in that xml to a service(schema) input variable.
    Example of  xml file that I have to read and the content of that xml file like below:
      <StudentList>
        <student>
           <Name> ravi</Name>
           <branch>EEE</branch>
          <fathername> raghu</fathername>
        </student>
      <student>
           <Name> raju</Name>
           <branch>ECE</branch>
          <fathername> ravi</fathername>
        </student>
    <StudentList>
    I have to pass the data(ravi,EEE,raghu etc) to a service input varible. That invoked Service input variable(schema) contains the schema similar to above schema.
    My flow is like below:
      ReadFile file adapter -------------------> BPEL process -----> Target Service.I am using transform activity in BPEL process to map the data from xml file to Service.
    I am using above xml file as sample in Native Data format(to create XSD schema file).
    After I built the process,I checked file adapter polls the data and receive the file(I am getting View xml document in EM console flow).
    But transform activity does not have anything and it is not mapping the data.I am getting blank data in the transform activity with only element names like below
    ---------------------------------------------------------------------------EM console Audit trail (I am giving this because u can clearly understand what is happening-----------------------------------------------------
       -ReceiveFile
            -some datedetails      received file
              View XML document  (This xml contains data and structure like above  xml )
        - transformData:
            <payload>
              <InvokeService_inputvariable>
                  <part name="body">
                     <StudentList>
                         <student>
                           <name/>
                            <branch/>
                            <fathername/>
                         </student>
                   </StudentList>
              </part>
             </InvokeService_inputvariable>
    'Why I am getting like this".Is there any problem with native data format configuration.?
    Please help me out regarding this issue as I am running out my time.

    Hi syam,
    Thank you very much for your replies so far so that I have some progrees in my task.
    As you told I could have put default directory in composite.xml,but what happenes is the everyday new final subdirectory gets created  in the 'soafolder' folder.What I mean is in  the c:/soafolder/1234_xmlfiles folder, the '1234_xmlfiles' is not manually created one.It is created automatically by executing some jar.
    Basically we can't know the sub folder name until it is created by jar with its own logic. whereas main folder is same(soafolder) ever.
    I will give you example with our folder name so that it would be more convenient for us to understand.
    1) yesterday's  the folder structure :  'c:/soafolder/130731_LS' .The  '130731_LS' folder is created automatically by executing some jar file(it has its own logic to control and create the subdirectories which is not in our control).
    2) Today's folder structure :  'c:/soafolder/130804_LS. The folder is created automatically(everytime the number part(130731,130804).I think that number is indicating 2013 july 31 st like that.I have to enquire about this)is changing) at a particular time and xml files will be loaded in the folder.
    Our challenge : It is not that we can put the default or further path in composite.xml and poll the file adapter.Not everytime we have to change the path in composite.xml.The process should know the folder path (I don't know whether it is possible or not.) and  everyday and file adapter poll the files in that created subfolders.
    I hope you can understand my requirement .Please help me out in this regard.

  • Parse exisitng xml file and recreate another xml file with different struct

    Is it possible in java using dom parser to parse an exisiting xml file and recreate a new xml file from data obtained by parsing old xml file.
    I checked on old forum threads and everywhere either parsing xml file has been explained or creating new xml file from scratch has been shown.
    Any examples/guidance will be appreciated....

    The general process is:
    Document dom1 = ... // the parsed document
    Document dom2 = ... // new document constructed on the fly
    Node nD1 = ... // some random node found in dom1
    // copy the node from dom1 and associate with dom2
    Node nD2 = dom2.importNode(nD1, true);
    // ... treat nD2 as a node which can now be inserted into dom2 ...
    Node otherD2 =  ... // some other node already in dom2
    otherD2.appendChild(nD2);Note, in this example the nD1 node is copied (including any sub-nodes) into a new node, nD2. You can alternately move the node from one Document to another using Document.adoptNode(), however this may fail (see the javadoc).

  • How to delete objects created in IR and ID

    Hello ,
    What is the right way to delete the SWCV from IR and Configuration scenario from ID .
    I am using PI 7.11  version. Also, want to know that ,if i want to take backup , then how to  do that.
    Thanks in advance.
    Ravi

    Hello,
    What is the right way to delete the SWCV from IR and Configuration scenario from ID .
    You start from the top to the bottom, by this I mean you delete objects in this order
    ESR:
    Operation Mappings -> Message Mappings -> Imported Archives -> Service Interfaces -> Message Types -> Data Types -> Context Objects  -> External Definitions
    ID:
    Receiver Agreement -> Sender Agreement -> Interface Determination -> Receiver Determination -> Communication Channels -> Business Component/Business System -> Party
    I am using PI 7.11 version. Also, want to know that ,if i want to take backup , then how to do that.
    Transport your SLD, All ESR objects under that SCV, All ID objects under that SCV as a file and then save in your local directory. That way, even if you deleted the objects you can still reimport them when the need comes.
    Hope this helps,
    Mark

  • How to combine rtp data containing video and audio?

    Hi
    I have a problem. I was examining with AVTransmit3.java and AVReceive3.java. I found that AVTransmit3 sending video and audio with different ports. It's okey as it is done as JMStudio. but my question is how can I receive this packets as raw bytes and combines them into one media file to play at a time in a player. May be very fundamental question but tough for me as i m novis as jmf programmer.
    waitin for repply...................

    Look in the JMF Guide regarding multiplexors and demultiplexors. It give the whole breakdown of how this works (and I think examples).

  • How will be the weblogic-ejb-jar and ejb-jar xml for EJB Local Interface?

    Hi,
    I have one ear application which is using Stateless Session Beans. I don't have any Bean to Bean communication . At present, the client is invoking remote methods thro Home/Remote interfaces. My doubt is , shall I implement EJBLocal home/ local interface to obtain this same functionality cos, in this app, both client and EJb bean have been deployed in same JVM. Can Local interfaces only be applicable to Bean - Bean relation ship?If LocalHome/Local interfaces can be implemented in my scenario, then may I know how will be the ejb-jar.xml and weblogic-ejb-jar.xml?
    thanks and regards,
    Venkat.

    Local interfaces are for communication between ejbs and their clients when both are in the same JVM. The clients can be normal clients, jsps, servlets, and other ejbs. If the client is not in the same JVM you cannot use local interfaces even though your client is another ejb.
    Advantage of using local interface is it reduces the network overhead.
    For more information you can download Mastering Enterprise Java Beans Third Edition by Ed Roman. You can go through 45
    You can download pdf version from.
    http://www.theserverside.com/books/wiley/masteringEJB/index.tss.
    Let me know the URL of the ejb doc that you referred.
    Thanks..

  • How to placing objects in a box and avoid to get out of box in wpf

    Hello guys.
    I do not know what
    title should I choose for
    my question but I try to explain what
    I mean. Look at the following
    picture:
    In the number 1,
    You can see the issue that I want to do
    design.
    This section contains a
    background image and a Rectangle
    at the bottom.
    In the number 2,
    When I wan to change the location Rectangle, it
    will be out of the box but Iwant
    to be like number 3.
    I do not want to Rectangle
    go out of the box.How can I do that in WPF?
    plz help.
    I hope you
    understand what I mean.
    thanks.

    Set the ClipToBounds property of the parent container (the "Box") to True:
    <Border BorderBrush="Black" BorderThickness="1" Width="300" Height="300" Background="Silver"
    ClipToBounds="True">
    <DockPanel LastChildFill="False">
    <!-- your background image here -->
    <!-- the bottom Rectangle with negative margins:-->
    <Rectangle DockPanel.Dock="Bottom" Fill="DarkGreen" Width="270" Height="50"
    HorizontalAlignment="Left" Margin="-10 0 0 -10" ClipToBounds="True">
    </Rectangle>
    </DockPanel>
    </Border>
    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.

  • How to combine Digital Output, a delay and Analog Input in a fast loop

    I need to develop a process loop that runs at least at 250 Hz that performs a Digital output, than a delay of 50 microseconds and than an analog input of all the channels. All will be done using ATI MIO 64E3 card. Of course, the acquired data will be processed, displayed and saved. The loop will be running for several minutes until user stops it.

    The fastest and most precise timing will occur if you use hardware timing. You can apply hardware timing to analog input on the E Series boards, but not the digital lines. Let's focus on the analog input first. Continuous waveform scanning uses a scan clock, which can be the board's internal one or an external one which you apply. If you want to scan all the channels 50 microseconds after a digital rising edge, then you need an external signal to signify that scan clock.
    The E Series boards also have 2 counter/timers onboard that you can use for this purpose. You can set up a retriggerable pulse generation operation, where the counter receives a trigger and then on the user specifications, produces a pulse. You can have that route to the analog input scan clock.
    The trigger signal for the counter is that digital pulse. As I mentioned earlier, there is no hardware timing for the digital lines on an E Series board. We do have other digital boards (653x family) that have hardware timed operations if precision is important. If you are satisfied with software's resolution (in the milliseconds), then you can call the E Series board digital function in a loop with a software timer. That digital line can route to the counter to act as the trigger.
    So, on the programming side, you can have three separate and independent operations in parallel. One is for the digital function to output on that line every so often. Another is for the counter set at the retriggerable pulse generation. The last is for the analog input. I will describe this in terms of LabVIEW, but it can be done in a similar fashion with the NI-DAQ function calls or Measurement Studio.
    The digital examples are in the LabVIEW >> Examples >> Daq >> Digital >> E-Series directory. The Generate Retriggerable Pulse example is in the LabVIEW >> Examples >> Daq >> Counters >> DAQ-STC directory. The E Series boards use the DAQ-STC timing chip.
    Go to the LabVIEW >> Examples >> Daq >> anlogin >> strmdisk.llb directory and start with the Cont Acq to Spreadsheet File. This shows how to continuously acquire data and stream it to disk while displaying the data on a chart. Streaming to disk is the efficient way to save data while you are acquiring, as it eliminates the overhead of always opening and closing the file through the iterations of the loop. This saves to a file that can be opened by other applications (Excel, Word, etc.), but it is not as fast as writing to a binary file, which must be opened and read back through LabVIEW. However, for your ~250 Hz rate, it should be fine. Then, go to the LabVIEW >> Examples >> Daq >> anlogin >> anlogin.llb and look at the Acquire N Scans -ExtScanClk example. This shows how to apply the scan clock. Here, the AI Start that you saw in the previous example is replaced by 4 VIs (3 AI Clock Config's and the AI Control). Make those changes to the first example and then add a constant 0 to the AI Control parameter for total scans to acquire. That specifies the continuous operation. The File >> VI Properties >> Documentation menu item of the example describes the physical connections.
    If you aren't using LabVIEW, use the NI-DAQ User Manual and the NI-DAQ Help file installed on your machine. You can look at your AT E Series User Manual at the http://www.ni.com/manuals pages for more information on the hardware. Also, if you want to route those signals internally on the board, you can find some entries in the KnowledgeBase at the http://www.ni.com/support pages.
    Regards,
    Geneva L.
    Applications Engineering
    National Instruments
    http://www.ni.com/ask

  • SQL*Loader - How to combine Flat File 3 columns and put into one single column

    Receive a flat file delimited by comma. Want to combine Flat File last 3 columns and put into one single column(Table).
    e.g.
    Flat File
    100,239,30,20,30
    While inserting into table want to combine last 3 columns and insert into invoice number column.
    302030

    It is not possible to combine the last 3 columns as those columns are seperated by commas and in the SQL Loader control file you must ve specified COMMA as an delimiter. So u better have all the columns in the table plus add one more column which holds the concatenation of the 3 columns.
    Vijay

  • How to combine 2 tracks of video and one title scroll?

    My end credits montage - under a 1 1/2 min scroll -  is too complex for the Compressor : it stops at 99% done.  If I combine these 3 tracks of video into 1 it will work, but I can't find the video mixdown function in the manual.  Could you please help me?  Thank you.

    Ruth,
    Basically, you have two options.  The first option is the one I described above.  That will give you ONE video file with one video track and two audio tracks.  You can use that file in Compressor, DVD Studio Pro, import it back into FCP for more editing or use it in just about any other video application.  In your case, it would seem that you'd want to import it into your FCP project, and use it to replace the three existing credit scroll tracks that you're having a problem with.
    The second option is to nest.  In FCP youu select (select = highlight) the clips that you want to include then go to Sequence->Nest Items.  The clips you selected (again, selected clips will show up as highlighted) will become like one clip with one video track and up to two audio tracks.  If you double-click a nest in the Timeline, a new Timeline window will open and show the contents of that nest, with each clip in its original track and position.  You can edit the contents of the nest, then go back to the main Sequence and any changes you made will be there.
    That said, it still doesn't address your original issue:  "My end credits montage - under a 1 1/2 min scroll -  is too complex for the Compressor : it stops at 99% done."  In what way would a credit scroll be too complex?  By the way, there is no such thing as a "video mixdown" command or function in FCP.  But you can essentially do the same thing by using one of the two methods above.
    -DH

  • How to merge objects or have italics and plain text on same line?

    Okay, here's my problem - I've been making DVDs in CS5 for a couple of years. In my main menu it usually says something like "Play show title here" and the show title is italicized. Unfotunately, now in CS6, I suddenly can't just highlight the show title and change it to italics, because now it wants to italicize the entire line including the word "Play". If I make "Play" a separate title, so that I can have it in standard font, I can't figure out how to merge it with my show title so that they are highlighted together and work as one single button. Frustrating. Any solutions?

    I don't recall if we found a way to do it in Encore; it is so much simpler in Photoshop.
    The problem in Encore is selecting only the text, not the whole text box.

  • How to combine web.config section encryption and the usage of WebConfigModification

    Hi,
    I have a question about encrypting web.config section that are shared across solutions which might use WebConfigModifications to change the SharePoint web.config.
    Currently, I've embedded custom assemblies in my SharePoint solution. These assemblies read configuration items from the web.config so we need elements in the SharePoint web.config. We added those using the WebConfigModification class. No problem
    so far.
    Additionally, we want to encrypt specific sections, because they contain sensitive information. I tested this and encrypted the specific section. SharePoint still worked and my solution still worked. Still no problem so far.
    However, when I deactivate features that need to remove entries from that specific encrypted configuration section, the entries are not removed. Also, when I activate features that need to add entries to that specific encrypted configuration section, the
    entries are added within the section, but besides the encrypted content in that section. In the last case, SharePoint crashes complaining about invalid configuration. Makes sense, since entries exist twice (once encrypted, once unencrypted).
    Now we can tackle this issue when it's about sections are specifically created for our application/assemblies, but what if this is about section that are also used by other assemblies/solutions, say "connectionStrings" or "appSettings".
    Other SharePoint solutions might want to make changes to these sections as well using the WebConfigModification class. Those assemblies might not be able to deal with encrypted sections.
    Is there a way to deal with this issue, to be able to encrypt these 'shared' sections without other solutions generating a bunch of errors and crashing?
    Thanks in advance for any replies!
    Cheers,
    Ruud Hunnekens.

    Hi Ruud Hunnekens,
    From your description have you tried to first decrypt the section of the web.config file before removing the section nodes. In the feature activated event, add the section nodes and encrypt the section, then in the feature deactivated event, decrypted the
    section, then delete the nodes, check whether this works.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How to combine a stacked bar chart and a line graph together in one report

    I have a report in excel that has stacked bar chart and a line graph together in one report. I am trying to recreate the same in Webi, Is this possible? Did any one have similar requirement, could you please share the thoughts?
    Thanks,
    Hema

    May be I don't understand correctly...
    But if its really to separate chart area's;
    just copy the datablock and format one as line and the other as barchart...
    Hope this helps,
    Marianne

Maybe you are looking for

  • Using OID Authorisation in APEX

    Hi, One of my colleagues (much more skilled in APEX than me) has written a package that makes it easy to use Oracle Internet Directory (OID) groups to control access to pages and items. It assumes that you are already using Oracle Single Sign-On (whi

  • Iphoto where are my pictures

    where are my pctures? i imported from iphone. i see no folder called iphoto library in (can't)finder, and i want to copy these photos onto a thumb drive.

  • Restart J2EE (File) Adapter

    Hello, I configured some J2EE Adapters and sometimes it occures that a adapter is hanging and has to be restarted. My question is: It is possible to restart a J2EE adapter like in the J2SE adapter engine? Thanks in advance and best regards, Falk

  • Snow Leopard Client Dock Behavior & Binding to Snow Leopard Server

    Hi, I am at a loss on this issue. I am running a test server and client. I had bound my client to the server and was having difficulties with the dock settings on the client. I assumed it was a managed preferences issue on the server, so I checked al

  • ProcessID of SQL Query

    Hi, How make for to know the processID of a SQL Query ? What is the link between v$process and v$session and between v$process and v$sql ? Thanks for your help.