Problem mapping to unbounded sequence in OSB

I have a problem with the Xquery transformation editor in Oracle Service Bus.
In the source I have an element with maxOccurs="unbounded" and in the target I have a sequence with maxOccurs="unbounded" containing an element with maxOccurs="1".
The problem is in the Xquery mapping interface all sequences are ignored. Thus it looks like 'targetElement' can only occur once and so I don't know how to resolve this. Is there a way to view the sequences in the mapping interface or something?
---xsd SOURCE---
<xsd:element name="sourceElement" maxOccurs="unbounded">
</xsd:sourceElement>
---xsd TARGET---
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="targetElement" minOccurs="0">
</xs:targetElement>
</xs:sequence>
(I am not at liberty to change the xsd's.)
Thanks in advance, Emelie

..is this what you are after ?
<target>
         for $src1 in $src/sourceElement
         return
         <targetElement>{data($src1)}</targetElement>
        </target>
source
<ns0:anyType xmlns:ns0="http://www.w3.org/2001/XMLSchema">
<sourceElement>a</sourceElement>
<sourceElement>b</sourceElement>
</ns0:anyType>
Result
<target>
     <targetElement>a</targetElement>
     <targetElement>b</targetElement>
</target>

Similar Messages

  • XSLT mapping - Mapping of unbounded elements using Altova Mapforce

    Hi,
    Please give guidance on doing XSLT mapping for unbounded elements in Altova Mapforce. I am not seeing any functions (like FOR loop etc.,) in the XSLT mapping screen for the same.
    I appreciate your input.
    Regards
    Ramesh

    HI,
    For XSLT Mapping refer this help to get functions,syntax etc-
    http://www.w3schools.com/xsl/default.asp
    Regards,
    Moorthy

  • Problem mapping USB external drive connected to Airport Extreme on my PC

    I am having a problem mapping my USB external drive in my PC running WIndows Vista.   Here is what I have so far:
    USB External Drive connected to my AirPort Extreme which is connected to my Century Link modem/router.
    I have installed the USB drive using the Airport Utility.  In the Disks section the Enable File Sharing is checked, Secure Shared Disks is set to With a Disk Password, I have entered the password in the next 2 rows, and finally AirPort Disks Gues Access is set to Not Allowed.  The section below named These Settings Configure Windows File Sharing is empty.  Am I supposed to put something here?
    I was also told I need to map the drive in my PC, but when I go to do that via the Computer and the Map Network Drive, I get stuck where it asks me to enter a folder name.  I read many of the posts which tell me I need to enter among other things the disk's ip address, but I am unable to find it anywhere.  Where do I find what to put here?
    Can someone please help this frustrated user?

    I had my USB drive on my APE working with Time Machine under 10.5.1 very reliably. A few days ago however, I needed to suspend a backup operation, and when I came back to restart it, time machine refused to mount the disk image on the drive. After several attempts to get it to connect with no luck I decided to delete the image (the sparce image file) and start over. Now TM refuses to create a new image.
    BTW, on the Mac OSX hints site there have been suggestions to start a backup with the drive directly connected, then stop the backup, move the sparce image file to the root of the drive, reconnect the drive to the APE base station to get it working. I tried this again, but I think Apple has changed something in 10.5.2, because when directly connected TM no longer creates a sparce image file.
    Anybody else seen this behavior after upgrading to 10.5.2?

  • Problems mapping 2 messages into 1

    Hi.
    I'm facing a problem mapping 2 messages into 1.
    I have a BPM that has 2 abstract messages. In a transformation step, i transform this two messages into one but when i check the IDOC that finally has arrived to R3 backend, the fields that belogns to one of the source messages doesn't appear.
    In message mapping i select the two source messages and the target message and the same in interface mapping.
    Because is a transformation step inside the BPM, i can't see in SXI_MONITOR what's happening.
    any idea of what's happening?
    Regards.
    Inigo.

    Inigo,
    Though its in BPM u can where well test the transformation mapping
    wht are the messages going in what is coming out
    Check How to monitorcc BPM
    https://websmp206.sap-ag.de/~sapdownload/011000358700003141152005E/HowToMonitorccBPM.pdf
    This PDF is very handy
    Regards
    Kavitha

  • Sequencing in OSB

    Hi,
    I have a small issue regarding sequence in OSB. I have to poll data from Oracle DATABASE and push data  to another Oracle DATABASE. For polling I made a one DBadapter. and for insert I made another DBadapter. The polling and insert operation is working fine but I have to make it synchronusly. means Whatever data comes first in polling DB will be picked up first and until and unless all the transformation is processed and inserted into DB, the second data will not be processed.
    My enviornment is cluster enviornment ,There is 3 OSB manage server and 1 application server.
    Should I introduced any JMS between transportation, or we need to introduced anything between them. 
    Please help
    Thanks
    1005175

    With current setup you'll have concurrent requests from each of your managed servers.
    Moreover, since you're using the standard DB adapter you just cannot grab the lock in time (before obtaining the record). Grabbing a lock in proxy will not guarantee the order.
    Hence => You'll need to target the DB adapter to one managed server only.
    I was told setting JCA to "singleton" would put the DB adapter into master/slave mode (i.e. only one MS works at a time, the rest are on standby), but that setting unfortunately doesn't work under OSB.   I did not verify it though -- who knows, may be it got fixed in the latest versions? I'd try if I were you - if it works, you do not need anything else.
    Biz: throttling is per domain; at runtime it is distributed equally between managed servers => you should set concurrency to the value equal to number of managed servers.
    Workmanager: I'd created 2 -- one for proxy and one for biz.
    Vlad
    http://vladimirdyuzhev.com

  • Problem with the browse sequence back and browse sequence next widget placed in the screen layout

    Hi,
    Some basics: We are using Robohelp 10 to  generate multiscreen  html5 output. We used the pharmaceutical  screen layout downloaded from:  http://helpx.adobe.com/robohelp/robohelp-screen-profiles-layouts.html but modified it to match our GUI.
    We are having a problem with the browse sequence back and browse sequence next buttons placed in the screen layout from the widgets tool bar. We are in no way experts at this part of Robohelp...and the css portion of all this is a bit of mystery but we have managed to get mostly what we need. Now we just need these buttons to work. In the past we used Airhelp and things worked great. Can anyone help us understand why the sequence buttons are not showing up in the output even though it does in the topic preview?
    Also
    This shows up in the  layout.css file:
    a.wBSBackButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSBackButton {
                    border: none;
    a.wBSNextButton {
                    margin: 0 8pt 0 0;
                    padding: 0;
                    background-color: transparent;
    img.wBSNextButton {
                    border: none;
    Also btw, I forgot to mention that we are linking our FrameMaker files.
    Appreciate the help.
    Thanks!

    hi pradeep
    It does not happen but if you Wait for a while that may be solved

  • Problem mapping JDO to an existing DB schema

    I'm having problems mapping a legacy database to JDO. Suppose I have a class
    public class Test {
    public int pk;
    public String fieldA;
    public String fieldB;
    public String fieldC;
    An existing legacy table TEST looks like
    TEST
    |============|
    | PK | ... |
    |============|
    | 1 | ... |
    |============|
    The fields values are stored in a separate table
    TEST_FIELDS
    |==========================|
    | PK | FIELD_ID | VALUE |
    |==========================|
    | 1 | 1 | fred |
    | 1 | 2 | accounts |
    | 1 | 3 | jim |
    | 2 | 1 | wilma |
    | 2 | 2 | research |
    | 2 | 3 | alice |
    |==========================
    So the value for fieldA of an object with key i in the TEST table
    would be found in the TEST_FIELDS table with key (i, 1), fieldB with
    key (i,2) and fieldC with (i,3) and so on. I'm not sure how I would express
    such a mapping in the JDO metadata file, or indeed whether this is
    even possible. Any suggestions?

    This mapping is not possible in the current incarnation of
    Kodo.

  • SB Live! 5.1 problem mapping effect to midi controllers

    Hi, I have a SB Li've! 5. and I am having problems mapping effects to the midi controller in the EAX Control Panel. After doing some searching it seems that you can only map 2 effects, to a controller, at any time (which is disappointing), but it seems that for some reason, I cannot even do that, it seems to only allow me to map one effect to a controller at any time.
    For example (In EAX Control Panel (AudioHQ) on the Midi tab) I have the following:
    Original Sound: Not mappable
    Reverb: Not mappable
    Chorus: Default
    Echo: Not mapped
    If I go and try to map Echo to a controller, Chorus changes to "Not mapped", and vice-versa (same with additional effects) thus I can only map one effect at a time.
    Anyone know what the problem is? (and why is Reverb Not mappable? which probablly has something to do with the problem)Message Edited by Russ on 0-3-2005 2:20 PM

    BTW: Not sure what the actual model name of the sound card is, (it said Sound Blaster Li've! 5. Digital on the box), but the model number is SB0220.
    Also, I forgot to mention that this is on Windows XP Professional.

  • Problem with a db sequence in DBAdapter (OSB)

    Hello,
    I'm having problems with a dbAdapter every time I make a installation in a new environment.
    I have a dbadapter that increments a db sequence (custom sql: select seq_onl_audit.nextval from dual) but every time I install the service in a new environment, restart the server and run it for the first time it returns a completly different number.
    Directly in Oracle DB: select seq_onl_audit.nextval from dual = 234
    In OSB: select seq_onl_audit.nextval from dual = 23 (constraint exception!)
    How can I solve this? There's any cache in OSB/Weblogic for this?
    Thank you,
    Lara Fernandes.

    Let me understand what you are trying to do.
    You have created a sequence in DB and you call it from OSB service to fetch the incremented value.
    This works fine.
    When you move the OSB service to another environment it starts giving error/incorrect values while the same sequence when run from the DB still gives correct value?
    Questions:
    Are you pointing to the same DB instance from both/all OSB environments?
    Are you also using the same user to connect to the DB from each environment?
    Can you please post the SQL for your sequence here.

  • Problem Mapping Deep Structure to Flat Structure

    Hello,
    I hope someone can help me.  My scenario is idoc to file.  I am collecting many idocs with a bpm and writing them out to one file.  My bpm is working great, but my mapping program is not working properly.  My source message is a deep structure and my target message is a flat structure. 
    See my example message formats below.
    Source message:
    zmessage (1..1)
    +zidocmessage (0..unbounded)
    ++zidoc       (1..1)
    +++zidocheader (1..1)
    ++++zidocitem  (0..unbounded)
    Target Message:
    zmessage (1..1)
    +zfilemessage   (1..1)
    ++zfilefirstrec (1..1)
    ++zfileheader (1..unbounded)
    ++zfileitem   (1..unbounded)
    I need to map zidocheader to zfileheader and zidocitem to zfileitem. 
    The Source Data:
    <zmessage>
      <zidocmessage>
        <zidoc>
          <zidocheader>
             <hfield1>hf1</hfield1>
             <hfield2>hf2</hfield2>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
          </zidocheader>
        </idoc>
      <zidocmessage>
        <zidoc>
          <zidocheader>
             <hfield1>hf1</hfield1>
             <hfield2>hf2</hfield2>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
             <zidocitem>
               <ifield1>if1</ifield1>
               <ifield2>if2</ifield2>
             </zidocitem>
          </zidocheader>
        </idoc>
    </zmessage>
    The Target Data:
    <zmessage>
      <zfilemessage>
        <zfilefirstrec>
          <firstrecfield1>ff1</firstrecfield1>
          <firstrecfield2>ff2</firstrecfield2>
        </zfilefirstrec>
        <zfileheader>
          <hfield1>hf1</hfield1>
          <hfield2>hf2</hfield2>
        </zfileheader>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
        <zfileheader>
          <hfield1>hf1</hfield1>
          <hfield2>hf2</hfield2>
        </zfileheader>
        <zfileitem>
          <ifield1>if1</ifield1>
          <ifield2>if2</ifield2>
        </zfileitem>
        <zfileitem>
           <ifield1>if1</ifield1>
           <ifield2>if2</ifield2>
        </zfileitem>
      <zfilemessage>
    </zmessage>
    Can someone advise me on how to map this correctly?
    Thank you,
    Rhonda

    Hello,
    Can someone please help me with this problem?
    I am at the point where all of the records in my source message are being written out, however, all of the header records are together and all of the line item records are together.  So, the target message is not in the proper sequence.  It should contain the header record, then item records, header record, then item records, etc. 
    Is there anyone that can help me with this issue?
    Thank you,
    Rhonda

  • Mapping an unbounded message to a bounded.

    Hi.  I am relatively new to XI and have a mapping problem that I have been struggling with all day.
    I have a field SOinErr within an unbounded message that I need to concatenate into a field within a bounded message
    (Content).  I am OK with writing a udf to append the fields but I'm not sure how to iterate through each instance of SOinErr.
    We have XI 7.0 SP13.
    Input: -
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    - <ns1:MT_AllSalesOrderNumber xmlns:ns1="http://royalmail.com/RM_ORDERS_CONTINUITY">
    - <All_SO_Numbers>
      <SOinErr />
      <Err_Msg />
      <SOnoErr>500</SOnoErr>
      </All_SO_Numbers>
    - <All_SO_Numbers>
      <SOinErr />
      <Err_Msg />
      <SOnoErr>600</SOnoErr>
      </All_SO_Numbers>
    - <All_SO_Numbers>
      <SOinErr />
      <Err_Msg />
      <SOnoErr>700</SOnoErr>
      </All_SO_Numbers>
      </ns1:MT_AllSalesOrderNumber>
      </ns0:Message1>
    - <ns0:Message2>
    - <ns1:MT_OrderContinuity xmlns:ns1="http://royalmail.com/RM_ORDERS_CONTINUITY">
    - <DT_OrderContinuity>
      <CustomerAccountNumber />
      <ServiceRegister />
      <ServiceLevel />
      <Weight />
      <ItemCount />
      <BagCount />
      <Class />
      <Format />
      <Sortation />
      <Submission />
      <OCRIndicator />
      <FrankingIndicator />
      <FrankingSurcharge />
      <ZoneIdentifier />
      <CountryIdentifier />
      <Residues />
      <Region />
      <SingleWtUsed1 />
      <ConsignmentReferenceNumber />
      <Department />
      <YourReference />
      <Fees />
      <IssueID />
      <MagazineCode />
      <BookingRefNumber />
      <MAPRefNumber />
      <PosterID />
      <EMailID />
      <YourDescription />
      <CustomerReference />
      <YourNotes />
      <AutoConfirm />
      </DT_OrderContinuity>
      </ns1:MT_OrderContinuity>
      </ns0:Message2>
      </ns0:Messages>
    Desired Output: -
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    - <ns0:Message1>
    - <ns2:Mail xmlns:ns2="http://sap.com/xi/XI/Mail/30">
      <From></From>
      <To />
      <Content_Type>text/plain</Content_Type>
      <Content>500 600 700</Content>
      </ns2:Mail>
      </ns0:Message1>
      </ns0:Messages>

    Hi Rechard,
    The soulution which Anand is suggested is good.
    Create an advanced UDF code and set Cache to queue..
    //write your code here
    String output = "";
    for(int i =0; i < SOnoErr.length; i ++)
    output = output + SOnoErrr<i> + "";
    if ( ! i == SOnoErr.length-1) // this will check the value till 2nd last value
    output = output + ""; //this will add the space after eache value
    result.addValue(output);
    SOnoErr (set the context to root) -
    > UDF -
    > Content
    Regards,
    Sarvesh

  • I'm having a problem with Ultrabeat's sequencer in Mainstage

    In Mainstage, I've set up an Ultrabeat instance on the concert level so that I can use it as a metronome for the whole project.  (I like to be able to customize the sounds, add subdivisions, make it louder than the default metronome sound, etc.)
    However, I'm having a problem.  Sometimes, when I try to use it, it doesn't work.  Here's what I'm doing to recreate the problem:
    In ultrabeat, I create the pattern in the step sequencer, and the sound I want.  I have a very simple woodblock sound, and I set the sequence to be only 4 boxes long in Ultrabeat.  The sequencer in UB is "on".  I created a button on the workspace in Mainstage, and mapped it to UB's "sequencer Play/Stop".
    1. When I start the squencer, it runs - i can see the curse in UB moving to the right and repeating - but no sound come through the channel strip
    2. When I click the keys on the left side of UB, sound DOES come through the channel strip.
    So in essence, UB doesn't want to send sound to Mainstage by using its sequencer.
    Has anyone faced anything similar?  any ideas on how to fix this?  I've done it successfully before, but sometimes it just doesn't work.
    thanks,
    Keith

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • Problem in updating 300 sequence files.

    Hi,
        We have around 300 requirements and each requirement trace to one sequence file. So there are total 300 sequence files. In each sequence file we have a set of variables which hold the address which is present in map file.
        As you know for each release map file updates there by we need to modify all variables in all 300 sequence files and rerun. I would like to know any solution where I can store all variables in one text file and read a variable whenever I required. 
       Please help me better solution for this type of problem.
       It would be great help if any sample sequece file attached. 
    Thanks,
    krishna 

    Hi,
    Why do you need 300 sequence files for 300 requirements??? You can keep each requirement in a seperate sequence in a single/multiple sequence files.
    With regards to reading your variables, you can read from a file through activeX or easier still, doing it through a code module (say a LabVIEW VI or CVI module).
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/

  • Any way to map characters to sequences of virtual key codes?

    I have a text and I need to make the java.awt.Robot class instance to type it. The text may contain any Unicode characters. Unfortunately the Robot class accepts only virtual key codes which generate different characters depending on the currently used keyboard layout. I was wondering whether there is any way to create a map of how to convert Unicode characters onto combinations of keyboard layout(s) and sequences of KeyEvent virtual key codes?
    I was originally hoping to find access to the method which interprets sequences of virtual keys (represented by KeyEvent instances of type KEY_PRESSED and KEY_RELEASED) and generates a KEY_TYPED key event (which already contains the resulting character). I however failed to find the code responsible for this functionality and I'm afraid this is done by the underlying operating system. Can anyone give me a hint on where to search?
    The only workable solution I've found so far is to fire sequences of KEY_PRESS and KEY_RELEASED events and their combinations with the Shift key, listen for eventual KEY_TYPED events and save the mapping between the original press/release sequence and the resulting character if such an event is received. This can be repeated for a set of keyboard layouts switched through InputContext.selectInputMethod().
    This solution is however an ugly, inefficient and time consuming hack which may or may not find mapping for a particular character. It also requires a GUI displayed so that one can receive key events, and I also need to find a solution which would run without GUI just from CLI.
    Does anyone have an idea on how to implement this more efficiently?

    I suspect that you are trying to solve the wrong problem. I don't see any reason for converting characters to virtual keys because:
    * this is dependent of current keyboard layout
    * many characters will not map at all
    If you want to use shortcuts use the virtual key codes instead. I wrote few articles regarding keyboard usage in an international context - check http://blog.i18n.ro/category/readiness/input/

  • Mapping Problem-Mapping  not  sufficient  Error  Message

    Hello  SDNers,
    I  m  facing  one  problem,  details  are as below
    Source Structure
    MT_Source
       Invoice                               1..unbound
               Type                                          1..1
               Invoice Header                      1..1
                  PartyID
                            ID                           1..1
                  DocuID
                            ID                           1..1
               InvoiceLine                            1..unbound
              Item                            1.1
                     InvoiceSubline                        1.unbound
                            costCentre                          1..1
                            GL Code                          1..1
    Target Structure
    MT_Target
             Target                                                                     1.unbound
                  Bgr00                    
                        Stype                                                            1..1
                        Xkeep                                                           1..1
                  Bkpf                                    1..1
                 Stype                                1..1
                        Tcode                                 1..1
                        Bldat                                                                1..1
                        bukrs                                  1..1
                  Bseg                                    1..1
                 Stype                                1..1
                        Tbnam                                 1..1
                        newbs                                                               1..1
                        wrbtr                                  1..1
                         zunor                                                                1..1
                  Bseg1                                    1..unbound
                 Stype                                1..1
                        Tbnam                                 1..1
                        newbs                                                               1..1
                        wrbtr                                  1..1
                         zunor                                                                1..1
    Mapping  need  to  be  done  in  such  a  way  like
    Invoice  Header  must  go  in the  corresponding  fields  of BKPF  ,BSEG
    Invoice  Line  fields  must go in the corresponding  fields of BSEG1
    I  tried  split  by  Value  with  a  user  defined  function copyPerValue
    public void copyPerValue(String[] a,String[] b,ResultList result,Container container){
    for(int i=0;i<=a.length;i++)
              result.addValue(b[0]);
    InvoiceLine----
                                            CopyPerValue ->SplitBYValue[EachValue]->bldat
    DocumentDateTime----
    but  I  m  getting  Mapping  not  sufficient  Error  Message.
    Pls  help  me  in  getting  resolve  this  problem.
    Thx  in  advance

    Hi;
    Just check that all the mandatory fields (1.1 occurances) are mapped.
    No node in the target message should be left red.
    Mudit

Maybe you are looking for

  • Can't print from Photoshop CC 2014

    I very seldom need to print directly from Photoshop, but today I do. Today I discovered that I cannot print from Photoshop, because Photoshop stops working when I click 'Print'. I don't even get far enough to select a printer from the list. I get a W

  • Adobe Photoshop CS4 installation options

    Hi, I am preparing an unattended installation of Photoshop CS4. I generated the xml files using the command "setup.exe" --record=1. Now I will create a bat file to execute the setup with the following sentence: "setup.exe" --mode=Silent --deploymentF

  • 2nd Gen iPod Nano - Impossible Restore

    I recently bought a used 4gb 2g nano and had it working fine. Forgettiing that it needed itunes 7 to work, I formatted it in hope it would would with itunes 6. Remembering this, I had to install itunes 7, bringing me to my problem... When I try to re

  • RemoteExceptions instead of SQLExceptions

    Hi All           i am using weblogic 4.5.1 .We use Jsp - > Servlet ->Session Bean           ->entitybean combination.We have a problem with Unique Key Constraint .           If the unique key is voilated an SQLException is thrown which is caught     

  • TS5181 How do I listen to a local radio station KQED???  It is no longer listed when I select 'radio' !!!

    Apple seems to only allow me to listen to their pre-selected radio choices now.  Where is the listing of existing broadcasts???