XML Gateway Mapping of XML Element Attribute

Hi:
If an inbound XML message contains this tag:
<STATUS CODE="100"></STATUS>
is it possible to map the CODE attribute to a database column?
I've been attempting to do this but I'm receiving this error: Element STATUS not complete, expected elements ''.
Thanks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

I'll answer my own question here.  Found the section in the XML User Guide about mapping HTTP Error Responses (chapter 22 in the v6.1 pdf) and realized that the XML gateway had preconfigured settings to handle various error conditions.  Edited the error handling configuration for the specific Handler (rather than the global setting) and checked the box to allow the error to pass through the XML gateway.  Redeployed the subpolicy.

Similar Messages

  • XML gateway with multiple XML structures??

    Hi,
    I have a requirement to import data using XML gateway with different XML structures. Third party system sometimes will not provide certain tags itself if there is no data for the tag like contacts in below sample xmls. In that case we need to ignore those tags (CONTACTS in below sample). As per my understanding, we must have tag in XML though it may not have any value.
    We have 2 XMLs
    XML1 for supplier with contacts
    <SUPPLIER>
    <NAMES>
    <NAME1>XYZ </NAME1>
    <NAME2>ABC</NAME2>
    </NAMES>
    <SITE>
    <SITE1>XYZ </SITE1>
    <SITE2>ABC</SITE2>
    </SITE>
    <CONTACT>
    <CONTACT1>XYZ </CONTACT1>
    <CONTACT2>ABC</CONTACT2>
    </CONTACT>
    </SUPPLIER>
    XML2 for supplier without contacts
    XML1
    <SUPPLIER>
    <NAMES>
    <NAME1>XYZ1 </NAME1>
    <NAME2>ABC1</NAME2>
    </NAMES>
    <SITE>
    <SITE1>XYZ1 </SITE1>
    <SITE2>ABC1</SITE2>
    </SITE>
    </SUPPLIER>
    Can we upload data in both these xmls using only one generic dtd and xgm using XML gateway which will skip any missing tag.
    Thanks
    Rishi

    Hi, you can FOR XML PATH for a finer degree of control over your XML.  Use the @ symbol to create attributes.  Here's a simple example:
    DECLARE @t TABLE ( rowId INT IDENTITY PRIMARY KEY, [address] VARCHAR(50), city VARCHAR(30), floor INT, suite INT, doorType VARCHAR(20) )
    INSERT INTO @t VALUES
    ( '123 Fake St', 'Springfield', 10, 512, 'Metal' )
    SELECT
    [address] AS "Address",
    city AS City,
    [floor] AS "Location/@Floor",
    suite AS "Location/@Suite",
    doorType AS "Location/@DoorType"
    FROM @t
    FOR XML PATH ('Company'), ROOT ('Companies'), ELEMENTS;

  • Oracle XML Gateway- Mapping XML to Oracle Apps API - Wrong Number or types

    XML GATEWAY INBOUND – CALLING AN API (PL/SQL record type IN variable) TO INSERT THE DATA INTO SAMPLE TABLE
    Hi,
    I am using XML Gateway to push data into Oracle Apps using a procedure call with “Record Type” as the parameter. I am getting a “wrong number” or types of arguments mismatch error inspite of following the process described in the Oracle XML Gateway User’s Guide
    Steps followed:
    DB
    1. I Created a sample table XX_CUST_HIST(ID NUMBER, ACCOUNT_NAME VARCHAR2(50), FIRST_NAME VARCHAR2(50), LAST_NAME VARCHAR2(50), TITLE VARCHAR2(50))
    2. I then Created a package ‘XX_XML_DEMO_API’ in which we have defined a record type and a procedure.
    3. The Record type ‘customerRecordType’ holds account_name , first_name, last_name and the title.
    4. The Procedure ‘insert_customer_r’ takes 2 IN arguments :
    1. p_ id number
    2. p_customer customerRecordType
    5. The procedure will insert the values into xx_cust_hist table
    p_id -> id
    p_customer.account_name -> account_name
    p_customer.first_name -> first_name
    p_customer.last_name -> last_name
    p_customer.title -> title
    Now I need to call the procedure ‘XX_XML_DEMO_API . insert_customer_r’ from XML gateway.
    Following are the steps to call the procedure:
    [1] Create DTD
    ELEMENT NEW_CUSTOMER_APIR (DATAAREA)
    ELEMENT DATAAREA (CUSTOMER_DATA)
    ELEMENT CUSTOMER_DATA (ID, CUSTOMER_RECORD)
    ELEMENT ID (#PCDATA) ELEMENT CUSTOMER_RECORD (ACCOUNT_NAME, FIRST_NAME, LAST_NAME, TITLE)
    ELEMENT ACCOUNT_NAME (#PCDATA)
    ELEMENT FIRST_NAME (#PCDATA)
    ELEMENT LAST_NAME (#PCDATA)
    ELEMENT TITLE (#PCDATA)
    [2] Creation of XML map Data Definition type for Source and Destination are set to XML.
    While executing the procedure ‘XX_XML_DEMO_API . insert_customer_r’ in post_process from the message designer, instead of 2 (p_id IN number , p_customer IN customerRecordType) parameters it is showing 6 parameters (p_id IN number, p_customer IN customerRecordType, account_name IN varchar2, first_name IN varchar2, last_name IN varchar2, title IN varchar2). Six parameters are getting mapped, instead of the 2 that the procedure really needs.
    [3] Testing of XML map. Error message in transaction monitor:
    ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'INSERT_CUSTOMER_R' ORA-06550: line 1, column 7: PL/SQL: Statement ignored -
    ECX_ACTIONS.BIND_PROC_VARIABLES
    The process executed and produced the error message given in the step 3. The standard documentation is unclear on how this should be done. Being a newbie to the XML Gateway technology I am unable to get a clue about what the error message could be and which step of the process produced the message. Could anyone help me to proceed further?
    Thanks in advance.

    Hi Siva,
    It seems like the walletkey property of event type is defined incorrectly. Please try by defining the event as follows:
    <wlevs:property name="walletkey" type="char" length="20"/>
    Use "char" instead of "char[]".
    Best Regards,
    Sandeep

  • XML Gateway  Mapping Issue

    Hi All,
    My map has following structure
    -<envelope> -- root element and also level
    -<gdsnItemRegistryResponse> --Level
    -<docException> --Level
    -<docAcknowledgement> --Level
    <docException> and <docAcknowledgement> are siblings
    I dont have any dtd's associated with map
    In payload <docException> and <docAcknowledgement> can be occur in any order
    When I push the payload with following order same as defined in XMG map
    -<docException>
    -<docAcknowledgement>
    its working fine
    but when I push the payload with different order
    -<docAcknowledgement>
    -<docException>
    PL/SQL procedure calling on INPROCESS action on <docAcknowledgement> is
    working fine,
    but
    PL/SQL procedure calling on INPROCESS action on <docException> is being
    performed, but XML Gateway is not passing values to the parameters of that
    procedure.
    When I verified the parameter values in log, all are null
    I am calling same procedure on both tags
    How to overcome above problem ?
    How to enforce that two tags can be in any order without dtd?
    Thanks
    -Praveen

    Just I am confirming my map structure
    -<envelope> -- root element and also level
    ----<gdsnItemRegistryResponse> --Level
    -------<docException> --Level
    -------<docAcknowledgement> --Level                                                                                                                                                                                                                                                                                                                                                                                                   

  • Reading XML file and skip certain elements/attributes??

    Hi folks!
    Suppose I have a XML file looking like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE dvds SYSTEM "DTDtest.dtd">
    <dvds>
    <dvd>
    <title>
    Aliens
    </title>
    <director>
    James Cameron
    </director>
    <format>
    1.85:1
    </format>
    </dvd>
    <dvd>
    <title>
    X-Men
    </title>
    <director>
    Bryan Singer
    </director>
    <format>
    2.35:1
    </format>
    </dvd>
    </dvds>
    In my Java application I want to read this XML file and print it on the screen (including all tags etc). So far, so good. BUT, if I want to skip certain elements, i.e. all information about the dvd 'X-Men', how am I supposed to do this? In other words, I would like my app to skip reading all information about X-Men and continue with the next <dvd>... </dvd> tag. Is this possible?
    My code so far is from the XML tutorial from Sun and it looks like this:
    import java.io.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class MyXML extends DefaultHandler
    public static void main(String argv[]) {
    if (argv.length != 1) {
    System.err.println("Usage: cmd filename");
    System.exit(1);
    // Use an instance of ourselves as the SAX event handler
    DefaultHandler handler = new MyXML();
    // Use the default (non-validating) parser
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try {
    // Set up output stream
    out = new OutputStreamWriter(System.out, "UTF8");
    // Parse the input
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse( new File(argv[0]), handler);
    } catch (Throwable t) {
    t.printStackTrace();
    System.exit(0);
    static private Writer out;
    //===========================================================
    // SAX DocumentHandler methods
    //===========================================================
    public void startDocument()
    throws SAXException
    emit("<?xml version='1.0' encoding='UTF-8'?>");
    nl();
    public void endDocument()
    throws SAXException
    try {
    nl();
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    * <p>This method prints the start elements including attr.
    * @param namespaceURI
    * @param lName
    * @param qName
    * @param attrs
    * @throws SAXException
    public void startElement(String namespaceURI,
    String lName, // local name
    String qName, // qualified name
    Attributes attrs)
    throws SAXException
    String eName = lName; // element name
    if ("".equals(eName)) eName = qName; // namespaceAware = false
    emit("<"+eName);
    if (attrs != null) {
    for (int i = 0; i < attrs.getLength(); i++) {
    String aName = attrs.getLocalName(i); // Attr name
    if ("".equals(aName)) aName = attrs.getQName(i);
    emit(" ");
    emit(aName+"=\""+attrs.getValue(i)+"\"");
    emit(">");
    public void endElement(String namespaceURI,
    String sName, // simple name
    String qName // qualified name
    throws SAXException
    emit("</"+qName+">");
    * <p>This method prints the data between 'tags'
    * @param buf
    * @param offset
    * @param len
    * @throws SAXException
    public void characters(char buf[], int offset, int len)
    throws SAXException
    String s = new String(buf, offset, len);
    emit(s);
    //===========================================================
    // Utility Methods ...
    //===========================================================
    // Wrap I/O exceptions in SAX exceptions, to
    // suit handler signature requirements
    private void emit(String s)
    throws SAXException
    try {
    out.write(s);
    out.flush();
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    // Start a new line
    private void nl()
    throws SAXException
    String lineEnd = System.getProperty("line.separator");
    try {
    out.write(lineEnd);
    } catch (IOException e) {
    throw new SAXException("I/O error", e);
    Sorry about the long listing... :)
    Best regards
    /Paul

    A possibility that comes to mind is to create an XSLT script to do whatever it is you want - and call it from inside the program. The XSLT script can be stashed inside your .jar file by using getClass().getClassLoader().getResource("...")
    - David

  • Using xml with datagrid - problem with element attributes ...

    Hi,
    When i try to set the datafield in a DataGridColumn to an
    attribute, ex.: @isPermaLink - the value is not printet in the
    datagrid?
    My code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="feedRequest.send()" layout="absolute"
    backgroundGradientColors="[#808080, #c0c0c0]">
    <mx:HTTPService id="feedRequest" url="
    http://kristianthrane.dk/feed"
    useProxy="false" />
    <mx:Panel x="10" y="10" width="475"
    title="{feedRequest.lastResult.rss.channel.title}" id="panel1"
    height="531">
    <mx:DataGrid id="dgPosts" x="20" y="20" width="100%"
    dataProvider="{feedRequest.lastResult.rss.channel.item.guid}"
    height="100%">
    <mx:columns>
    <mx:DataGridColumn headerText="Lande"
    dataField="@isPermaLink" />
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    </mx:Application>
    I hope someone has a tip ....
    Best regards,
    Kristian Thrane

    Hi Kristian,
    I'm with some problems, a bit alike yours, but from what I've seen, I would recomend you to see type errors...does the atribute "isPermaLink" inside the "guid" tag, or "title" tag?
    My problem is the opposite of what you have... I can place tag attributes in a datagrid, but I can't put in the same Datagrid the tag value. But I have no choice since the feed comes from a public webservice.
    My feed is:
    <search ver="3.0">
    <loc id="BRXX1094" type="1">Aveiro, Brazil</loc>
    <loc id="POXX0006" type="1">Aveiro, Portugal</loc>
    </search>
    <mx:DataGrid x="10" y="53" width="365" id="dgLocation" dataProvider="{wSearch.lastResult.loc}" itemClick="callService(event);">
    <mx:columns>
           <mx:DataGridColumn headerText="Localidade" dataField="loc"/> //This doesn't work
           <mx:DataGridColumn headerText="Referência" dataField="@id"/> //This does
    </mx:columns>
    </mx:DataGrid>
    Hope it give you any ideas.
    Beste regards
    Leonel

  • XML Gateway: produce an XML file in OAGIS format ( for Vendor Master & Inv)

    Hi Guys,
    I've requirement to produce an XML file in OAGIS format ( for Vendor Master & Invoices) under Oracle AP and PO.
    The event tringger should fire whenever new vendor/invoice entered or updated.
    Would appreciate any inputs.
    thanks.

    Not sure,you are looking for inbuild product to produce the OAG XML format, or trying to build custom one.
    If options is Inbuild Product, Oracle Exchange is yeh another product has such kind of capability. Refer this
    http://download-west.oracle.com/docs/cd/A97329_03/web.902/a88894/adx16orx.htm#1007387
    FOr second , check out these two document in metalink
    150083.1 XML Utilities
    123491.1 How To Insert XML Documents Into The Database And Validate Them Using PL/SQL ?
    Hope this will be help

  • Error when mapping an XML coming as in Source Element

    Hi,
    We have a requirement where the XML is sent in an element as given below :
    The Incoming Payload is of the below format :
    Source :
    <?xml version="1.0" encoding="UTF-8"?>
    <ResponsePayload>
       <RespString><?xml version="1.0" encoding="UTF-8"?>
    <Devices>
       <Device>1</Device>
       <Name>1</Name>
    </Devices></RespString>
    </ResponsePayload>
    The target XML is below :
    Target:
    <?xml version="1.0" encoding="UTF-8"?>
    <Devices>
       <Device/>
       <Name/>
    </Devices>
    I used the below xslt mappings in two steps as suggested by Udo .
    Re: Xml String mapped to XML Node
    XSLT Mapping1 :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output omit-xml-declaration="yes"/>
         <xsl:template match="/">
              <xsl:for-each select="//RespString">
                   <xsl:value-of select="." disable-output-escaping="yes"/>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    XSLT Mapping 2 :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:template match="/">
              <ResponsePayload>
                   <xsl:copy-of select="//Devices"/>
              </ResponsePayload>
         </xsl:template>
    </xsl:stylesheet>
    When executing Iam getting the belwo error :
    javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: The processing instruction target matching "[xX][mM][lL]" is not allowed
    cansomeone help me the reason for the error and how I can correct it .
    Thanks
    Rajesh

    Hi Rajesh,
    i can give you different approach...if the sender side is an File adapter and if ur picking the XML or CSV then write a module in sender file adapter to change the XML file.
    Characters like "<" and "&" are illegal in XML elements.
    "<" will generate an error because the parser interprets it as the start of a new element.
    so u need to add "<![CDATA[" and ends with "]]>"......now the data will come into PI as <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]].
    in the target side the data will be passed as <?xml version="1.0" encoding="UTF-8"?>.
    Regards,
    Phani

  • Upgrading R11.5.10 to R12.1.2 - impact on XML Gateway and OTA

    Hello,
    We are testing upgrade of R11.5.10 to R12.1.2 and its impact on XML Gateway and OTA. We have all working well, but not the OTA.
    Outbound:
    The messagess are present in the ECX_OUTBOUND queues but are not send out.
    Inbound:
    Inbound endpoint https://server.com/servlets/oracle.apps.ecx.oxta.ECXOTAInbound returns not found or R12
    Testing https://server.com/OA_HTML/US/ECXOTAPing.htm results in redirection to
    https://server.com/webservices/TransportAgentServer and that returns not found
    https://server.com/OA_HTML/US/ECXOTAInbound.htm displays only information about redirection and it redirects
    to https://server.com/webservices/ECXOTAInbound and it is also not found
    Results of:
    SQL> @$ECX_TOP/patch/115/sql/ecxver.sql
    ECX_UTL_XSLT_DIR Profile :
    /usr/tmp
    ECX_OAG_LOGICALID Profile :
    ECX_SERVER_TIMEZONE Profile:
    ECX_SYS_ADMIN_EMAIL Profile:
    [email protected]
    ECX_XML_VALIDATE_FLAG Profile: Y
    ECX_XML_MAXIMUM_SIZE Profile : 2000000
    utl_file_dir :
    /ORACLE/DB/admin/tmp
    Oracle XML Developers Kit 11.1.0.7.0 - Production
    Parser Version Ok
    XML Gateway Status Summary
    XML Parser Version OK
    All ECX Objects Valid? OK
    All XML Parser Objects Valid? OK
    OTA Running? N/A*
    Total Messages on Outbound Queue 9
    OTA Msgs on Outbound Queue 8
    Others Msgs on Outbound Queue 1
    Messages on Inbound Queue 0
    *Please use the ECXOTAPing.html as described in the Testing Oracle Transport
    Agent section of the User's Guide
    End of Summary
    Service Component Control Event Subscriptions
    EVENT_NAME RULE_FUNCTION OUT_AGENT STATUS
    oracle.apps.ecx.inbound.message.process [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.process [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.process [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected] Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected]COMNot Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected]COMNot Defined ENABLED
    oracle.apps.ecx.processing.message.callb [email protected] Not Defined ENABLED
    ack
    oracle.apps.ecx.processing.message.error [email protected] Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected]SERVER.COM Not Defined ENABLED
    oracle.apps.ecx.processing.notification.send [email protected] Not Defined ENABLED
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Thank you in adavance for your help,

    Hi,
    Run the diagnostics script in (Note: 732295.1 - R12.0.6+ : Oracle Application Object Library XML Gateway Engine Setup Test) and see if it returns any error/warning messages.
    Regards,
    Hussein

  • How to identify XML gateway patch version in R12 ?

    Hi,
    how to identify XML gateway patch version in R12.1.3? Which is the latest version available for R12.1.3
    Regards

    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @ecxver.sql
    ECX_UTL_XSLT_DIR Profile :
    /usr/tmp
    ECX_OAG_LOGICALID Profile :
    ECX_SERVER_TIMEZONE Profile:
    ECX_SYS_ADMIN_EMAIL Profile:
    ECX_XML_VALIDATE_FLAG Profile: Y
    ECX_XML_MAXIMUM_SIZE Profile : 2000000
    utl_file_dir :
    /usr/tmp, /usr/tmp,
    /busdata/dfop/nca1/db/tech_st/11.1.0/appsutil/outbound/dfopnca1_oncerpd4,
    /usr/tmp, /busdata/dfop/nca1/db/tech_st/11.1.0/ccr/state
    Oracle XML Developers Kit 11.1.0.7.0 - Production
    Parser Version Ok
    XML Gateway Status Summary
    XML Parser Version OK
    All ECX Objects Valid? OK
    All XML Parser Objects Valid? OK
    OTA Running? N/A*
    Total Messages on Outbound Queue 0
    OTA Msgs on Outbound Queue 0
    Others Msgs on Outbound Queue 0
    Messages on Inbound Queue 0
    *Please use the ECXOTAPing.html as described in the Testing Oracle Transport
    Agent section of the User's Guide
    End of Summary
    Service Component Control Event Subscriptions
    EVENT_NAME RULE_FUNCTION OUT_AGENT STATUS
    oracle.apps.ecx.inbound.message.process [email protected]. MICHELIN.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.process [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_SET [email protected] Not Defined ENABLED
    NC.MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_EVE [email protected] Not Defined ENABLED
    .MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_EVE [email protected] Not Defined ENABLED
    .MICHELIN.COM
    oracle.apps.ecx.inbound.message.receive [email protected]. MICHELIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.callb [email protected] LIN.COM Not Defined ENABLED
    ack
    oracle.apps.ecx.processing.message.error CLN_XMLG_EVENT_HANDLER_PKG.CLN_XMLG_PRO CESSING_ERROR_F@DFOPN Not Defined ENABLED
    CA1.ONC.MICHELIN.COM
    oracle.apps.ecx.processing.message.error [email protected] LIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] LIN.COM Not Defined ENABLED
    oracle.apps.ecx.processing.message.error [email protected] N.COM Not Defined ENABLED
    oracle.apps.ecx.processing.notification. [email protected] LIN.COM Not Defined ENABLED
    send
    Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Regards

  • How to capture element/attribute

    We have an export client that converts the Frame file to xml. We are using "LightTitle" element at various places, this element also has an attribute called "LightColor".
    When I look at the output xml, I can see all LightTitle elements, but only some of them (2 out of 10) have the LightColor attribute!
    How can we capture the attribute associated with a specific element and output it to the final xml?
    Thanks.

    If your LightColor attributes do not contain ant content - then they will not be written out - you can change the rules to add a 'dummy' if you need them in the XML - OR -(and probably easier) post process your XML and add the missing elements/attribute pairs based on rules in your XSLT or program...
    have fun.
    David
    [signature link removed]

  • Pixel-Positions in XML-Element attributes

    hi,
    is there a way, when attaching a xml-tag to e.g. a picture, that the top and left pixel value is saved in a xml-element attribute? the pixel value from top and from the left.
    thanks in advance.
    regards.

    hi,
    is there a way, when attaching a xml-tag to e.g. a picture, that the top and left pixel value is saved in a xml-element attribute? the pixel value from top and from the left.
    thanks in advance.
    regards.

  • XML Gateway Seeded Function/Map for PO Creation

    Hi.
    I am trying to determine if existing EBS XML Gateway functions/maps exist for inserting, changing and cancelling POs into EBS. If not, I would assume then that I could build these XML Gateway components myself.
    Thanks.

    Hello: thanks for your answer.
    Yes , we were thinking about it. But, you know, we always want to explore all options before implementing a BAdI.
    There must be an explanation about why SAP created two entries in table BBP_FUNCTION_MAP for releases ERP_4.0 and ERP_5.0. However, nobody seems to know about it.
    Yesterday, we were debugging the BAdI just before it sends the PO creation and we could see that the call with CreateFromData2 exists but is inactive (ABAP code with asterisks). Why, then, this entry exists??
    Thanks again
    Regards
    Valentí

  • Seeking examples of custom XML Gateway message map

    I've been asked to create some custom XML Gateway message maps for inbound/outbound XML data feeds.
    I've followed along at [this tutorial|http://docs.oracle.com/cd/E12839_01/integration.1111/e10537/T430238T430339.htm#T430357], but it stops short of telling me how to define a custom message map.
    Does anyone know of a resource I could look at - a web site, book, etc., that would cover the creation of a custom message map?

    Have a look
    http://docs.oracle.com/cd/E18727_01/doc.121/e12954/T319774T319778.htm

  • TopLink : attribute-mapping direct-xml-type-mapping

    hi
    Using TopLink Workbench 10g Release 3 (10.1.3.0.0) Build 060118 it is possible to configure a "Direct to XML Type" mapping.
    see http://www.oracle.com/technology/products/ias/toplink/doc/1013/main/_html/relmapun004.htm#CHDFIFEF
    In the TopLink map this results in a
    <opm:attribute-mapping xsi:type="toplink:direct-xml-type-mapping">Is there a way to configure this kind of attribute mapping using JDeveloper?
    thanks
    Jan Vervecken

    Hi Paul,
    The problem you're going to hit trying to do this with a TransformationMapping in 904 (as in my other post) is that during the UnitOfWork commit, when TopLink is checking for changes a .equals will end up being called on an XMLType instance which will throw a NullPointerException (in oracle.sql.Datum I think).
    One way to work around this (depending on the requirements for your app) is to set the isMutable flag on the TransformationMapping to false. This flag indicates that the value in the object's attribute isn't going to be changed, so we don't bother trying to check to see if it's changed. This will allow you to do reads, inserts and deletes with no problems.
    The downside is that if you need to be able to change the XML content in your objects model and do an update of the row, TopLink will never detect a change and never issue an update of the XMLType field.
    Incidentilly, if you happen to hit the same issue you had with the DirectToXMLTypeMapping where you were getting back an instance of java.sql.Opaque instead of the expected oracle.xdb.XMLType from JDBC, you should be able to handle that case in your AttributeTransformer by doing
    XMLType myXML = XMLType.createXML(myOpaque)
    Document = myXML.getDocument();
    Hope this helps
    Matt MacIvor

Maybe you are looking for

  • Can't display Georaster in Oracle Maps

    Please help! I'm trying to display a georaster in Oracle Maps, without success. The georasters in question display normally in PCI's Focus, eSpatial's iSMART, and MapBuilder preview, but nothing is display in Oracle Maps. I have copied jai_codec.jar,

  • Problem in downloading data from application server

    Hi, I tried the following code for downloading data to PC in background: PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY. OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. IF sy-subrc = 0.     LOOP AT itab INTO istab.       TRANSFER is

  • In Printer Services box, i get the message "unable to perform the operation"

    HP Officejet H470wbt.  Using via bluetooth.  i have recently installed a new ink service module and a black toner cartridge. Now I get the following message when trying to view ink levels in the printer services area--"unable to perform the operation

  • Migration from 10g to 12c using data pump

    hi there, while I've used data pump at the schema level before, I'm rather new at full database imports. we are attempting a full database migration from 10.2.0.4 to 12c using the full database data pump method over db link. the DBA has advised that

  • Grep styles and bullet points

    Is there a way of using GREP styles to insert bullet points on text after a specific heading has been detected? I am working on a brochure where many of the pages will have a features section, so am reluctant to manually overide paragraph styles. The