Mapping to Equivalent in Output Schema

Hi
I have a output schema which includes a <Equivalent> element with several possible options, e.g.
        <Product>
    <Equivalent>
<Desktops>
<Laptops>
etc.
The XSD looks like this
  <xs:element name="VendorCatalog">
    <xs:complexType>
      <xs:sequence maxOccurs="unbounded">
        <xs:element ref="tns:Product" />
        etc .....
<xs:element block="substitution" name="Product" type="tns:VendorProduct">
etc .....
  <xs:complexType name="VendorProduct" abstract="true">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="1" name="PriceInformation">
        <xs:complexType>
  etc .....
  <xs:complexType name="Laptops">
    <xs:annotation>
      <xs:documentation>Laptops</xs:documentation>
    </xs:annotation>
    <xs:complexContent mixed="false">
      <xs:extension base="VendorProduct">
        <xs:sequence>
1. I need to generate XML which starts like this with a xsi:type dependant on a value in the imput XML.
 <Product xsi:type="Laptops" ProductCode="PROD123456">
  <PriceInformation>
   <Price Currency="GBP" UnitOfMeasure="Quantity" Value="9.99"/>
  </PriceInformation>
If I deceide that I want to generate a "Laptop",  using the BizTalk Mapper - how do I assign a value to Product xsi:type ??
2. The structure Laptops has extension base="VendorProduct"  
If I deceide that I want to generate a "Laptop" and I want to generate a field in the VendorProduct structure (eg price), do link to the field Price in the VendorProduct data structure or the Price field in the Laptops data structure?
Or is there an Idiot's guide to mapping to <Equivalent>
Thanks

If your schema contains information like..
<xs:element name="VendorCatalog">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element ref="tns:Product" />
and..
<xs:complexType name="VendorProduct" abstract="true">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="PriceInformation">
<xs:complexType>
if you want to map the "xsi:type" attribute with name
of the node/element like..
<Product xsi:type="Laptops" ProductCode="PROD123456">
rather than the mapped node/element's value, then change the link's "Soruce Links" property value from its defualt "Copy text value" to "Copy name". So link the Laptop element from the soruce to the xsi:type attribute to the
destination schema using a standard link. Then select the link, go to its property and change the above mentioned property.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • How to Map N number of  columns from input to output schemas at a time?

    Hi,
    I am new to BODI. In my project we are using DAT files, which contains more than 100 columns, as Source. At the Data Flow Level, in Query Transformation we are manually mapping columns from INPUT Schema to OUTPUT Schema one by one.
    Is there any way to MAP all the columns at a time from INPUT schema to OUTPUT schema.
    Hope I am clear with my question.
    Thanks for your support.
    Sudhakar

    Hi,
    Thanks for your answer.It's really helpul.
    But in my case, Source Filed names and Target Field names are different. As we know, OUTPUT column names should be same as Target Field names.
    I am just wondering is there any option to MAP columns between INPUT schema and OUTPUT Schema at a time, like Informatica.
    In Informatica you can MAP all the columns at a time between any 2 Transformation by using their port order, even though the Filed names are different .
    Do we have any option like this in BODI?
    Regards,
    Sudhakar

  • Map input schema with highest id value in the node to output schema

    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    The above is the input schema. I need to map the elements in appointment node with highest ID to the elements in the output schema. Of the two appointment nodes above, I should only pick up one node with highest ID and map the elements of it to
    the output schema.

    My apologies for not giving the input schema right.
    <jobs>
    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    <job>
    <job job_reference="1111">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments></job></jobs>
    I should pick up details of the appointment with Higesht ID for every job. For every job one record should exist as the ouput.
    With the existing mapping, i am getting just one record as output no matter how many input jobs are there.
    Input schema has got multiple jobs and within each job there are many appointments. So in each job I should pick up the one
    with highest ID

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • Mapping EUS groups to shared schema

    Hi, everybody
    Has anybody done such thing ? I tried to map "cn=test_group,cn=groups,dc=test,dc=com" to schema GLOBAL_SCHEMA by ESM on target database but it silently skip my action. Moreover, I haven't found in documentation any mention about mapping groups to shared schema.
    I'm using OID version 10.1.4.0.3 running on RHEL4/x86 and Database 10.2.0.4 running on Solaris 10/SPARC.

    Hi, everybody one more time
    I've just comprehend the idea. There is no sense in mapping directory groups to shared schema. I've made the following experiment:
    1. created mapping of arbitrary user to GLOBAL_USER by esm
    2. modified attribute 'orcldbdistinguishedname' of entry which corresponds mapping I had made at point 1. In my case it was 'cn=mapping0,cn=OracleDefaultDomain,cn=OracleDBSecurity,cn=Products,cn=OracleContext,dc=test,dc=com'
    to value 'cn=test_group,cn=groups,dc=test,dc=com' by ldapmodify
    3. added someone to group 'test_group'
    4. tried to login to target database as user who had been added to group 'test_group' at point 3
    5. got ORA-01017: invalid username/password; logon denied
    The point is: There were no changes in DIT when you change membership of users in any group. LDAP server doesn't create new user's entry down below 'cn=test_group,cn=groups,dc=test,dc=com', instead it add attribute 'uniquemember' to corresponding group entry. This attribute contains dn of user's entry who is member of this group. So, there is no possibility of mapping directory groups to shared schema. The only way to emulate such behavior is to create something like cn=group1,cn=users,dc=test,dc=com ... cn=groupN,cn=users,dc=test,dc=com and sort out users to those entries manually. However, drawback of such solution is one to one relationship among users and "groups", but anyway it's better than nothing.

  • Insbridge--Rate Manager--Unable to locate output schema selection.

    hi, im getting the following error while testing / executing a rating or underwriting program
    Rating Error
    Unable to locate output schema selection.
    Rating Summary
    ID Values
    Program Name Program not found!
    Parent ID 1020
    Line Of Business 3
    Program ID 1
    Program Version 1
    Rate Status
    Package Date Program Location Error
    Rate Location system8-pc
    Rate Environment rm
    From Cache False
    Running Time 0.454 seconds
    how do i solve this ?
    Edited by: user11436116 on Sep 29, 2010 2:11 AM

    Sounds like your rate request XML does not match the schema required to obtain a rate, or the information in the rate request XML does not match up to a published rating program.

  • Need PAPI WebService WSDL files - INPUT & OUTPUT schema will do

    Dear Friends,
    I need all the wsdl files or atleast input and output schema for all PAPI Web Services. Currently I dont have access to development env but need to put this in a document. The Oracle documents related to PAPI WS does not include this. They just show a few examples and code snippets.
    Thanks,
    Som
    Edited by: user10880245 on Sep 20, 2010 9:44 PM

    Try using SoapUI to view the PAPI-WS... It will list out all the methods that are available, and should allow you get what you need. You can even do this from studio, so a DEV environment isn't needed.
    HTH,
    -Kevin

  • Specifying input/output schemas

    In 10g, the input/output schemas could be specified via BPEL Project Creation Wizard in JDev; but I don't see a comparable option in 11g (when I create a new app using the "Composite
    from Oracle BPA" template). What am I missing?

    What I meant was there is no option to choose the input/output schemas when I create a composite using the "composite from oracle bpa" template.
    Unlike the case when I use the "composite with bpel" template as seen here ... where I can click on the "browe schema" option for Input and Output.
    (This is 10g, but listed for illustration).
    Creating BPEL Process
    The first step is to use JDeveloper to create an Asynchronous process initiated by a request message with a payload containing an element of type mailMessage (defined in Mail.xsd installed as part of BPEL PM).
    To do this use the BPEL Project Creation wizard to create a BPEL Process in the normal way. After entering the process name and specifying the process template to be asynchronous, select "Next".
    This will take you to the next step in the wizard where you specify the Input and Output Schema Elements, click on the flash light for the input schema and select Mail.xsd (located in <SOA_HOME>\bpel\system\xmllib) as shown in the figure 1 below.
    Edited by: user756777 on Jul 1, 2009 12:45 PM

  • TSAPInput Talend - Output schema definition error

    Hi,
    I am trying to use the tSAPInput component with RFC_READ_TABLE function to extract data from multiple SAP tables.  I have started with SFLIGHT as a very basic & small table, where I want to extract only a couple of columns.
    The Input - FIELDNAME I have defined without issue, but for the output schema I receive errors when trying to define the columns that I require.  If I use the default of "WA" then it works, but many of the tables that I want to extract are wider than the 512 characters of WA schema definition.
    Therefore I have created my own schema and columns in the
    output, but I receive the following error:
    Starting job SAP_Test at 11:25 10/09/2014.
    [statistics] connecting to socket on port 3932
    [statistics] connected
    Exception in component tSAPInput_3
    com.sap.conn.jco.JCoRuntimeException: (127)
    JCO_ERROR_FIELD_NOT_FOUND: Field MANDT is not a member of TAB512
    at com.sap.conn.jco.rt.AbstractMetaData.indexOf(AbstractMetaData.java:404)
    at com.sap.conn.jco.rt.AbstractRecord.getString(AbstractRecord.java:2870)
    at sap_connector.sap_test_0_1.SAP_Test.tSAPInput_3Process(SAP_Test.java:959)
    at sap_connector.sap_test_0_1.SAP_Test.tSAPConnection_1Process(SAP_Test.java:398)
    at sap_connector.sap_test_0_1.SAP_Test.runJobInTOS(SAP_Test.java:1315)
    at sap_connector.sap_test_0_1.SAP_Test.main(SAP_Test.java:1174)
    [statistics] disconnected
    job SAP_Test ended at 11:25 10/09/2014. [exit code=1]
    Attached is a screenshot of the job and components:
    Any help would be much appreciated.
    Thanks
    Bri

    Hi,
    I am trying to use the tSAPInput component with RFC_READ_TABLE function to extract data from multiple SAP tables.  I have started with SFLIGHT as a very basic & small table, where I want to extract only a couple of columns.
    The Input - FIELDNAME I have defined without issue, but for the output schema I receive errors when trying to define the columns that I require.  If I use the default of "WA" then it works, but many of the tables that I want to extract are wider than the 512 characters of WA schema definition.
    Therefore I have created my own schema and columns in the
    output, but I receive the following error:
    Starting job SAP_Test at 11:25 10/09/2014.
    [statistics] connecting to socket on port 3932
    [statistics] connected
    Exception in component tSAPInput_3
    com.sap.conn.jco.JCoRuntimeException: (127)
    JCO_ERROR_FIELD_NOT_FOUND: Field MANDT is not a member of TAB512
    at com.sap.conn.jco.rt.AbstractMetaData.indexOf(AbstractMetaData.java:404)
    at com.sap.conn.jco.rt.AbstractRecord.getString(AbstractRecord.java:2870)
    at sap_connector.sap_test_0_1.SAP_Test.tSAPInput_3Process(SAP_Test.java:959)
    at sap_connector.sap_test_0_1.SAP_Test.tSAPConnection_1Process(SAP_Test.java:398)
    at sap_connector.sap_test_0_1.SAP_Test.runJobInTOS(SAP_Test.java:1315)
    at sap_connector.sap_test_0_1.SAP_Test.main(SAP_Test.java:1174)
    [statistics] disconnected
    job SAP_Test ended at 11:25 10/09/2014. [exit code=1]
    Attached is a screenshot of the job and components:
    Any help would be much appreciated.
    Thanks
    Bri

  • How to map multiple output values to the output schema in biztalk mapper?

    Hi,
    In my biztalk mapper, I am using a "database lookup" functoid which is linked to a "Value Extractor" functoid. A source schema field is linked to the database lookup functoid which is linked to a "Value Extractor" functoid
    which is linked to the destination schema field. After passing the required parameter values in the database lookup functoid (lookup value, conn string, table, column name), I know that the result set may get multiple rows which are transferred to the "value
    extractor" functoid.
    Now what I want is to create a record in destination schema for each row in the result set. My current mapping is as below:
    1) Source record > looping functoid > destination record
    2) Source record field > Database functoid > Value Extractor functoid > dest record field
    but this mapping is giving me only the first value in result set.
    Please help me in this so that my map creates a destination record for each value in the result set.
    e.g. if query [select * from employees where surname='Brown'] returns five records, then I would like five records in the destination schema.
    Thanks
    manibest

    Hi Muhammad Ehsan,
    Thank you for the useful suggestion. however, I have only one difficulty in building your suggested solution. in my query  (select
    * from employees where surname='Brown'), the value of surname is coming from the source schema field which could be different in each source schema record field.
    lets say that source schema instance has 3 records in it as below:
    <Records>
    <Record><Surname>Brown<Surname></Record>
    <Record><Surname>Atkinson<Surname></Record>
    <Record><Surname>White<Surname></Record>
    </Records>
    For each of above records the database query should run with the relevant surname value. if database has 5 records for "Brown", 3 records for "Atkinson" and 1 record for "White" then the destination schema should create (5+3+1) = 9 records in
    total.
    To create a destination canonical schema that works fine, I have to somehow pass this surname value from source schema as parameter so that it uses this value to poll the database and get records. Is there a way I can pass this surname value as parameter
    to the destination canonical schema? Thank you so much for the help.
    manibest

  • Mapping UML Model to Database Schema

    Hi All,
    Is it possible to map UML business object model on database schema using Mapping Workbenck? I've done the mapping with imported java classes, but wodering if same could be done with the UML models. I couldn't find any documentation about it either. This feature may be very useful in cases where you want to incorporate TopLink in the design stages of a project.
    Any help will be highly appreciated. Thanks.

    Hi Sharad,
    I agree that incorporating design time practices into this tool might be useful, but is not supported as you described.
    From the perspective of application development, I find it useful to first develop the object model in an IDE such as JDeveloper which supports UML (Which will automatically allow you to deploy the .class files of the project). I point my MW project to the output location of my .class files which seems to work great as I can make changes to the object model in the IDE and easily refresh the contents in the MW.
    I hope this helps.
    Darren

  • XSLT mapping sorting against an output field

    Hi, all
    I am testing my XSLT mapping. Here is the output message type defintion:
    I want to sort f2 in my xslt mapping. Here is my mapping:
    <?xml version="1.0" encoding="UTF-8" ?>
      <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://fileconversion" xmlns:ns1="http://fileconversion">
        <xsl:template match="/">
          <ns1:TESTOUTPUT_MT>
            <Msg>
            <xsl:for-each select="ns0:TESTDATA_MT/Trans/Detail">
            <xsl:sort select="Transaction/Data/f2" />
              <Transaction>
                <Data>
                  <f1>
                    <xsl:value-of select="PERNR" />
                  </f1>
                  <f2>
                    <xsl:value-of select="POSITION" />
                  </f2>
                  <f3>
                    <xsl:value-of select="TEL" />
                  </f3>
                  <f4>
                    <xsl:value-of select="concat(concat(STREET,' '),CITY)" />
                  </f4>
                </Data>
              </Transaction>
                </xsl:for-each>
            </Msg>
          </ns1:TESTOUTPUT_MT>
        </xsl:template>
      </xsl:stylesheet>
    The sorting did not execute on field "f2" and the data is in the same order as the input.
    Note that I can do <xsl:sort select="POSITION " /> instead and it will work. But I am trying to test on sorting against output field as this is the requirement in the real interface.
    What did I do wrong? Please advise.
    Thanks,
    Jonathan.

    Hi Jon - You can sort the source values. If you use "sort select="Transaction/Data/f2" i don't think it has got some effect.
    You can use <xsl:sort select="POSITION " /> Any issues with that?
    Just to add - when you map Position with F2... how does the sorting will be different when you execute it on F2 or Position?
    If you are doing some calculation for F2 then should handle the Sort function accordingly..

  • Mapping over more than 1 schema

    Hi,
    I have to do the following mapping:
    Workspace user: user_ws
    Transfer data from user send_user.table1 to get_user.table2
    Whe I create 2 locations (localtion_send_user and location_get_user the 2 owners of the 2 tables) I can see the 2 tables (1 in each schema/location)
    How can I create a mapping as user_ws using both tables and locations?
    Please help me
    Siegwin

    You may have NULL values in those columns:
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> with t as (
      2    select 100 id, 1 a,  10 b  from dual union all
      3    select 100,    2,    20    from dual union all
      4    select 100,    3,    null  from dual union all
      5    select 100,    null, 40    from dual union all
      6    select 100,    null, null  from dual)
      7  --
      8  SELECT SUM(a + b) AS c
      9    FROM t
    10   GROUP BY ID;
             C
            33
    1 row selected.
    test@ORA10G>You probably want to see 76 here. So -
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> with t as (
      2    select 100 id, 1 a,  10 b  from dual union all
      3    select 100,    2,    20    from dual union all
      4    select 100,    3,    null  from dual union all
      5    select 100,    null, 40    from dual union all
      6    select 100,    null, null  from dual)
      7  --
      8  SELECT SUM(NVL(a,0) + NVL(b,0)) AS c
      9    FROM t
    10   GROUP BY ID;
             C
            76
    1 row selected.
    test@ORA10G>
    test@ORA10G>If you simply get a NULL, I'll bet you have NULLs for all records in both those columns.
    test@ORA10G>
    test@ORA10G> --
    test@ORA10G> with t as (
      2    select 100 id, null a,  null b  from dual union all
      3    select 100,    null,    null    from dual union all
      4    select 100,    null,    null  from dual union all
      5    select 100,    null, null    from dual union all
      6    select 100,    null, null  from dual)
      7  --
      8  SELECT SUM(a + b) AS c
      9    FROM t
    10   GROUP BY ID;
             C
    1 row selected.
    test@ORA10G>Use NVL. Make life easy.
    isotope

  • Source Mapping - requires a control centre schema on the source?

    Hi,
    If I create a mapping on a source (that maps source table[s]/view[s] into a source 'staging' table on the same source), when I come to debug the mapping I get an error:
    "DBG1005: The connection information provided does not specify a valid OWB Control Centre target schema. .."
    Is it possible to DEBUG a mapping on the source only within OWB? if so, do I need to install / create a control centre on the source too? - how?
    I can run/debug that same mapping but only if the mapping is created on the TARGET - which seems crazy as then its selecting across database links to push data within the source.
    Chris.

    Hi,
    in OWB a source is that from where you only load data and import object definitions from the data dictionary.
    A target is where you want to deploy to. You can also load data from it like from a normal source. It's both.
    If you create a database modul you're asked if it is a source or a target.
    The deployed objects send and get information to/out of the repository (direct or over a database link). That's why a target schema gets several OWB specific objects and is registered in the repository as a target.
    Change the modul to a target and then you can deploy to it - but then it is not a source.
    Example:
    The staging area of a DWH is a target, the OLTP systems to load from are sources.
    Regards
    Detlef

  • Any way to re-map card's rear outputs to 2x line/speaker out?

    I'm looking for some info as to a way to re-map the rear outputs, I would like two main speaker out's so I can have the headphones and speakers plugged in at the same time, as opposed to having the headphones plugged into the front external bay's dedicated phone output.

    Couldn't you use the channel assignment function in the THX console? It would be a bit of a hassle to do this often [email protected]

Maybe you are looking for