OSB, DB adapters and complex XML

I'm new to all Oracle middleware products (and it's years since I've written any Java, while I'm being honest), but I've been given the task of taking some existing XML feeds and sticking some of the data in a DB. Well, that's the basic solution I've come up with anyway, and OSB (10.3.1) seems the way to go.
I've seen the JCA DB adapter tutorial at http://www.oracle.com/technology/sample_code/products/osb/index.html - and very good it is too, but I'm wanting to take it a bit further. i.e. do something more complex than a simple 1:1 XML attribute to database column mapping. I want to take the existing XML file that has a relatively complex schema (containing more attributes than we actually need, plus entire sections I want to ignore) and only take the relevant info and put it in the DB table.
The thing is, I don't see any pointers on that, wherever I look on the web. Is it simply a case of hacking around with the xml, xsd, mappings, etc...telling it about the extra fields, and to ignore them...or - given that will probably take quite a while - is there a an easier way using Jdeveloper, Eclipse or something?
Likewise, is there a nice tutorial showing how to create a proxy service and map it to the DB adapter business service? I guess I can figure that out myself, but it's nice to save time and see the 'right' way first...
Any other pointers, before I head off down the wrong path? Good resources, aside from the manuals on here?
Cheers in advance.

If I remember correct, a DB Proxy (JCA proxy using DB adapter) required for cluster deployment , is supposed to use a WSDL specifically generated from JDEV with specific settings.
Ex. I created a db proxy in my development box (Single node OSB domain). The same proxy cannot be deployed in clustered osb domain. The wsdl for db inbound in cluster domain is little different from db inbound in non-cluster env and that has to be created from scratch from JDEV.
I can search my previous mails for the specifics if you should require .
Thanks
Manoj

Similar Messages

  • Import/Export Large Complex XMl files(700MB) to MySQL tables

    Am creating an application that will be mporting large and complex XML file in the range of 500-1000MB size. An xml ile wil have 5-6 levels of xml tags where the first tag will be the client account configuration e.g name, location, address, the second will be orders made, the third will be order items, fourth will be item defination...etc. The following is a sample structure of the file.
    <mycompany_sales> <customer name="me">   <location country="Kenya">     <town>nairobi</toen>     <order id="20000" date="2008-09-08">         <item id="4000">             <stock>2000</stock>           <buying>300.0</buying>       </item>       ........       <total>5000</total>   </order>   .............. </location> </customer> ........... </mycompany_sales>
    Because of the size, if i process this file using DOM it will result to out of memory error. I have tried parsing with SAX but it takes about 18 hours to process which is not ideal. If i import this data to Microsoft Access it takes about 10 minutes to import including it's relationship. i.e. creates the six tables and the foregin key relations.
    I tried using XML-DBMS package but since it relies on DOM, it cant process. Does anyone know of a package that would help me import this data to any JDBC databse and also recreate the same structure of xml from the jdbc db. It would also be ideal if it can create sample map file during import and export.
    Thanks in advance,
    Simon K.

    kagara wrote:
    I tried using XML-DBMS package but since it relies on DOM, it cant process. Does anyone know of a package that would help me import this data to any JDBC databse and also recreate the same structure of xml from the jdbc db. It would also be ideal if it can create sample map file during import and export.So you are parsing the XML, extracting the schema, using jdbc to create it, then parsing the data and using jdbc to populate it.
    I suggest that you just create SQL directly. Or perhaps a import file if MySQL has it.
    Less impact on the database, easier to test, easier to verify, and much faster to actually apply the data.

  • Little help with complex XML data as data provider for chart and adg

    Hi all,
    I've been trying to think through a problem and Im hoping for
    a little help. Here's the scenario:
    I have complex nested XML data that is wrapped by subsequent
    groupings for efficiency, but I need to determine if each inner
    item belongs in the data collection for view in a data grid and
    charts.
    I've posted an example at the bottom.
    So the goal here is to first be able to select a single
    inspector and then chart out their reports. I can get the data to
    filter from the XMLListCollection using a filter on the first layer
    (ie the name of the inspector) but then can't get a filter to go
    deeper into the structure in order to determine if the individual
    item should be contained inside the collection. In other words, I
    want to filter by inspector, then time and then tag name in order
    to be able to use this data as the basis for individual series
    inside my advanced data grid and column chart.
    I've made it work with creating a new collection and then
    looping through each time there is a change to the original
    collection and updating the new collection, but that just feels so
    bloated and inefficient. The user is going to have some buttons to
    allow them to change their view. I'm wondering if there is a
    cleaner way to approach this? I even tried chaining filter
    functions together, but that didn't work cause the collection is
    reset whenever the .refresh() is called.
    If anyone has experience in efficiently dealing with complex
    XML for charting purposes and tabular display purposes, I would
    greatly appreciate your assistance. I know I can get this to work
    with a bunch of overhead, but I'm seeking something elegant.
    Thank you.

    Hi,
    Please use the code similar to below:
    SELECT * FROM DO_NOT_LOAD INTO TABLE IT_DO_NOT_LOAD.
    SORT IT_DO_NOT_LOAD by WBS_Key.
        IF SOURCE_PACKAGE IS NOT INITIAL.
          IT_SOURCE_PACKAGE[] = SOURCE_PACKAGE[].
    LOOP AT IT_SOURCE_PACKAGE INTO WA_SOURCE_PACKAGE.
            V_SYTABIX = SY-TABIX.
            READ TABLE IT_DO_NOT_LOAD into WA_DO_NOT_LOAD
            WITH KEY WBS_Key = WA_SOURCE_PACKAGE-WBS_Key
            BINARY SEARCH.
            IF SY-SUBRC = 0.
              IF ( WA_DO_NOT_LOAD-WBS_EXT = 'A' or WA_DO_NOT_LOAD-WBS_EXT = 'B' )     
              DELETE IT_SOURCE_PACKAGE INDEX V_SYTABIX.
            ENDIF.
    ENDIF.
          ENDLOOP.
          SOURCE_PACKAGE[] = IT_SOURCE_PACKAGE[].
        ENDIF.
    -Vikram

  • Reading complex XML file in flex

    I have searched the web but found very primitive xml
    examples. I want to read a complex xml file which through
    httpservice .
    The xml file is ultimately going to become dataProvider of a
    tree. But I have no idea how to traverse this xml file. mentioned
    under are the xml file and HTTPService tag.
    I want to traverse it in the resultHandler function.
    Thank you very much

    Yes, as Greg says, use e4x.
    To do this you must set the HTTPService resultFormat="e4x";
    In you handler, do:
    var xmlResult= XML(event.result);
    trace(xmlResult.toXMLString());
    and away you go.
    Tracy

  • Binding ADF UI to a complex XML Type – Development Productivity, State Mgmt

    Binding ADF UI to a complex Web Service – Development Productivity, Managing State, Etc.
    For those scenarios when ADF UI has to be bound to a complex XML type, it seems that the direction taken by the ADF development team was to generate data-controls that map to complex XML types.
    The major problem with this approach is the fact that application server does not manage state. For example, If application has to submit a purchase order to a web service then application server has to manage the shopping card state until its ready to be submitted.
    In some previous forum threads it had been suggested that using generated data-controls is a “quick and dirty” solution for accessing web services and that a proper solution is to use generated Java Proxy Interface.
    That implies many manually constructed entity objects, associations and overridden doDML methods, which is far less productive compared to entity objects generated from a database schema.
    Suggestion and a Question for the ADF development team
    From the logical model standpoint, there is no difference in between the XML schema and DB schema. Therefore, it is possible to generate entity objects and associations for XML Types of XML schema the same way it’s done for tables of Database schema. The only difference is serialization of CRUD operations on entity objects.
    One way to handle this is:
    -     Generate Application Module for a complex XML type. This application module should have methods for marshaling to/from corresponding XML type.
    -     Generate entity object for each subtype within the complex XML type. In case of nested subtypes, generate association to a parent type.
    -     Generate data control with actions that are bound to web service operations and code that serializes request message from corresponding AM and de-serializes response message to corresponding AM.
    This way, ADF would offer the same productivity for the SOA development as one its currently offering for the ORM development.
    Until the time when something like this is available, what would be the best approach for binding ADF UI to web services?
    Feedback is greatly appreciated.
    Boro Petrovic
    Edited by: wds12518 on Jan 25, 2010 11:49 AM

    We have similar issues as our big portion of the UI is based on WS. We found that there is no easy way to map entity object structure to complex XML type (one EO can based on one flat type or domain can't be bound to UI directly). Oracle PMs, is there any better solution or future plans to address this issue?

  • How to store and retrieve XML messages in AQ using ESB/ BPE

    Hello,
    I am having a requirement which I feel should be fairly common - store and retrieve XML messages in AQ. However, I am struggling to decide which type of queue to use AQ or JMS...Here is the requirement
    1. In an ESB, I want to read different kind of files using file adapter. Different kind as in, having different structure or schema
    2. I want to create a queue that is capable of storing any kind of xml data. To this queue, I want to enqueue the message read in step 1.
    3. In another process, say a BPEL, I want to dequeue the message and write into a file. The filename is retrieved from one of the header properties. I want to dequeue using a stored procedure, not by using a JMS or AQ Adapter (reason being that these adapters poll the queue, and consume a message immediately. However, I want to consume the message only when there is a business need)
    My questions are:
    1. What kind of queue I should create in the DB (What should be its payload type...XMLType? )... I guess the answer would also determine the adapter to be used - JMS or AQ
    2. How I should map the xml data read from the file in step 1 to this adapter
    Any help is highly appreciated.

    You are right in suggesting that I dont need to store my XML data as xml in the DB...I dont want to too :) but its just that, thats the only option I can see at this time (the other track i am exploring is :
    File adapter(XML) -&gt; Convert to opaque (base64binary) -&gt; Enqueue opaque to JMS (aq$_jms_bytes_message) -&gt;Dequeue Opaque -&gt; Write file opaquely.
    In this I have hit the roadblock in trying to convert XML to base64binary...maybe some custom java function is needed...anyway)
    Coming back to this thread, where I am trying the following
    File adapter(XML)  -&gt; Enqueue as XML to queue  -&gt;Dequeue XML -&gt; Write file opaquely.
    PS: I think its important for me to mention that I am using SOA 10.1.3.1.0
    I tried the steps you gave...after creating the queue, I am trying to create a JMS adapter. But the queue I created doesnt show up in the browse window of destinations for the JMS Adapter..That had led me to infer that JMS adapter cant be used
    {color:#99cc00}CREATE OR REPLACE TYPE batchupdate_row_type AS OBJECT
    (update_queue_id NUMBER
    ,upc VARCHAR2(20)
    ,price1 NUMBER);
    {color}
    {color:#99cc00}CREATE OR REPLACE TYPE batchupdate_rec_type AS VARRAY(9999999) OF batchupdate_row_type;
    CREATE OR REPLACE TYPE payload_type AS OBJECT ( payload batchupdate_rec_type);
    EXECUTE DBMS_AQADM.CREATE_QUEUE_TABLE ( queue_table =&gt; 'jmsuser.batch_update_queue_table', queue_payload_type =&gt; 'payload_type');
    EXECUTE DBMS_AQADM.CREATE_QUEUE ( queue_name =&gt; 'batch_update_queue', queue_table =&gt; 'jmsuser.batch_update_queue_table');
    EXECUTE DBMS_AQADM.START_QUEUE ( queue_name =&gt; 'batch_update_queue'); {color}
    I also needed some opinion on whether the last step of my proposed solution ( Dequeue XML -&gt; Write file opaquely) is possible. As I want to develop a service oblivious of the structure of the file, I dont want to create a file adapter based on a particular xsd...so I want to write whatever xml I am getting from the queue....is this step possible

  • Complex XML to Plain in JMS adapter "Content conversion module"

    Hi!
    I have read the document on "How To… use the content conversion module with XI3.0 J2EE JMS Adapter", and it says only SimpleXML can be converted in the receiver channel.
    I had hoped for a solution at least as good as in the File/ftp adapter, where complex XML can be transformed to files.
    Are there plans to include complex XML conversion in the JMS adapter?
    I can not use the file adapter as I need to change the file name and destination, and that can not be done by adding own module to its single module.
    Any idea how I can achieve what I want?
    To only way I can find, is to create a file using the file/ftp adapter, and then pick it up again and treat all the lines as the same structure (one row = one xml field). Then output this new xml message to file, using the JMS adapter and add any modules with name and destination determination.
    Appreciate any help!
    Regards,
    Oeystein Emhjellen

    Hello,
    Have you tried to use an XSLT mapping within the IE?
    I have, at one customer site, created a XSLT message mapping which converts the  XML to a fixed length ASCII file format. I than added the XSLT message mapping as a second mapping step on the interface mapping.
    In this case I was able to publish a fairly complex fixed length file format to MQ Series via the JMS adapter.
    /Johan

  • Covnert Complex XML to Simple XML tags using Adapter Module

    Hi
    <buyer>
    <fnParty:partyIdentifier partyIdentifier="GER" partyIdentifierQualifierCode="SenderAssigned"/>
    </buyer>
    I want to convert above complex xml into following simple xml document
    <buyer>GER</buyer>
    I am writing adapter module. Could any one please tell me how to convert this
    Regards
    Sowmya

    Hi,
    Is partyidentifier is source xml and buyer in target xml?
    You can map the attribute to buyer element in message mapping itself.
    Why do you want adapter module?
    Thanks,
    Beena.

  • Complex xml with multiple namespaces giving LPX-00601: Invalid token error

    Hi
    Apologies if this is a really simple question.
    I have not worked with xml before and I'm drowning in different ways to do the extract.
    I have a very complex xml, sample below, which I'm trying to do one siple extract to get myself going.
    I have the data in a table in an xmltype column,
    I am trying to extract containernumber first and get the error.
    select xml_column, extract(xml_column,'/env:Envelope/env:Body/ns0:QueryCntrNumberResponse/ns0:QueryResContainerDetail/ns1:ContainerNumber/ns2:ContainerNumber')
    from test_xml;
    Not sure if I should use the namespaces and have tried without but results are always NULL
    I would really appreciate any pointers around these ultiple namespaces.
    Thanks
    Nicki
    XML Sample
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xmlns:ns0="http://com.cargosmart.cargotracking.webservice.cntr.dto"
                  xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto"
                  xmlns:ns2="http://com.cargosmart.cargotracking.webservice.basic.dto"
                  xmlns:ns3="http://com.cargosmart.cargotracking.webservice.bl.dto"
                  xmlns:ns4="http://com.cargosmart.cargotracking.webservice.bkg.dto">
      <env:Body>
        <ns0:QueryByCntrNumberResponse>
          <ns0:QueryRes ult="">
            <ns0:QueryCriteria>
              <ns1:CarrierSCACCode>APLU</ns1:CarrierSCACCode>
              <ns1:ContainerNumber>APZU344693-1</ns1:ContainerNumber>
            </ns0:QueryCriteria>
            <ns0:ContainerDetail>
              <ns1:ContainerNumber>
                <ns2:ContainerNumber>APZU344693</ns2:ContainerNumber>
                <ns2:ContainerCheckDigit>1</ns2:ContainerCheckDigit>
                <ns2:GrossWeight>
                  <ns2:Weight>20260.8</ns2:Weight>
                  <ns2:WeightUnit>KGS</ns2:WeightUnit>
                </ns2:GrossWeight>
              </ns1:ContainerNumber>
    NOT THE FULL COLUMN

    Could I just ask you one more question.
    I had already expanded the query to include the repeating sections using xmlsequence.
    Has that been replaced too?
                select extractvalue(xml_column,'/env:Envelope/env:Body/ns0:QueryByCntrNumberResponse/ns0:QueryResult/ns0:ContainerDetail/ns1:ContainerNumber/ns2:ContainerNumber',
                  'xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" 
                  xmlns:ns0="http://com.cargosmart.cargotracking.webservice.cntr.dto"
                  xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto"
                  xmlns:ns2="http://com.cargosmart.cargotracking.webservice.basic.dto"
                  xmlns:ns3="http://com.cargosmart.cargotracking.webservice.bl.dto"
                  xmlns:ns4="http://com.cargosmart.cargotracking.webservice.bkg.dto"') col1,
                  extractvalue(value(t2),'/ns1:Event/ns1:EventDescription', 'xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto"') Event_Description,
                  extractvalue(value(t2),'/ns1:Event/ns1:EventDT/ns2:LocDT', 'xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto" xmlns:ns2="http://com.cargosmart.cargotracking.webservice.basic.dto"') Event_DT,
                  extractvalue(value(t2),'/ns1:Event/ns1:Location/ns2:LocationName', 'xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto" xmlns:ns2="http://com.cargosmart.cargotracking.webservice.basic.dto"') location
    from test_xml t1,
    table(xmlsequence(extract(t1.xml_column,'/env:Envelope/env:Body/ns0:QueryByCntrNumberResponse/ns0:QueryResult/ns0:ContainerDetail/ns1:Event','xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" 
                  xmlns:ns0="http://com.cargosmart.cargotracking.webservice.cntr.dto"
                  xmlns:ns1="http://com.cargosmart.cargotracking.webservice.common.dto"
                  xmlns:ns2="http://com.cargosmart.cargotracking.webservice.basic.dto"
                  xmlns:ns3="http://com.cargosmart.cargotracking.webservice.bl.dto"
                  xmlns:ns4="http://com.cargosmart.cargotracking.webservice.bkg.dto"'))) t2;

  • Complex xml

    I have gone through this with vb and now powershell.  I am trying to do this without writing a bunch of granular vb code.
    I am trying to read a complex xmlFile (with a schema doc) into tables and then upload those tables into SQL.
    When importing to a dataset the table names are off (and all the datarows appear in one table only).
    The schema tested valid and the xml tested valid against the schema.......see the end for the results
    Schema:
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    attributeFormDefault="unqualified"
    elementFormDefault="qualified"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="products">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="books">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" name="item">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="title" type="xs:string" />
    <xs:element minOccurs="0" name="pageCount" type="xs:string" />
    <xs:element minOccurs="0" name="price" type="xs:integer" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element minOccurs="0" name="fruits">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="item">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" name="type" type="xs:string" />
    <xs:element minOccurs="0" name="color" type="xs:string" />
    <xs:element minOccurs="0" name="price" type="xs:string" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    My XML
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Created with Liquid XML 2014 Starter Edition (Trial) 12.2.8.5459 (http://www.liquid-technologies.com) -->
    <products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\temp\xml\mySchematest.xsd">
    <books>
    <item>
    <title>myFirstBook</title>
    <pageCount>300</pageCount>
    <price>55</price>
    </item>
    <item>
    <title>mySecondBook</title>
    <pageCount>1000</pageCount>
    <price>100</price>
    </item>
    </books>
    <fruits>
    <item>
    <type>orange</type>
    <color>orange like</color>
    <price>5</price>
    </item>
    </fruits>
    </products>
    my PowerShell
    clear-host
    $dsXml = new-object "System.Data.DataSet"
    $dsXml.ReadXmlSchema("C:\temp\xml\mySchemaTest.xsd")
    $dsXml.ReadXml("c:\temp\xml\myXmlTest.xml", 'ReadSchema')
    Write-Host "Table names in dataset"
    Write-Host "======================"
    foreach ($table in $dsXml.Tables)
    Write-Host $table.TableName
    results
    ReadSchema
    Table names in dataset
    ======================
    books
    item
    fruits
    I expected only 2 tables to be created, each with their attributes.
    Instead I got the table "item" with all the attribute names and data
    the tables books and fruits simply have one column called books_id or fruit_id with one value of 0 in each.
    even if I just read the schema I get 3 table names....
    am I supposed to create a granular reader?
    help, please!
    CS

    Both books and fruits contained objects referred to as "item".  Instead they should have referred to "book" and "fruit".
    When this was done several tables were created including "book" and "fruit" and the columns were populated accordingly.
    I am not saying that is right but I am saying that it created the separate tables as desired (both had a common column name called "price" that was not linked.
    Basically, it worked.
    I think I can change the schema to have multiple types and assign those types to books and fruits so they can share the same subtype info but have not tested that.
    If an XML wiz knows better please update this thread.  Here is the final XML, the schema was similarly changed:
    <?xml version="1.0" encoding="utf-8"?>
    <products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\temp\xml\mySchematest.xsd">
    <books>
    <book>
    <title>myFirstBook</title>
    <pageCount>300</pageCount>
    <price>55</price>
    </book>
    <book>
    <title>mySecondBook</title>
    <pageCount>1000</pageCount>
    <price>100</price>
    </book>
    </books>
    <fruits>
    <fruit>
    <type>orange</type>
    <color>orange like</color>
    <price>5</price>
    </fruit>
    </fruits>
    </products>

  • Complex xml in tree control

    every example you see online is trivial and utterly useless
    for practical programming purposes...typically you'll see something
    like this:
    <mx:XML format="e4x" id="myMenuModel">
    <root label="Menu">
    <menuitem label="MenuItem A">
    <menuitem label="SubMenuItem 1-A"/>
    <menuitem label="SubMenuItem 2-A" />
    </menuitem>
    <menuitem label="MenuItem B"/>
    <menuitem label="MenuItem C" type="check"/>
    <menuitem type="separator"/>
    <menuitem label="MenuItem D">
    <menuitem label="SubMenuItem 1-D" type="radio"
    groupName="one"/>
    <menuitem label="SubMenuItem 2-D" type="radio"
    groupName="one"/>
    <menuitem label="SubMenuItem 3-D" type="radio"
    groupName="one"/>
    </menuitem>
    </root>
    </mx:XML>
    ...just hard coded simplistic xml which is fine and dandy if
    you have a simple xml schema and all the leaves of your tree can be
    keyed off the same "label" attribute. But what if you have a
    complex, deeply nested XML file that doesn't follow this nice
    pattern? What if I want to pull different attributes from different
    levels in the tree to display, is that even possible? Or what if I
    dont want to use the attribute at all for my display label in the
    tree, what if I want to use an element node name? Like for example,
    say I had:
    <department label="marketing">
    <employee name="Eric Cartman" Age="8">
    <interest>
    <type>food</type>
    <name>cheesiepoofs</name>
    </interest>
    <interest>
    <type>pets</type>
    <name>mr. kitty</name>
    </interest>
    </employee>
    Is there a way I can build my tree to use the department
    'label' attribute for the top level, the employee 'name' attribute
    for the second level and the <type> element nested under
    <interest> for the third level?
    I confess I'm a Flex newbie but any other language I've
    worked provides a mechanism to tailor this sort of thing to
    individual business cases. Any insight would be greatly
    appreciated.
    thank you.
    S

    Another approach is parse your complex xml into objects and
    then create your own
    tree datadescriptor. This is described in the help. Search on
    "custom tree datadescriptor"
    We use this approach because the xml we want to display in a
    tree does not fit nicely. So we wrote a parser that converts the
    xml into "TreeObjects" (our class) and created the custom tree
    datadescriptor to handle it. When we create the tree object we can
    control the data used for the label so it displays correctly.

  • How to invoke an OSB Proxy of type "Any XML  Service"

    I built some proxy services as "Any XML Service" which route to some other business services.
    I have tested these proxies using the debug console and they work fine. The question is, how do I invoke these services from outside de OSB? They recive an xml (duh) ...anyway, i have tried invoking them from a url passing the xml as the "body" parameter as follows:
    http://host:port/myproject/anyXmlServices/aservice?body=<myxml>test</myxml>
    not shure if this should work... how should I nvoke these services?
    thanks in advance
    Jhosue

    Hi Jhosue,
    before answer your queries can you please provide few info for the below mention queries.
    1>While creating Proxy Service what protocol you have selected in "Transport Configuration" page?
    2>If its HTTP, you need to specify some meaningful service name as "Endpoint URI".so that case the URL would like "http://host:port/serviceName"
    3>if the protocol is not HTTP/HTTPS, then you cant invoke the proxy via URL from outside.
    Note:
    If your Proxy is HTTP based then to access the Proxy from outside,you need a Client Program(may be any GUI or standalone code).
    There you need to specify what method you would like to follow GET/POST or others...i mean as per your service configuration.
    If its GET..then u cant pass xml with the URL,instead of that you need to construct a URL string.
    If its POST you can post bulk xml,that too using Client program.
    Thanks
    Deba

  • Can a Xquery return a concatenated string and an XML element

    Hi,
    My Xquery fucntion is shown below:
    It accepts 4 string parameters and an XML element i.e., $Message which is an XML element(request coming to the service) and i need to log all this information to a log file.
    I am using the below concat fucntion to get a concatenated string of all the parameters but, for $Message i m not able to get the XML payload. How to achieve the same in the Xquery?
    *$Message is the below XML file:*
    <payload>
    <aa>one</aa>
    <bb>two</bb>
    <cc>three</cc>
    </payload>
    My Xquery function is:
    declare function xf:XformLog($Name as xs:string,
    $id as xs:string,
    $Context as xs:string,
    $Annotation as xs:string,
    $Message as element(*))
    as xs:string {
    concat("Name = ",$Name," , ","Id = ",$id," , ","Message Context = ",$Context," , ","Annotation = ",$Annotation," , ","Event Message = ", data($Message/@* , $Message/node()))
    I am trying to achieve the following log:
    Name = xyz, Id = 111, Message Contact = abc, Annotation = ggg, Event Message = <payload>
    <aa>one</aa>
    <bb>two</bb>
    <cc>three</cc>
    </payload>
    How can i achieve the same. Please suggest.
    Thanks in advance.
    Edited by: user9223904 on Mar 18, 2013 3:16 AM

    Hi,
    You have to use a serialization function to convert the element instance to a string.
    Such functionality is not included in the XQuery standard but many implementors provide an extension to do so.
    For example, in OSB, you can use <tt>fn-bea:serialize()</tt>.
    What's your environment and XQuery engine?

  • DEBMDM06 based Idocs: Simple XML Vs Complex XML

    The idocs we extracted from ECC "mdmc" Tcode based on DEBMDM type. Are they simple XML or Complex XML?? because we operate on AIX and according to IM referecne guide AIX does not support Complex XML via Import server

    Ok, it is not Complex type, based on Reference guide, and also couple of other posts!.

  • Complex XML import

    Hello,
    I am faced with the task of importing a rather complex (about 50-60 tables, tree depth about 5-6, data in both attrs and nodes) XML tree into a relational schema (non-nested tables).
    I have understood that the XSU/XMLSAVE is not that fond of attributes and stores sub-types as objects(?) so it's not an "out-of-the-box-solution". Is it worth trying to write XSL for it or should I just read the DOM-tree and iterate over it manually and store it? Are there any other alternatives?
    Thanks in advance,
    -Nik

    Nicklas, do you need to insert into an existing relational schema?
    If not, you could use XML Db's option to create an object-relational schema based on the XML-schema definition of your XML.
    Load your xml-document into the XML-type table and the data gets loaded in the underlying object-relational schema. You can define vies on this object-relational schema for simple access.
    Btw., if yes, then you could do the same en use simple SQL to move you data to the final tables.

Maybe you are looking for

  • Windows Vista 64-bit Flashe Player 11 issues.

    I am operating on Windows Vista 64-bit. Adobe automatically downloaded Flash Player 11. I use the FireFox browser. Now I can not view some things to include things on the Adobe site. Is there something I need to do as far as setting and what not go?

  • Launch Application

    Hi all Can any one explain me clearly why we use launch application in 2005 B .

  • Logic in determining package sequence in maintenance planning

    Hi, I have created a performance based strategy, with the package containing 2 cycles and 2 levels of hierarchy. cycle 1        500H cycle 2      1000H So, the package sequence is showing 500H     1000H      1500H     2000H    2500H etc 1           2

  • Java.sql.SQLException: ORA-00979: not a GROUP BY expression

    Hi all, I have the following sql query; SELECT act.BAM_NAME AS ACTIVITY_NAME, svc.BAM_SERVICE_NAME AS SERVICE_NAME, opt.BAM_OP_NAME AS OPERATION_NAME, COUNT(msg.BAM_OP_ID) AS MESSAGE_COUNT FROM BAM_ACTIVITY act, BAM_MESSAGE msg, BAM_OPERATION opt, BA

  • Has anyone experienced any odd crashing since mavericks came out?

    My computer has maybe crashed once or twice since I've owned it. I've had mavericks for three days, and I've been experiencing multiple crashes. My screens get pixelated and offset, then shuts down. Is this a Mavericks bug, or something else going on