How to use XML fragment in BPEL?

Hello,
How to use XML fragment in BPEL process and whats the purpose of XML fragment ? And why we need it ??

It is used to build up an XML fragment to the element on the target side...
please refer this link....
http://kr.forums.oracle.com/forums/thread.jspa?threadID=2252997&tstart=2
Thanks,
N

Similar Messages

  • How to use XREF table in BPEL?

    Can anyone tell me how to use XREF table in BPEL ??

    It is used to build up an XML fragment to the element on the target side...
    please refer this link....
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=2252997&tstart=2
    Thanks,
    N

  • How to use XML file as a source in BODS?

    How to use XML file as a source in BODS?
    Could anyone please help me out for this?

    exmpale XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <MM_RECON_REPORT>
      <RPT_DATE>str1234</RPT_DATE>
      <RPT_ROW>
        <SRC_EXT_REC_COUNT>123.45</SRC_EXT_REC_COUNT>
        <PRE_TRANS_REC_COUNT>123.45</PRE_TRANS_REC_COUNT>
        <POST_TRANS_REC_COUNT>123.45</POST_TRANS_REC_COUNT>
        <PASS_BAPI_REC_COUNT>123.45</PASS_BAPI_REC_COUNT>
        <TOT_SAP_RETURN>123.45</TOT_SAP_RETURN>
        <TOT_SAP_SUCC_REC_COUNT>123.45</TOT_SAP_SUCC_REC_COUNT>
        <PARTIAL_SUCC_REC_COUNT>123.45</PARTIAL_SUCC_REC_COUNT>
        <TOT_SAP_ERR_REC_COUNT>123.45</TOT_SAP_ERR_REC_COUNT>
        <MM_SUCC_REC_COUNT>123.45</MM_SUCC_REC_COUNT>
        <MM_ERR_REC_COUNT>123.45</MM_ERR_REC_COUNT>
        <CLS_SUCC_REC_COUNT>123.45</CLS_SUCC_REC_COUNT>
        <CLS_ERR_REC_COUNT>123.45</CLS_ERR_REC_COUNT>
        <CP_SUCC_REC_COUNT>123.45</CP_SUCC_REC_COUNT>
        <CP_ERR_REC_COUNT>123.45</CP_ERR_REC_COUNT>
        <VMS_SUCC_REC_COUNT>123.45</VMS_SUCC_REC_COUNT>
        <VMS_ERR_REC_COUNT>123.45</VMS_ERR_REC_COUNT>
        <SOURCE_TYPE>str1234</SOURCE_TYPE>
        <RUN_ID>123.45</RUN_ID>
        <RUN_SEQ>123.45</RUN_SEQ>
        <RUN_DATE>2012-12-13</RUN_DATE>
      </RPT_ROW>
    </MM_RECON_REPORT>
    example XSD file :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema  xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <xsd:annotation>
        <xsd:documentation xml:lang="en">
        XML Schema generated by Data Services
        </xsd:documentation>
      </xsd:annotation>
    <xsd:simpleType name="DIType-decimal-28-0">
      <xsd:restriction base="xsd:decimal">
        <xsd:totalDigits value="28"/>
        <xsd:fractionDigits value="0"/>
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="DIType-varchar-200">
      <xsd:restriction base="xsd:string">
      <xsd:maxLength value="200"/>
      </xsd:restriction>
      </xsd:simpleType>
    <xsd:simpleType name="DIType-varchar-10">
      <xsd:restriction base="xsd:string">
        <xsd:maxLength value="10"/>
      </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="DATE">
      <xsd:restriction base="xsd:date">
      </xsd:restriction>
      </xsd:simpleType>
    <xsd:element name="MM_RECON_REPORT" >
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="RPT_DATE" minOccurs="0" maxOccurs="1"/>
            <xsd:element ref="RPT_ROW"  minOccurs="0" maxOccurs="unbounded"/>
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    <xsd:element name="RPT_DATE" type = "DIType-varchar-200"/>
    <xsd:element name="RPT_ROW" >
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element ref="SRC_EXT_REC_COUNT" />
            <xsd:element ref="PRE_TRANS_REC_COUNT" />
            <xsd:element ref="POST_TRANS_REC_COUNT" />
            <xsd:element ref="PASS_BAPI_REC_COUNT" />
            <xsd:element ref="TOT_SAP_RETURN" />
            <xsd:element ref="TOT_SAP_SUCC_REC_COUNT" />
            <xsd:element ref="PARTIAL_SUCC_REC_COUNT" />
            <xsd:element ref="TOT_SAP_ERR_REC_COUNT" />
            <xsd:element ref="MM_SUCC_REC_COUNT" />
            <xsd:element ref="MM_ERR_REC_COUNT" />
            <xsd:element ref="CLS_SUCC_REC_COUNT" />
            <xsd:element ref="CLS_ERR_REC_COUNT" />
            <xsd:element ref="CP_SUCC_REC_COUNT" />
            <xsd:element ref="CP_ERR_REC_COUNT" />
            <xsd:element ref="VMS_SUCC_REC_COUNT" />
            <xsd:element ref="VMS_ERR_REC_COUNT" />
            <xsd:element ref="SOURCE_TYPE" />
            <xsd:element ref="RUN_ID" />
            <xsd:element ref="RUN_SEQ" />
            <xsd:element ref="RUN_DATE" />
          </xsd:sequence>
        </xsd:complexType>
      </xsd:element>
    <xsd:element name="SRC_EXT_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PRE_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="POST_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PASS_BAPI_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_RETURN" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="PARTIAL_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="TOT_SAP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="MM_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="MM_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CLS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CLS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="CP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="VMS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="VMS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
    <xsd:element name="SOURCE_TYPE" type = "DIType-varchar-10"/>
    <xsd:element name="RUN_ID" type = "DIType-decimal-28-0"/>
    <xsd:element name="RUN_SEQ" type = "DIType-decimal-28-0"/>
    <xsd:element name="RUN_DATE" type = "xsd:date"/>
    </xsd:schema>
    compare the xml vs xsd for better understanding

  • How to use XML Anonymizer Module for receiver mail Adapter?

    Hi All,
             I would like to know how to use XML Anonymizer Module for receiver mail adapter so as to change the namespace to http://sap.com/xi/XI/Mail/30 from my original namespace? Thank you all in advance?

    Hi,
    This may help u:
    Replacing one namespace with another using XML Anonymizer Module
    Thanks
    Amit

  • How to use File Adapter in BPEL

    Hi,
    How to use File Adapter in BPEL. I am using Oracle SOA 10g. Any sample or best example in blog or elsewhere ?

    Hi,
    Please check the below links for samples on how to use file adapter in BPEL (in 10g/11g usage is same) and let me know any further queries.
    11g - http://blogs.oracle.com/theshortenspot/entry/soa_suite_integration_part_3_l
    10g - http://erpschools.com/articles/bpel-file-adapter-tutorial

  • HOW to use xml to transfer data from database?

    Hi,
    Would you please give me some suggestion on how to use xml connect with a table in oracle/MS_access database?
    Thanks a lot
    Zhao

    Have you already had a look at our online documentation here on OTN, or at a book like Building Oracle XML Applications? There are lots of examples in those.
    If you have a specific question about using the API's that's not working for you, we can help out here.

  • How to use xml forms which are built by using xml forms builder?

    Hi Experts,
    please explain How to use xml forms which are built by using xml forms builder in Web page composer?
    Thanks,
    Anil.

    hi buddy u can try the following page:
    http://help.sap.com/saphelp_nw70/helpdata/en/8f/fe743c74fa6449e10000000a11402f/frameset.htm

  • How to use XML / XPath in JAVA (in 1.4) which third part component to use?

    How to use XML / XPath in JAVA (in 1.4)
    I'm absolutely novice in XML
    but I need to query XML using XPath
    As I understand XPath become avalible only in Java 1.5
    But I use 1.4 (project requirement)
    Which third part component could you recomend?

    Can anyone help me with this XPath query
    I get result [title: null]
    import java.io.*;
    import javax.xml.parsers.*;
    import org.xml.sax.*;
    import org.w3c.dom.*;
    import org.jaxen.*;
    import org.jaxen.dom.*;
    import org.jaxen.saxpath.*;
    import java.util.*;
    public class TestX {
         public void ggg() {
              try {
                   File f = new File("journal.xml");
                   DocumentBuilder docBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                   org.w3c.dom.Document doc = docBuilder.parse(f);
                   XPath xpath = new DOMXPath( "/journal/article/title" );
                   List result = (List) xpath.evaluate(doc);
                   System.out.println(result.get(0));
              } catch (Exception e) {
                       e.printStackTrace();
         public static void main(String[] args) {
              TestX tx = new TestX();
              tx.ggg();
    }journal.xml
    <journal>
        <article id="article.1">
            <title>Art1</title>
            <author>
               <first>Bob</first>
               <last>McWhirter</last>
            </author>
            <text>
            </text>
        </article>
        <article id="article.2">
            <title>Art2</title>
            <author>
               <first>James</first>
               <last>Strachan</last>
            </author>
            <text>
            </text>
        </article>
    </journal>

  • When we use XML,XSD,WSDL files to create SOA webservices in jdeveloper ,what will happen means internally,how will useful xml ,xsd,wsdl for composite ?

    When we use XML,XSD,WSDL files to create SOA webservices in jdeveloper ,what will happen means internally,how will useful xml ,xsd,wsdl for composite ?
    How xml will send message to XSD then how wsdl interaction then to composite ?

    XSD (XML Schema Definition), is an abstract representation of a XML characteristics.
    The WSDL (Web Services Description Language), describes the functionality offered by your web service.
    You can say what operations your services offers, and describe the messages used for this operations in your XSD.

  • How To Store XML Fragments Using Functions Such As XMLElement

    Hi
    Not sure what I am missing. I wish to store XML fragments in variables so can pass around and concatenate with other fragments to make final XML document. Even before attempting to concatenate XML fragments, I am struggling to store any XML fragment in a variable. I am trying to use simple functions such as XMLElement to generate XML so can store in variable. I have seen many examples of XMLElement in SQL select statement. Can XMLElement be used in plsql? XMLElement says it returns value of type XMLType. Functions such as XMLElement make generating XML easier than creating all tags manually.
    Below is simple example that demonstrates what I would like to do. I would like to be able to pass the XML fragment as either XMLType or clob. I receive error saying PLS-00201: identifier 'XMLELEMENT' must be declared
    declare
    vTheData XMLType;
    vTheDataClob clob;
    begin
      vTheData:= XMLelement("empno",'1234567');
      vTheDataClob:= xmlelement("empno",'1234567').getclobval();
    end;
    Where as I can use below, but surely don't have to use select into from dual method. I just expect can use XMLElement function in plsql same as sql, such as most other functions eg length, rtrim etc.
    declare
    vTheData XMLType;
    vTheDataClob clob;
    begin
      select xmlelement("empno",'1234567')
      into vTheData
      from dual;
      select xmlelement("empno",'1234567').getclobval()
      into vTheDataClob
      from dual;
    end;
    Hope this makes sense.
    Thanks

    Having said that, is there a more elegant way to achieve below. That is populate two XML fragments and concatenate together.
    Sure, why not just only one statement?
    select XMLConcat(
             XMLElement( ... )
           , XMLElement( ... )
    into vTheResult
    from dual;
    As a second question, is it better to build and pass XML fragments as XMLType or clob?
    I would say stay with XMLType but it depends on your requirement.
    I generally avoid passing around pieces of data, SQL/XML functions are powerful in the way they can be used with set operations, so using them in a piecewise approach kinda negates what they're for.

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • How to use XML on another server?

    I need help figuring out how to consume XML from another
    domain. It's a domain that is providing search functionality for a
    website. The domain indexes my site, and I can "post" searches to
    an URL with my search terms URL-escaped. It returns an XML
    document. I want to use Spry to consume that XML.
    I'm pretty experienced consuming XML and using it in Spry
    pages, but to date have not done anything that crosses domains. I
    will have access to Perl on the production box that hosts my site,
    with a remote chance that I could get PHP enabled. This is a public
    web server for a very very large financial company, so my choices
    of what can go on a production server outside our firewall are
    limited by corporate policy.
    What are the basic steps that need to happen? Can someone
    bullet-point how this might work from one end to the other? I have
    the basic theory down of what needs to happen, but not much else at
    this point.
    Here is what I understand:
    1 - user fills in search form and hits enter
    2 - form posts to a Perl script on my box
    3 - Perl takes the form variables and appends them to a URL
    request to the 3rd party search domain
    4 - 3rd party search company returns an xml file
    5 - not sure what Perl needs to do here with the xml so that
    my HTML page with Spry can read it....it does something, let's just
    say
    6 - Perl writes out a page, based on a template in my site
    that then consumes the XML that is somehow available on my domain
    now...
    This raises so many questions...like if I save the results
    XML on my server, how do I get rid of them after they are consumed
    and also how do I prevent other sessions from accessing that "saved
    copy" of XML...I know I'm thinking wrong here. That can't be how
    it's done...Hence...my question about all this.
    Where do I start?
    Thanks,
    Doug

    user12004297 wrote:
    thank you so much  -  however on the source database I dropped tables and users- then I  did an "alter system switch logfile;"  - copied the archivelogs to the / test  DRP and loaded the archivelogs and the users and tables were not dropped like i did in source
    RMAN> tartup mount
    Oracle instance started
    database mounted
    Total System Global Area    1119043584 bytes
    Fixed Size                     2227624 bytes
    Variable Size                620757592 bytes
    Database Buffers             469762048 bytes
    Redo Buffers                  26296320 bytes
    RMAN> CATALOG START WITH '/oradb1/backup';
    using target database control file instead of recovery catalog
    searching for all files that match the pattern /oradb1/backup
    List of Files Unknown to the Database
    =====================================
    File Name: /oradb1/backup/1_345_819727387.dbf
    Do you really want to catalog the above files (enter YES or NO)? YES
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: /oradb1/backup/1_345_819727387.dbf
    RMAN> recover database;
    Starting recover at 20-NOV-13
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=249 device type=DISK
    starting media recovery
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 20-NOV-13
    RMAN> alter database open;
    database opened
    RMAN
    Simply making the database aware of the archivlogs does NOT mean rman will determine they need to be used for a specific recovery operation.  What all had you done to/with this database prior to this?   Keep firmly  in mind the effect of any OPEN RESETLOGS.

  • How to use XML functions in CEP

    Hi,
    I am trying to implement XML functions in CEP. But i am getting error while using XMl function in config.xml file.
    Please provide some help to resolve this issue.
    Adapter Class
    package com.bea.wlevs.example.adapter.XML_CEP;
    import com.bea.wlevs.ede.api.EventProperty;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.util.Service;
    public class XMLAdapter implements RunnableBean, StreamSource {
    private String id;
    private String name;
    private StreamSender eventSender;
    private EventTypeRepository etr_;
    public XMLAdapter() {
    super();
    public void run() {
         setName("abc");
    generateMessage();
    public void setId(String id)
         this.id = id;
    public void setName(String i)
         this.name = i;
    @Service
    public void setEventTypeRepository(EventTypeRepository etr) {
         etr_ = etr;
    private void generateMessage() {
         EventType type = etr_.getEventType("XMLEvent");
         EventProperty messageProp = type.getProperty("name");
         EventProperty msgProp = type.getProperty("msg");
         Object event = type.createEvent();
         messageProp.setValue(event, name);
         msgProp.setValue(event, "<PDRecord><PDId>6</PDId><PDName>hello1</PDName></PDRecord>");
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
         xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
         xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
         xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="XMLEvent">
                   <wlevs:properties>
                        <wlevs:property name="msg" type="xmltype" />
                        <wlevs:property name="name" type="char" length="256" />
                   </wlevs:properties>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter advertise="true" id="XML_Adapter"
              class="com.bea.wlevs.example.adapter.XML_CEP.XMLAdapter">
              <wlevs:listener ref="IPStream" />
              <wlevs:instance-property name="id" value="123" />
              <wlevs:instance-property name="name" value="Kanika" />
         </wlevs:adapter>
         <wlevs:processor id="XML_processor" provider="cql">
              <wlevs:listener ref="OPStream" />
         </wlevs:processor>
         <wlevs:channel id="IPStream" event-type="XMLEvent">
              <wlevs:listener ref="XML_processor" />
         </wlevs:channel>
         <wlevs:channel id="OPStream" event-type="XMLEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.outputBean.XML_CEP.OutputBean">
         </bean>
    </beans>
    Config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
    <processor>
    <name>XML_processor</name>
    <rules>
              <query id="q1"><![CDATA[
             SELECT
                 XMLEXISTS(
                 "for $i in /PDRecord RETURN $i/PDName"       *// I am getting error at this line*       
             PASSING BY VALUE 
                    msg as "."
                     RETURNING CONTENT
                      ) XMLData
                  FROM IPStream
              ]]></query>
    </rules>
    </processor>
    </wlevs:config>
    Output Bean Class
    package com.bea.wlevs.example.outputBean.XML_CEP;
    import com.bea.wlevs.ede.api.EventType;
    import com.bea.wlevs.ede.api.EventTypeRepository;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.example.event.XML_CEP.DummyEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         EventTypeRepository etr_;
         @Service
         public void setEventTypeRepository(EventTypeRepository etr) {
              etr_ = etr;
    public void onInsertEvent(Object event) {
         EventType eventType = etr_.getEventType(event);
         String prop = (String)eventType.getPropertyValue(event, "name");
         String prop2 = (String)eventType.getPropertyValue(event, "msg");
         System.out.println("Tuple Message: " + prop + ":" + prop2);
    Error i am getting is:
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
              >
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServer> <BEA-000000> <CREATE QUERY q1 AS
         SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream
    generic syntax error. The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Emergency> <CQLServerTrace> <BEA-000000> <oracle.cep.parser.SyntaxException: generic syntax error>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <CQLProcessor> <BEA-000000> <Failed to create statement [q1].
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:53:59 PM IST> <Error> <Deployment> <BEA-2045016> <The application context "XML_CEP" could not be started. Could not initialize component
    "<unknown>":
    Invalid statement: "SELECT
                   XMLQUERY>>(
    "for $i in /PDRecord WHERE $i/PDId <= $x RETURN $i/PDName"<<
    PASSING BY VALUE
    msg as ".",
    (name+1) AS "x"
    RETURNING CONTENT
    ) XMLData
              FROM IPStream"
    Description: generic syntax error
    Cause: This DDL command has syntax error
    Action: The syntax expects STRING token>
    <Jun 29, 2011 7:54:00 PM IST> <Notice> <Deployment> <BEA-2045001> <The application bundle "XML_CEP" was undeployed successfully>
    Thanks in advance.

    Hi Vikram,
    I need some more help from your side.
    It would be great help if you will let me know that how to extract the data from particular XML tag.
    As of now i want to extract particular XML node by applying that query and the result i am getting is: <applicationID>Engage</applicationID>
    I just want to know if I want to extract only data from this XML node i.e Engage instaed of *<applicationID>Engage</applicationID>*
    Then what will be the query?
    Thanks in Advance

  • How to use XML Publisher

    Hi,
    anyone knows how to use XMLP 5.5 from Oracle Forms?
    please help and share your knowledges
    regards
    igor

    Hi,
    I checked with one of the Oracle Sales Consultants working with Forms and XML Publisher and he says that you can either use web.show_document() or the Java Importer to generate Reports with XML Pulisher. Note that XML Publisher does not yet support SSO authentication ,which means that there is no implicit authentication possible when running it.
    Frank

  • How to marshal XML fragments with JAXB

    Hello,
    I have Object unashamed from XML. I would like to insert part of this object in another XML document. I�m using Cocoon Transformer for this. In startElement then I detect element which I would like replace I would like to write something like this:
    Marshaller m = jc.createMarshaller();
    m.marshal(myElem, contentHandler);
    However this method try to marshal it as whole document with: <?xml version="1.0" encoding="UTF-8" ?> This probably case problems for next Transformer.
    I have this problem in Cocoon and with SAX, but there should be some general solution to marshal JAXB objects as XML fragments, not whole documents. However I can�t found it.
    Thanks for any help
    Arek Stryjski

    In JAXB mailing list I got this answer:
    It currently doesn't have any explicit support for fragment marshalling,
    but like you said, you can easily write an XMLFilter that blocks
    start|endDocument. In your case, you just need to:
    Marshaller m = jc.createMarshaller();
    m.marshal(myElem, new FragmentFilter(contentHandler));
    where FragmentFilter is:
    class FragmentFilter extends XMLFilterImpl {
    FragmentFilter( ContentHandler handler ) {
    setContentHandler(handler);
    public void startDocument() {}
    public void endDocument() {}
    Perhaps this could be another example.
    regards,
    Kohsuke KAWAGUCHI

Maybe you are looking for

  • Open Order value for Customer in Credit Master

    Hi All, For ABC customer, if I check for Credit master(F.35), credit management(FD33) & Sales Summary, the Open order value(sales Value) is 10, 30,000.00 EUR. If I calculate adding Back orders - 83681.98 Open orders - 196763.43 Open Contract - 9,669.

  • ZCharacterisitic - not populating values

    Dear Eugene / Dan, Pls refer to my earlier thread - [Z Characteristic - Subassignment] I gave the requirement as follows to my BI resource: During the data load - if the 0GL_ACCOUNT is a reconciliation account (i.e. has the 0ACCT_TYPE as K) the relev

  • Error while using Tcode MB1C

    Hi I want to add initial stocks to plant zs10 using movement type 561. But I am getting an error stating "Account determination for entry 0009 GBB ____ BSA 3000 not possible". I went into Tcode obyc for chat of account 0009 but I don't know how to pr

  • Moving iWeb from G5 to MacPro

    I just got a new MacPro and I need to move my iWeb from my old G5 to the new Mac. Can't figure out how to do this. Thanks, --ken

  • Deleted Files , By Netwok Sharing Driver

    Hi! Everyone ,I use Windows server data center edition as a domain server ,i share a drive like ( D:\Share File ) for domain users , he work there and i permitted Delete and new create any file and folders( on the Shared Drive , But When he accidenta