How to add all namespaces in root node of xquery transformation result?

Hi,
I'm using xquery Transformation in oracle service bus to transfrom output. The schema used for output transfromation has elements being imported from several schemas. so that output xml has these long tags with namespaces of repective schemas e.g.
<rr:Get360ViewOfProductResponse      xmlns:rr="http://canaldigital.com/schema/product/CPMProductInformation/v2.0/">
<ResponseHeader>
<com:ResponseCode xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" >0</com:ResponseCode>
<com:ResponseText xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" >0</com:ResponseText>
</ResponseHeader>
</rr:Get360ViewOfProductResponse>
what I want to achieve is that all namespaces come once in the rootNode and all childnodes just use the repective prefixes, so that the xml size doesnt grow too large.Like below.
<rr:Get360ViewOfProductResponse      xmlns:com="http://broadcast.telenor.com/tsi/common/commonparameters_v1" xmlns:rr="http://canaldigital.com/schema/product/CPMProductInformation/v2.0/" xmlns:pr="http://broadcast.telenor.com/tsi/common/program_v1">
<ResponseHeader>
<com:ResponseCode>0</com:ResponseCode>
<com:ResponseText>0</com:ResponseText>
</ResponseHeader>
</rr:Get360ViewOfProductResponse>
the difference is that ResponseCode and responseText should only use their prefix, and not complete namespace. How can i acheive this.
Thanks in advance.
Edited by: 856401 on Feb 9, 2012 1:53 AM

I get error 'Invalid expression- Unexpected token copy-namespaces'. Is it supported by xquery version 1.0 ? Following is the updated xquery transformation which gives static error:
xquery version "1.0" encoding "Cp1252";
(:: pragma bea:global-element-parameter parameter="$get360ViewOfProductResponse1" element="ns5:Get360ViewOfProductResponse" location="../XSD/CPMSchema_v20.xsd" ::)
(:: pragma bea:global-element-return element="ns6:Get360ViewOfProductResponse" location="../XSD/CPMSchema_v3.xsd" ::)
declare namespace ns2 = "http://broadcast.telenor.com/tsi/common/displayinformation_v1";
declare namespace ns1 = "http://broadcast.telenor.com/tsi/common/commonparameters_v1";
declare namespace ns4 = "http://broadcast.telenor.com/tsi/common/Property_v2";
declare namespace ns3 = "http://broadcast.telenor.com/tsi/common/ProductMain_v2";
declare namespace ns0 = "http://broadcast.telenor.com/tsi/common/condition_v1";
declare namespace ns9 = "http://broadcast.telenor.com/tsi/common/extension_v1";
declare namespace ns5 = "http://broadcast.telenor.com/tsi/psd/cpm/CPMSchema_v20";
declare namespace ns6 = "http://canaldigital.com/schema/product/CPMProductInformation/v3.0/";
declare namespace xf = "http://tempuri.org/CPM_OSB_v3/XQuery/Get360ViewOfProductResponse/";
declare namespace ns7 = "http://broadcast.telenor.com/tsi/common/productofferingpricewithrules_v2";
declare namespace ns8 = "http://broadcast.telenor.com/tsi/common/pricecomponent_v2";
declare copy-namespaces preserve, inherit;
declare function xf:Get360ViewOfProductResponse($get360ViewOfProductResponse1 as element(ns5:Get360ViewOfProductResponse))
as element(ns6:Get360ViewOfProductResponse) {
<ns6:Get360ViewOfProductResponse>
<ResponseHeader>
<ns1:ResponseCode>0</ns1:ResponseCode>
<ns1:ResponseText>{ data($get360ViewOfProductResponse1/responseDescription) }</ns1:ResponseText>
</ResponseHeader>
</ns6:Get360ViewOfProductResponse>
declare variable $get360ViewOfProductResponse1 as element(ns5:Get360ViewOfProductResponse) external;
xf:Get360ViewOfProductResponse($get360ViewOfProductResponse1)

Similar Messages

  • How to add multiple namespaces in XSD ?

    Can anyone tell me how to add multiple namespaces inside an XSD. Or how to import XSD into another XSD ??
    Thanks

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://xml.ibridge.nl/nl/rsg/domein/3/company" xmlns:alg="http://mynamespace/generic" targetNamespace="http://xml.ibridge.nl/nl/rsg/domein/3/company" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1">
         <xs:import namespace="http://mynamespace/generic" schemaLocation="algemeen.xsd"/>
    you define xmlns:alg with a namespace
    and after that use the namespace itself to import a xsd for it

  • How to inlcude all records in a report, with a formula result of 0 or 0?

    I'm reporting on classes scheduled for a certain location, and calculating the number of available seats per class. A formula will give me the net seats available (Max seats-count of students). BUT if there are no students enrolled, class does not appear on the report. Formula is {SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs)
    What am I missing? Currently using Crystal 8.5 and reporting against a SQL database.
    Appreciate your help.
    christi

A: How to inlcude all records in a report, with a formula result of 0 or >0?

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

thanks, Sanjay - been there done that.
basically, I need to show the net result for the open seats available,which will be the same as the max seats offered.
I tried the following:
If Isnull{WAITING_LISTS.no_emp}
then {@Open}={SCHEDULES.qy_sch_max}
else
{SCHEDULES.qy_sch_max} - Count ({WAITING_LISTS.no_emp}, {SCHEDULES.cd_crs})
and got a message "Missing the then".  (@Open is the formula title)

  • Change the Namespace and Root Node Name

    Hi,
    I have following xml :
    <ns2:Students xmlns:ns2="http://MyProject.CommonSchema">
        <ns2:Student>
          <HeaderSegment>
            <FName>AA</FName>
            <LName>AA</LName>
          </HeaderSegment>
        </ns2:Student>
      </ns2:Students>
    Now I want to change the root node name and namespace name.
    I want the following output:
    <ns2:MyStudents xmlns:ns2="http://MyProject.MySchema">
        <ns2:Student>
          <HeaderSegment>
            <FName>AA</FName>
            <LName>AA</LName>
          </HeaderSegment>
        </ns2:Student>
      </ns2:Students>
    I searched on the google but not found any right solution.
    Any kind of help would be appreciated.
    Prakash

    You should have told us that you wanted an XmlDocument. Anyway, you could use a XDocument to create and modify the XML and then return an XmlDocument like this:
    public static XmlDocument CreateXmlDocument(string xml) {
    //load the XML data
    XDocument doc = XDocument.Parse(xml); //or use XDocument.Load to load a file
    //change from old to the new namespace:
    XNamespace newNs = "http://MyProject.MySchema";
    var elemens = doc.Root.Elements();
    foreach (var elem in doc.Root.Elements()) {
    if (elem.Name.Namespace != string.Empty) {
    elem.Name = newNs + elem.Name.LocalName;
    //remove old namespace attribute:
    XAttribute atr = doc.Root.Attributes(XNamespace.Xmlns + "ns2").FirstOrDefault();
    if (atr != null)
    atr.Remove();
    //add the new namespace
    doc.Root.Add(new XAttribute(XNamespace.Xmlns + "ns2", newNs));
    doc.Root.Name = newNs + "Students2";
    string newXml = doc.ToString();
    XmlDocument xmlDocument = new XmlDocument();
    using (var xmlReader = doc.CreateReader()) {
    xmlDocument.Load(xmlReader);
    return xmlDocument;
    Usage:
    string xml = "<ns2:Students xmlns:ns2=\"http://MyProject.CommonSchema\"><ns2:Student><HeaderSegment><FName>AA</FName><LName>AA</LName></HeaderSegment></ns2:Student></ns2:Students>";
    XmLDocument doc = CreateXmlDocument(xml);
    Please remember to close your threads by marking all helpful posts as answer and then start a new thread if you have a new question.

  • How to add an icon to a node in network graphics?

    Hi all,
      Do you know how to add an icon (any SAP' icon) to a node in network graphics?
    Just like a tree can have a leaf with icon (for example, a person icon, a plant icon), can a node in network graphics have an icon also?  and how to implement in network graphics?
      I already studied t-code gral: NETZOCX1
    NETZOCX2
    NETZ_BO1
    NETZ_BO2
    NETZ_BO3
    But no actual output.
    It seems using node type in network graphics can help to determine different icons, could you give some suggestion or examples?
    Thanks a lot!!

    Hi,
      Thanks for you link about SAP Graphics Framework. It seems not very useful in our case.
      Since we are using Control Framework now, there is Tree and Networks in it. Can a node in a network have an icon (such as person icon, plant icon)? I know a leaf in a tree in Control Framework can have an icon.
      Anybody has comments or suggestion?
      Thanks!

  • How to know which leaf node i click and how to add a listener to each node?

    hi! hello to all members, i have a problem i know how to create a listener, but i dont know how to add a listener to each leaf node. here is the scenario i want to do, i have a JTree where theres a topic that you can select on each leaf node, so when the user click the specific topic it will open another JFrame,which i dont know how to do it also, that its! the next problem will be how do i know which leaf node i select, so that i can open a right topic before the JFrame will open?please, i am very need this to solve quickly as possible. thanks again to all members.

    What you have to do is to add a mouse listener on your JTree. Try something like this:
    tree.addMouseListener(new java.awt.event.MouseAdapter() {
             public void mouseReleased(MouseEvent e) {
                tree_mouseReleased(e);
    private void tree_mouseReleased(MouseEvent e) {
          TreePath selPath = tree.getSelectionPath();
          // Check If the click is the Right Click
          if (e.isPopupTrigger() == true) {
          // This is your right Click
           else {
                     // This is your Left Click
    }Your other problem: Set the userObject on nodes and on left click compare it with your object, if it matches, display the appropriate file. Alternatively, if your nodes are unique, you can match the names to open the file.
    Hope this Helps
    Regard
    Raheel

  • How to add muliple namespace in XMP schema?

    Dear All,
    I was wondering how to add more than one namespace in a schema. I have seen that some schemas in XMP have more than one namespace, e.g.,
    <rdf:Description rdf:about=""
                xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/"
                xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/"
                xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#">
    When I register a namespace using IMetaDataAccess:RegisterNamespace, say http://ns.abc.com, I get a schema as follows:
    <rdf:Description rdf:about=""
                xmlns:abc="http://ns.abc.com">
    How to add an another namespace, say http://ns.xyz.com, to the same schema to get as follows:
    <rdf:Description rdf:about=""
                xmlns:abc="http://ns.abc.com"
                xmlns:xyz="http://ns.xyz.com">

    Dear All,
    I was wondering how to add more than one namespace in a schema. I have seen that some schemas in XMP have more than one namespace, e.g.,
    <rdf:Description rdf:about=""
                xmlns:xmpTPg="http://ns.adobe.com/xap/1.0/t/pg/"
                xmlns:xmpG="http://ns.adobe.com/xap/1.0/g/"
                xmlns:stFnt="http://ns.adobe.com/xap/1.0/sType/Font#">
    When I register a namespace using IMetaDataAccess:RegisterNamespace, say http://ns.abc.com, I get a schema as follows:
    <rdf:Description rdf:about=""
                xmlns:abc="http://ns.abc.com">
    How to add an another namespace, say http://ns.xyz.com, to the same schema to get as follows:
    <rdf:Description rdf:about=""
                xmlns:abc="http://ns.abc.com"
                xmlns:xyz="http://ns.xyz.com">

  • How to add all photos in one Album

    Hi,
    I bought iMovie yesterday and I have albums in photos application. I want to add all photos in one album to iMovie.
    Thanks
    Best Regards

    They can only be added one at a time, a bit annoying but that's the way.
    Add photos
    With your project open, scroll the project timeline so that the playhead (the red vertical line) appears over the location where you want to add the photo; you can move the photo later if you want.
    If the playhead is resting over a video clip, the photo is added before or after the end of the clip closest to the playhead.
    Tap the Media Library button , and then tap the Photos button at the bottom of the screen.
    Tap Camera Roll, Photo Library, or an album, and then tap the photo you want to add.
    To preview a photo before adding it, tap and hold the photo in the Photo browser until it appears in the pop-up viewer.
    The added photo appears for a duration of 3 to 6 seconds, depending on the length of the transitions that appear before and after the photo, but you canchange this duration.
    A Ken Burns effect is also applied to the image, which means the camera appears to sweep across and zoom in on the photo. You can adjust this effect. Go to Edit a photo to learn how.
    You can ask Apple to fix this in the next update:
    http://www.apple.com/feedback/imovie_ios.html

  • How to hide messagetextinput item on root node in HGRID

    Hi,
    I have added one messagetextinput item in HGRID.
    But it is showing 3 items(one for root node, 2 for the actual items) when there are 2 rows in master node.
    +Employee          |________|
    -101 |________|
    -102 |________|
    I want to hide the item at root node(i.e. for employee.)
    I am working on seeded page, not the custom page.
    Can someone help me..
    --Parag                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Add a switcher in Hgrid, Create 2 items in switcher. One is input type and other is styled text. Switch the values of switcher based on condition from VO.
    For detailed help, feel free to mail me at [email protected]
    OAHGridBean hGridBean =
    (OAHGridBean)webBean.findChildRecursive("QotLinesHGridRN");
    if (hGridBean != null) {
    OASwitcherBean switcherbean =
    (OASwitcherBean)createWebBean(pageContext, SWITCHER_BEAN, null,
    "DellPriceSwitcher");
    switcherbean.setLabel("Dell Auth. Unit Price");
    switcherbean.setViewAttributeName("Attribute20");
    switcherbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    hGridBean.addIndexedChild(9, switcherbean);
    //Add dell auth unit price text input item
    OAMessageTextInputBean inputbean =
    (OAMessageTextInputBean)createWebBean(pageContext,
    MESSAGE_TEXT_INPUT_BEAN,
    null,
    "DellAuthPriceinp");
    OAMessageStyledTextBean styledbean =
    (OAMessageStyledTextBean)createWebBean(pageContext,
    MESSAGE_STYLED_TEXT_BEAN,
    null,
    "DellAuthPricestyled");
    inputbean.setReadOnly(false);
    inputbean.setViewAttributeName("Attribute1");
    inputbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    styledbean.setViewAttributeName("Attribute1");
    styledbean.setViewUsageName("QuoteLinesLevel70VO1Obj");
    inputbean.setColumns(5);
    switcherbean.setNamedChild("DellAuthPriceinp", inputbean);
    switcherbean.setNamedChild("DellAuthPricestyled", styledbean);

  • How to add all music inside a folder to a playlist...

    Hi,
    I have Nokia e63. There is a simple thing I wanted to ask. I wish to add all songs in a folder to a playlist. How to do that? When I select all songs in a folder inside the Memory Card, there is no option to add music to playlist.
    I basically add music folders from my computer to phone's memory card. Now each of these folder contains music of different types. In windows I can easily music files to playlist by selecting all music files and putting them to a playlist.
    When I refresh the music player in my phone, all sound files get accumulated in the "All songs" group, including recorded conversations and all songs genres, which is very frustrating.
    Is there a way out?

    Hello, I also need the answer of this exact question. I have nokia 5130 Express Music but the answer to the original poster will also apply to me. The link provided in the previous post doesn't answer the question of the original asker. Let me ask it again:
    I want to create playlists out of the folders not by selecting them one by one and adding them to the desired playlist. Please do not suggest OVI Music player because that piece of junk just doesn't detect my phone no matter what mode I connect my phone with. It is detected fine in the PC suite though. Is there any harder way of doing that? By harder way I mean what playlist formats are supported by 5130 ? and is there any third party application that can create a (.pla) extension playlist. I need help. Thanks is advance.

  • How to add all value of the one column ?

    Hi All,
    i created my UI project based on Human task flow.The jspx page contains one table.In table we have one column Amount. i want to add all row value of column amount which i used for some custom validation.
    Because this is automatically generated project so we do not have any VO.and also i saw my UI af table is pointing to one xml file where all the attribute are present.
    So please let me know how can achieve my validation scenario.
    Thanks

    Hi,
    the table is bound to a tree binding in the PageDef file. This tree binding is bound to an iterator. You can access this iterator from Java
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindings = bctx.getCurrentBindingEntries();
    DCIteratorBinding iter = (DCIteratorBinding) iter.get("Name of the iterator");
    You can now iterate over the iterator and for each Row you call row.getAttribute("Amount") to the amount value
    Frank

  • Convertion of String to XML node using Xquery transformation in OSB

    How to convert string to XML node elementusing a built in function using Xquery transformation in OSB?

    check this out - http://www.javamonamour.org/2011/06/fn-beainlinedxml.html
    if in SOA (BPEL & Mediator) you can use oraext:parseXML.
    you should thoroughly analyse where to implement your requirement as some good practices advise to implement more complex logic in SOA and leave OSB to only connect to the services' endpoints.
    Hope this helps,
    A.

  • Hi how to add new folders under root for jsp in tomcat4.1.18

    hi,
    previsously i used tomcat3.3 and tomcat4.1.12 run sucessfully.
    now i downloed jakartha_tomcat4.1.18,
    i am running sample succesfuly direcly under root.
    now i want my some jsp appilcationes to run under xyz,pqr folders
    here my jsp files are abc.jsp,fgh.jsp while running file url like this
    http://localhost:8080/xyz/abc.jsp
    http://localhost:8080/pqr/fgh.jsp
    while running url server not locate the files.
    where i add these xyz and pqr folders in server.xml.
    here my server.xml like this any one can modify this
    <!-- Example Server Configuration File -->
    <!-- Note that component elements are nested corresponding to their
    parent-child relationships with each other -->
    <!-- A "Server" is a singleton element that represents the entire JVM,
    which may contain one or more "Service" instances. The Server
    listens for a shutdown command on the indicated port.
    Note: A "Server" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <Server port="8005" shutdown="SHUTDOWN" debug="0">
    <!-- Comment these entries out to disable JMX MBeans support -->
    <!-- You may also configure custom components (e.g. Valves/Realms) by
    including your own mbean-descriptor file(s), and setting the
    "descriptors" attribute to point to a ';' seperated list of paths
    (in the ClassLoader sense) of files to add to the default list.
    e.g. descriptors="/com/myfirm/mypackage/mbean-descriptor.xml"
    -->
    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>
    <!-- Global JNDI resources -->
    <GlobalNamingResources>
    <!-- Test entry for demonstration purposes -->
    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>
    <!-- Editable user database that can also be used by
    UserDatabaseRealm to authenticate users -->
    <Resource name="UserDatabase" auth="Container"
    type="org.apache.catalina.UserDatabase"
    description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
    <parameter>
    <name>factory</name>
    <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
    </parameter>
    <parameter>
    <name>pathname</name>
    <value>conf/tomcat-users.xml</value>
    </parameter>
    </ResourceParams>
    </GlobalNamingResources>
    <!-- A "Service" is a collection of one or more "Connectors" that share
    a single "Container" (and therefore the web applications visible
    within that Container). Normally, that Container is an "Engine",
    but this is not required.
    Note: A "Service" is not itself a "Container", so you may not
    define subcomponents such as "Valves" or "Loggers" at this level.
    -->
    <!-- Define the Tomcat Stand-Alone Service -->
    <Service name="Tomcat-Standalone">
    <!-- A "Connector" represents an endpoint by which requests are received
    and responses are returned. Each Connector passes requests on to the
    associated "Container" (normally an Engine) for processing.
    By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
    You can also enable an SSL HTTP/1.1 Connector on port 8443 by
    following the instructions below and uncommenting the second Connector
    entry. SSL support requires the following steps (see the SSL Config
    HOWTO in the Tomcat 4.0 documentation bundle for more detailed
    instructions):
    * Download and install JSSE 1.0.2 or later, and put the JAR files
    into "$JAVA_HOME/jre/lib/ext".
    * Execute:
    %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows)
    $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix)
    with a password value of "changeit" for both the certificate and
    the keystore itself.
    By default, DNS lookups are enabled when a web application calls
    request.getRemoteHost(). This can have an adverse impact on
    performance, so you can disable it by setting the
    "enableLookups" attribute to "false". When DNS lookups are disabled,
    request.getRemoteHost() will return the String version of the
    IP address of the remote client.
    -->
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="20000"
    useURIValidationHack="false" disableUploadTimeout="true" />
    <!-- Note : To disable connection timeouts, set connectionTimeout value
    to -1 -->
    <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8443" minProcessors="5" maxProcessors="75"
    enableLookups="true"
         acceptCount="100" debug="0" scheme="https" secure="true"
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
    clientAuth="false" protocol="TLS" />
    </Connector>
    -->
    <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8009" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" connectionTimeout="0"
    useURIValidationHack="false"
    protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <!--
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
    port="8009" minProcessors="5" maxProcessors="75"
    acceptCount="10" debug="0"/>
    -->
    <!-- Define a Proxied HTTP/1.1 Connector on port 8082 -->
    <!-- See proxy documentation for more information about using this. -->
    <!--
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8082" minProcessors="5" maxProcessors="75"
    enableLookups="true"
    acceptCount="100" debug="0" connectionTimeout="20000"
    proxyPort="80" useURIValidationHack="false"
    disableUploadTimeout="true" />
    -->
    <!-- Define a non-SSL legacy HTTP/1.1 Test Connector on port 8083 -->
    <!--
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
    port="8083" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- Define a non-SSL HTTP/1.0 Test Connector on port 8084 -->
    <!--
    <Connector className="org.apache.catalina.connector.http10.HttpConnector"
    port="8084" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="10" debug="0" />
    -->
    <!-- An Engine represents the entry point (within Catalina) that processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->
    <!-- You should set jvmRoute to support load-balancing via JK/JK2 ie :
    <Engine name="Standalone" defaultHost="localhost" debug="0" jmvRoute="jvm1">
    -->
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">
    <!-- The request dumper valve dumps useful debugging information about
    the request headers and cookies that were received, and the response
    headers and cookies that were sent, for all requests received by
    this instance of Tomcat. If you care only about requests to a
    particular virtual host, or a particular application, nest this
    element inside the corresponding <Host> or <Context> entry instead.
    For a similar mechanism that is portable to all Servlet 2.3
    containers, check out the "RequestDumperFilter" Filter in the
    example application (the source for this filter may be found in
    "$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters").
    Request dumping is disabled by default. Uncomment the following
    element to enable it. -->
    <!--
    <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
    -->
    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>
    <!-- Because this Realm is here, an instance will be shared globally -->
    <!-- This Realm uses the UserDatabase configured in the global JNDI
    resources under the key "UserDatabase". Any edits
    that are performed against this UserDatabase are immediately
    available for use by the Realm. -->
    <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
    debug="0" resourceName="UserDatabase"/>
    <!-- Comment out the old realm but leave here for now in case we
    need to go back quickly -->
    <!--
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    -->
    <!-- Replace the above Realm with one of the following to get a Realm
    stored in a database and accessed via JDBC -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="org.gjt.mm.mysql.Driver"
    connectionURL="jdbc:mysql://localhost/authority"
    connectionName="test" connectionPassword="test"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="oracle.jdbc.driver.OracleDriver"
    connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
    connectionName="scott" connectionPassword="tiger"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!--
    <Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
    driverName="sun.jdbc.odbc.JdbcOdbcDriver"
    connectionURL="jdbc:odbc:CATALINA"
    userTable="users" userNameCol="user_name" userCredCol="user_pass"
    userRoleTable="user_roles" roleNameCol="role_name" />
    -->
    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">
    <!-- Normally, users must authenticate themselves to each web app
    individually. Uncomment the following entry if you would like
    a user to be authenticated the first time they encounter a
    resource protected by a security constraint, and then have that
    user identity maintained across all web applications contained
    in this virtual host. -->
    <!--
    <Valve className="org.apache.catalina.authenticator.SingleSignOn"
    debug="0"/>
    -->
    <!-- Access log processes all requests for this virtual host. By
    default, log files are created in the "logs" directory relative to
    $CATALINA_HOME. If you wish, you can specify a different
    directory with the "directory" attribute. Specify either a relative
    (to $CATALINA_HOME) or absolute path to the desired directory.
    -->
    <!--
    <Valve className="org.apache.catalina.valves.AccessLogValve"
    directory="logs" prefix="localhost_access_log." suffix=".txt"
    pattern="common" resolveHosts="false"/>
    -->
    <!-- Logger shared by all Contexts related to this virtual host. By
    default (when using FileLogger), log files are created in the "logs"
    directory relative to $CATALINA_HOME. If you wish, you can specify
    a different directory with the "directory" attribute. Specify either a
    relative (to $CATALINA_HOME) or absolute path to the desired
    directory.-->
    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
         timestamp="true"/>
    <!-- Define properties for each web application. This is only needed
    if you want to set non-default properties, or have web application
    document roots in places other than the virtual host's appBase
    directory. -->
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_examples_log." suffix=".txt"
         timestamp="true"/>
    <Ejb name="ejb/EmplRecord" type="Entity"
    home="com.wombat.empl.EmployeeRecordHome"
    remote="com.wombat.empl.EmployeeRecord"/>
    <!-- If you wanted the examples app to be able to edit the
    user database, you would uncomment the following entry.
    Of course, you would want to enable security on the
    application as well, so this is not done by default!
    The database object could be accessed like this:
    Context initCtx = new InitialContext();
    Context envCtx = (Context) initCtx.lookup("java:comp/env");
    UserDatabase database =
    (UserDatabase) envCtx.lookup("userDatabase");
    -->
    <!--
    <ResourceLink name="userDatabase" global="UserDatabase"
    type="org.apache.catalina.UserDatabase"/>
    -->
    <!-- PersistentManager: Uncomment the section below to test Persistent
              Sessions.
    saveOnRestart: If true, all active sessions will be saved
    to the Store when Catalina is shutdown, regardless of
    other settings. All Sessions found in the Store will be
    loaded on startup. Sessions past their expiration are
    ignored in both cases.
    maxActiveSessions: If 0 or greater, having too many active
    sessions will result in some being swapped out. minIdleSwap
    limits this. -1 or 0 means unlimited sessions are allowed.
    If it is not possible to swap sessions new sessions will
    be rejected.
    This avoids thrashing when the site is highly active.
    minIdleSwap: Sessions must be idle for at least this long
    (in seconds) before they will be swapped out due to
    activity.
    0 means sessions will almost always be swapped out after
    use - this will be noticeably slow for your users.
    maxIdleSwap: Sessions will be swapped out if idle for this
    long (in seconds). If minIdleSwap is higher, then it will
    override this. This isn't exact: it is checked periodically.
    -1 means sessions won't be swapped out for this reason,
    although they may be swapped out for maxActiveSessions.
    If set to >= 0, guarantees that all sessions found in the
    Store will be loaded on startup.
    maxIdleBackup: Sessions will be backed up (saved to the Store,
    but left in active memory) if idle for this long (in seconds),
    and all sessions found in the Store will be loaded on startup.
    If set to -1 sessions will not be backed up, 0 means they
    should be backed up shortly after being used.
    To clear sessions from the Store, set maxActiveSessions, maxIdleSwap,
    and minIdleBackup all to -1, saveOnRestart to false, then restart
    Catalina.
    -->
              <!--
    <Manager className="org.apache.catalina.session.PersistentManager"
    debug="0"
    saveOnRestart="true"
    maxActiveSessions="-1"
    minIdleSwap="-1"
    maxIdleSwap="-1"
    maxIdleBackup="-1">
    <Store className="org.apache.catalina.session.FileStore"/>
    </Manager>
              -->
    <Environment name="maxExemptions" type="java.lang.Integer"
    value="15"/>
    <Parameter name="context.param.name" value="context.param.value"
    override="false"/>
    <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
    type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/EmployeeAppDb">
    <parameter><name>username</name><value>sa</value></parameter>
    <parameter><name>password</name><value></value></parameter>
    <parameter><name>driverClassName</name>
    <value>org.hsql.jdbcDriver</value></parameter>
    <parameter><name>url</name>
    <value>jdbc:HypersonicSQL:database</value></parameter>
    </ResourceParams>
    <Resource name="mail/Session" auth="Container"
    type="javax.mail.Session"/>
    <ResourceParams name="mail/Session">
    <parameter>
    <name>mail.smtp.host</name>
    <value>localhost</value>
    </parameter>
    </ResourceParams>
    <ResourceLink name="linkToGlobalResource"
    global="simpleValue"
    type="java.lang.Integer"/>
    </Context>
    </Host>
    </Engine>
    </Service>
    <!-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
    as its servlet container. Please read the README.txt file coming with
    the WebApp Module distribution on how to build it.
    (Or check out the "jakarta-tomcat-connectors/webapp" CVS repository)
    To configure the Apache side, you must ensure that you have the
    "ServerName" and "Port" directives defined in "httpd.conf". Then,
    lines like these to the bottom of your "httpd.conf" file:
    LoadModule webapp_module libexec/mod_webapp.so
    WebAppConnection warpConnection warp localhost:8008
    WebAppDeploy examples warpConnection /examples/
    The next time you restart Apache (after restarting Tomcat, if needed)
    the connection will be established, and all applications you make
    visible via "WebAppDeploy" directives can be accessed through Apache.
    -->
    <!-- Define an Apache-Connector Service -->
    <!--
    <Service name="Tomcat-Apache">
    <Connector className="org.apache.catalina.connector.warp.WarpConnector"
    port="8008" minProcessors="5" maxProcessors="75"
    enableLookups="true" appBase="webapps"
    acceptCount="10" debug="0"/>
    <Engine className="org.apache.catalina.connector.warp.WarpEngine"
    name="Apache" debug="0">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="apache_log." suffix=".txt"
    timestamp="true"/>
    <Realm className="org.apache.catalina.realm.MemoryRealm" />
    </Engine>
    </Service>
    -->
    </Server>
    ==========
    any one may modify above one
    thanks
    pullareddyj

    As the server.xml is big enough, I took the minimum portion of it. Hope u can proceed with it.
    <!-- Tomcat Root Context -->
    <Context path="" docBase="ROOT" debug="0"/>
    <!-- New contexts -->
    <Context path="/xyz" docBase="pathTo_xyz" debug="0" crossContext="true"/>
    <Context path="/pqr" docBase="pathTo_pqr" debug="0" crossContext="true"/>
    <!-- Tomcat Examples Context -->
    <Context path="/examples" docBase="examples" debug="0"
    reloadable="true" crossContext="true">
    You should also provide a WEB-INF folder under pqr or xyz folder.
    You should also provide a web.xml file under each WEB-INF folder.
    The minimal web.xml is
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtd/web-app_2_3.dtd">
    <web-app>
    </web-app>
    That's it. Try it out. Hope it is OK.
    Hafizur Rahman
    SCJP

  • How to pass all values from one node element to created node element?

    Hi
    I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
    How do we rectify this problem!!!
    Thanks in Advance
    Srikant

    Hi Anil
    I've created the node named: TableNode
    and the name of the node from which i want to get the data is : Li_Required_Node
    the Node Structure is
    Context
      |_ Zs_Quantity_Input
         |_Output
           |_Node_Required_Node
              |_Schddt
      |_TableNode
        |_CmpDate
    The Schddt has some 7 values
    The code Snippet is as follows:
    IPublicPricesComp.ITableNodeElement nodeElement;
    IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
    int counter3Max = wdContext.ILi_Required_Node().size();
    for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
    nodeElement = wdContext.createTableNodeElement();
                             scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
    nodeElement.setCmpDate(scheduleElement.getSchddt());
    wdContext.nodeTableNode().addElement(nodeElement);               
    On writing the above code and then binding the node to a table column only one value getting displayed
    Where can be the error?
    Thanks in Advance
    Srikant

  • How to add all site activity to site Newsfeed

    Hi,
    After extensive search and research (and a number of dead ends) I am coming up empty handed on any info re: how to expand the functionality of Newsfeed within Sharepoint.
    My goal is to create a Newsfeed that includes more activity than just what a user has explicitly followed.  Optimally, I would like to have a site Newsfeed that includes entries for all activity on the site.  Users could then directly access the
    item that was added, edited, or commented on to view all the details and add their own contributions.  This would look very similar to a Basecamp style project feed that includes all ongoing information on the project.
    Eventually I would like users to be able to sort the activity by activity type (e.g. view all document related activity, or all activity pertaining to a particular list) but a master feed would be a great place to start.
    This blog post is the closest I've found to what I'd like to do, but the author did not finish the series.
    http://styledpoint.com/blog/sharepoint-2013-and-the-missing-web-activity-stream-part-01/
    Does anyone here either a) know how to modify a site Newsfeed to operate in this way or b) know of any tutorials describing how?
    All help is greatly appreciated.
    Brock

    Hi Brock,
    According to your description, my understanding is that you want to show the latest updates or activities regarding your SharePoint site.
    I recommend to download the Site Activity Stream web part to achieve this goal.
    Site Activity Stream provides a comprehensive overview of all the latest updates regarding your SharePoint Sites and the sites you are following. For this reason you get an instant update on all important changes you are involved in.
    More information are provided in the links below:
    http://www.queport.com/site-activity-stream/
    http://office.microsoft.com/en-us/store/site-activity-stream-WA104141088.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Maybe you are looking for