XSQL and namespaces

I can declare a namespace at the top of an XSQL file and I can set a namespace prefix for ROWSET and ROW tag names but I cannot return namespace-prefixed elements from a SQL query due to the invalidity of the colon character.
Can someone please prove there is a way to add namespace prefixes to the result of a query in an XSQL page?!
If not might I make a suggestion for future releases of this servlet? ... a new attribute for the query tag that allows one to set a namespace prefix for all returned elements.
Thanks,
Cristian Southall

You could just submit query to DB. Get the result and print out the html using Servlet.
Here is part of example code for you to reference:
// Query the faq from xdkfaq table
stmt = conn.createStatement();
ResultSet resultSet=stmt.executeQuery(query);
ResultSetMetaData resultsMetaData = resultSet.getMetaData();
int colnum = resultsMetaData.getColumnCount();
while(resultSet.next())
m_cat = resultSet.getString(1);
m_que = resultSet.getString(2);
m_ans = resultSet.getString(3);
m_key = resultSet.getString(4);
m_lan = resultSet.getString(5);
m_note= resultSet.getString(8);
m_quede=resultSet.getString(9);
m_diff=resultSet.getString(10);
//close ResultSet
resultSet.close();
out.println("</select>\n"+
"</p>\n"+
"<p>Question:</p>\n"+
"<p>\n"+
"<textarea
name=\"question\" rows=\"3\" cols=\"80\">"+
m_que+"</textarea>\n"
....

Similar Messages

  • Soap sender adpater issue missing sender interface and namespace in the msg

    Hi Expert,
    I got a problem when try to using soap sender adapter.
    Here is the sceanrio:
    Http web service client call ---PI soap sender adapter -some routing data-business system inbound.
    Sytem information:
    SAP_ABA     700     0019     SAPKA70019     Cross-Application Component
    SAP_BASIS     700     0019     SAPKB70019     SAP Basis Component
    PI_BASIS     2005_1_700     0019     SAPKIPYJ7J     PI_BASIS 2005_1_700
    ST-PI     2008_1_700     0001     SAPKITLRD1     SAP Solution Tools Plug-In
    SAP_BW     700     0021     SAPKW70021     SAP NetWeaver BI 7.0
    ST-A/PI     01L_BCO700     0000          -     Servicetools for other App./Netweaver 04
    Here is my problem. I use soapui trigger a test msg to PI system. But in the sxmb_moni, only sender service is there.
    The sender interface and sender namespace is missing. And the msg has error called: :INTERFACE_REGISTRATION_ERROR.
    Which means I do not have a inbound interface to process the msg.
    But I suppose to redirect the msg to business system.
    Here is the configuration:
    reciever determination: soap sender service, soap outbound interface, soap interface namespace --> reciever business sytem.
    Interface ditermination: soap sender service, soap interface --> receiver interface, receiver namespace.
    Sender agreement: soap service, soap itnerface --- soap communication channel
    receiver agreement, soap service---> receiver sevice, receiver interface, reciever namespace  and reciever cummunication channel
    define of soap sender adapter:
    soap sernder, with use encoded header and use query string checked and qos as exactly once.
    Anyone has any idea here? Many thanks! And most strange thing is yesterday it works and today it failed.
    Please kindly help here.
    Thanks a lot,
    Leon

    Hi guys,
    thanks for the input.
    Hi Sven,
    I have input default interface and namespace.
    Hi sivasakthi,
    Regarding mistype, it may happen, I will do it again right away.
    And the URL is generated by the wsdl toolkit in the directory.
    I marked use encoded header and query string in the communication channel.
    I will generate the wsdl again and test it again.
    Regarding URL(endpoint of web service):
    http://hostname:50000/XISOAPAdapter/MessageServlet?channel=:AGSSAL_SOAP:AGSSAL_SOAP_CC&version=3.0&Sender.Service=AGSSAL_SOAP&Interface=urn:a1s_saplivelinkcontent.service.sap.com^MI_O_AS_DELIVERNOTIFY_SOAP
    Again thanks for you guys help.
    Best regards,
    Leon

  • Deleting Message Type name and namespace tag from XML payload

    Hi Gurus,
    Need help. My payload looks like this
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:MT_O_sss xmlns:ns1="http://sap.com/xi/tm">
    - <Job>
       <Field name="xxxx" value="" />
      <Field name="xxx" value="" />
      <Field name="xxx" value="" />
       </Job>
      </ns1:MT_O_sss>
    But The soap webservice is expecting it in
    <?xml version="1.0" encoding="utf-8" ?>
    - <Job>
       <Field name="xxxx" value="" />
      <Field name="xxx" value="" />
      <Field name="xxx" value="" />
       </Job>
    I have to remove the message type name and namespace tag.
    So how can I achieve this. I am sending this payload using a Receiver Soap Adapter. Please help. I am kind of stuck.

    hi,
    you have to simply add one module in your communication channel
    that is XMLAnonymizerBean
    you can refer below for help:
    Remove namespace prefix or change XML encoding with the XMLAnonymizerBean
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    hope it helps.
    regards,
    ujjwal kumar

  • Need information about interfaces and namespaces in actionscript 3.0

    Hi,
    I need information about actionscript interfaces and
    namespaces, I'm preparing for ACE for Flash CS3 and I need to learn
    about this subjects and I can not find resources or simple examples
    that make these subjects understandable.
    Anybody can help me!
    Thanks a lot.

    Interfaces (cont.)
    Perhaps the most useful feature of interfaces is that you not
    only can define the data type but also method signature of the
    class that implements this interface. In other words, interface can
    define and enforce what methods class MUST implement. This is very
    useful when classes are branching in packages and team of
    developers works on a large application among others.
    The general syntax for an Interface with method signatures is
    written the following way:
    package{
    public interface InterfaceName {
    // here we specify the methods that will heave to be
    implemented
    function method1 (var1:dataType,
    var2:datType,…):returnType;
    function method2 (var1:dataType,
    var2:datType,…):returnType;
    To the previous example:
    package{
    public interface IQualified {
    function method1 ():void;
    function method2 ():int;
    Let’s write a class that implements it.
    If I just write:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    public function ClassOne(){}
    I will get a compilation error that states that I did not
    implement required by the interface methods.
    Now let’s implement only one method:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    public function ClassOne(){}
    I will get the error again because I implemented only one out
    of two required methods.
    Now let’s implement all of them:
    package{
    public class ClassOne extends DisplayObject implements
    IQualified {
    private function method1():void{
    return;
    private function method2():int{
    return 4;
    public function ClassOne(){}
    Now everything works OK.
    Now let’s screw with return datatypes. I attempt to
    return String instead of void in method1 in ClassOne:
    private function method1():String{
    return “blah”;
    I am getting an error again – Interface requires that
    the method1 returns void.
    Now let’s attempt to pass something into the method1:
    private function method1(obj:MovieClip):void{
    return;
    Oops! An error again. Interface specified that the function
    doesn’t accept any parameters.
    Now rewrite the interface:
    package{
    public interface IQualified {
    function method1 (obj:MovieClip):void;
    function method2 ():int;
    Now compiler stops complaining.
    But, if we revert the class back to:
    private function method1():void{
    return;
    compiler starts complaining again because we don’t pass
    any parameters into the function.
    The point is that interface is sort of a set of rules. In a
    simple language, if it is stated:
    public class ClassOne implements IQualified
    it says: “I, class ClassOne, pledge to abide by all the
    rules that IQualified has established and I will not function
    correctly if I fail to do so in any way. (IMPORTANT) I can do more,
    of course, but NOT LESS.”
    Of course the class that implements an interface can have
    more that number of methods the corresponding interface requires
    – but never less.
    MORE means that in addition to any number of functions it can
    implement as many interfaces as it is desired.
    For instance, I have three interfaces:
    package{
    public interface InterfaceOne {
    function method1 ():void;
    function method2 ():int;
    package{
    public interface InterfaceTwo {
    function method3 ():void;
    package{
    public interface InterfaceThree{
    function method4 ():void;
    If our class promises to implement all three interface it
    must have all four classes in it’s signature:
    package{
    public class ClassOne extends DisplayObject implements
    InterfaceOne, InterfaceTwi, InterfaceThree{
    private function method1():void{return;}
    private function method2():int{return 4;}
    private function method3():void{return;}
    private function method4():void{return;}
    public function ClassOne(){}
    Hope it helps.

  • Private dictionaries and Namespaces

    Private dictionaries and Namespaces
    We ran into an issue with some email templates in converting from RC2006 to RC2008.3 where Namespace values from Private service dictionaries were not populating correctly in RC2008.
    In the upgrade process from RC2006, any private dictionaries are converted to actual dictionaries. They are created in the Dictionary Group UPGD: PRIVATE DICTIONARIES and the dictionary name is based on the service name: PRIV_ServiceA.
    What I found as we were testing is that the Namespace parameters in Email templates (and, presumably, conditional statements and other places) no longer worked.
    The reason is that the Namespace Parameter for a private dictionary did not use a dictionary name, e.g. #SERVICE.DATA.Field1#. In order for the RC2008 version to work, we had to add dictionary references:  #SERVICE.DATA.PRIV_ServiceA.Field1#.

    Hey M.VAL,
    Thanks for the question. If your dictionary is not available after updating your device, you may need to redownload it:
    iOS: Dictionary isn't available after updating to the latest version of iOS
    http://support.apple.com/kb/TS5238
    Thanks,
    Matt M.

  • The system and namespace change option

    Hi Experts,
    I want to integrate a certain SAP Source System within RSA1. After submitting the correct settings for Background User and RFC connection the process leads me to the Source System where I logon with an User which has authorizations in SM59. From there on (the RFC Connection backwards is already defined) I got asked whether I want to user/check/cancel this existing RFC Connection. I click on use, wait for a while and then the error (please see below) appears.
    When proceeding with the steps mentioned in the error message (transaction SE03, Administration node, ...) I cannot find any IDOC Object ZSSA009. I think maybe it's related to some software component or somenthing like that which should be set as "modifiable" but I don't know which....
    Any Ideas on this?
    Many thanks in advance.
    Best regards
    Tobias
    Error Message:
    Message no. TO128
    Diagnosis
    The system and namespace change option set for this SAP System does not allow any changes to be made to object IDOC ZSSA009.
    System Response
    Editing is terminated, the object can only be displayed.
    Procedure
    If you want to edit the object IDOC ZSSA009 in this SAP System, have your system administator set the SAP System to "modifiable" for this object.
    This can affect the modifiability of the namespace &1 or the namespaces that correspond to the pattern &1, as well as the global setting of the system change option.
    The system change option is set using the Transport Organizer tools (Transaction SE03). Expand the Administration node and execute the program Set system change option. The options are described there.

    HI,
    Attached link may help you in configuring the source system.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/908836c3-7f97-2b10-4cb8-e6790361c152
    Thanks,
    Arun

  • XSQL and Packaged Procedure

    I've been reading thru the postings for XSQL and read a couple of references on how to get an out variable from a stored procedure. I read this thread from 3/31:
    http://technet.oracle.com:89/ubb/Forum11/HTML/001444.html
    Anyway, I followed the advice and I get the following error message:
    ORA-06571: Function CHECK_USER does not guarantee not to update database
    Did some research and found that I would need to create a PRAGMA in my function, which would need to be packaged. I did that, but the function would not compile because it would not fulfil the pragma. Below is the procedure I am trying to run, the wrapper function, and the XSQL source. Any ideas?
    Thanks
    Procedure
    Procedure check_user( inSiteID varchar2,
    v_userid number default null,
    inExtID varchar2 default null,
    v_return out varchar2)
    AS
    ParamIsNull EXCEPTION;
    invalid_data EXCEPTION;
    v_errmsg varchar2(200);
    v_count number := 0;
    BEGIN
    If v_userid Is Null AND inExtID Is Null Then Raise ParamIsNull; End If;
    If v_userid Is Not Null AND inExtID Is Not Null Then Raise ParamIsNull; End If;
    If v_userid Is Not Null Then
    SELECT COUNT(1) INTO v_count FROM USERS WHERE site_id=inSiteID and USERID = v_userid;
    If v_count = 0 then
    v_errmsg := '0, UserID Not Found';
    raise invalid_data;
    Else
    v_return:=('1');
    End if;
    End If;
    If inExtID Is Not Null Then
    SELECT COUNT(1) INTO v_count FROM USERS WHERE site_id=inSiteID and ext_uid = inExtID;
    If v_count = 0 then
    v_errmsg := '0, External ID Not Found';
    raise invalid_data;
    Else
    v_return:=('1');
    End if;
    End If;
    EXCEPTION
    WHEN ParamIsNull THEN
    v_return:=('0,1 Parameter Expected');
    WHEN invalid_data THEN
    v_return:=v_errmsg;
    END check_user;
    Function
    CREATE OR REPLACE PACKAGE DON AS
    FUNCTION CHECK_USER (siteid IN VARCHAR2, userid IN NUMBER, extid IN VARCHAR2)
    RETURN VARCHAR2;
    PRAGMA RESTRICT_REFERENCES (CHECK_USER, WNDS);
    END DON;
    CREATE OR REPLACE PACKAGE BODY DON AS
    FUNCTION CHECK_USER (siteid IN VARCHAR2, userid IN NUMBER, extid IN VARCHAR2)
    RETURN VARCHAR2 IS v_return VARCHAR2(200);
    BEGIN
    OTS_SCOPUS_PACK.CHECK_USER(siteid, userid, extid, v_return);
    RETURN v_return;
    END;
    END DON;
    XSQL Source
    <?xml version="1.0"?>
    <xsql:query xmlns:xsql="urn:oracle-xsql" connection="mvdv">
    select don.check_user('{@siteid}', {@userid}, '{@extid}') from dual
    </xsql:query>

    Your 'DON.CHECK_USER' function has a RESTRICT_REFERENCES pragma but it calls 'OTS_SCOPUS_PACK.CHECK_USER' which must also have a RESTRICT_REFERENCES pragma.
    All functions/procedures that are called directly or indirectly by 'DON.CHECK_USER' need to have a RESTRICT_REFERENCES pragma to guarantee that they do not write to the database or to a package.
    You cannot just write a wrapper function and apply the pragma to it.
    Good luck!
    null

  • Get Message ID and namespace from ABAP Mapping

    Hi XI Expert,
    Please advise how to get the message ID and namespace from ABAP Mapping.
    Thank You and best Regards
    Fernand

    Hi,
    To access the message ID, use the method GET_MESSAGE_ID of the controller object:
           1.      Fetch a protocol instance for the protocol IF_WSPROTOCOL_MESSAGE_ID.
           2.      To have the system return the message ID after the sender has sent a request message or the receiver has received a request message, use the method GET_MESSAGE_ID of this instance. This returns the ID by using the parameter MESSAGE_ID of type SXMSGUID.
    Also you could do the same by this way also:
    IF_WSPROTOCOL_XI_HEADER
    has attributes messageid and interface namespace.
    using this  you can read the XI message header

  • Add a root node and namespace declaration

    According to the requirement,I have a large appended .txt file.
    This .txt file is created by appending various xml files (without the namespace and root node).
    I need to add a root node and namespace declaration to the large appended .txt file so that it can be read as .xml.
    Please provide the pointers for the same.
    Thanks & Regards,
    Rashi

    My appended file looks like following.
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>56</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>123</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>B</Item>
                <ItemPrice>8</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    Now according to the requirement, I need to add namespace and root node and make it like follows:
    <ns0:output xmlns:ns0="http://xxx">
       <input>
       <Store>
          <StoreHeader>
             <StoreNbr>56</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    <input>
       <Store>
          <StoreHeader>
             <StoreNbr>123</StoreNbr>
             <StoreType>Retail</StoreType>
             <StoreSite>2004</StoreSite>
          </StoreHeader>
          <Transactions>
             <Transaction>
                <Item>A</Item>
                <ItemPrice>4</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>B</Item>
                <ItemPrice>8</ItemPrice>
             </Transaction>
             <Transaction>
                <Item>C</Item>
                <ItemPrice>56</ItemPrice>
             </Transaction>
          </Transactions>
       </Store>
    </input>
    </ns0:output>

  • Server running xsql and JSP

    I made a xsql file (sql in xml file) and I want to deploy it. I have made JSP files too.
    Which server can run xsql and JSP files?
    Oracle 8.1.6 can run xsql and JSP files?
    Thank you

    Check out the [MIMES] section of webtogo.ora file which is located in %JDEVHOME%\lib. There is an entry which defines the handler for .xsql files (which in this case is the XSQL Servlet (oracle.xml.xsql.XSQLServlet). Same goes for jsps. You can run this on any Java enabled web server.
    The version of OAS which will provide this functionality is the soon expected 4.0.8.2

  • Portal Event name and namespace (ECM)

    Hi Experts
    I want to register for the Portal Event that gets triggered when an employee is selected.
    In the Compensation Information page, there is an employee search iview. I need to know what Portal Event name and namespace is triggered when an employee is selected.
    Does somebody already know what the name and namespace is?
    thanks in advance
    Anton Kruse

    Found the solution here: Parameter Passing from WDJ iview to WDABAP Iview
    call function 'HR_ASR_WDA_GET_EMPLOYEE'
       exporting
          id = 'MSS01'   "ABAP Memory ID To get the PERNR Selected.
       importing
          pernr = gv_pernr.

  • How does XSQL xsl namespace resolution work

    I don't believe I'm getting correct results
    from the xsql helloworld.xsql demo
    I get a result but it is not formatted.
    I think it has to do with:
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    Where does the URN get resolved and what does it resolve to? MS IE5 just shows a bunch of XML rather than a nicely formatted:
    "Hello World"
    which makes me believe that the XSL transform is not happening.

    Oh, so it is appropriate behavior... Thanks Steve
    I still need to better understand xmlns and what the
    xmlns:xsl="urn:oracle-xsql"
    does and how I can examine it and other namespaces (ie look at the source) and understand how to apply it and create my own URN (do I need to do this?). I'm not finding any real clear documentation on xmlns that serves as a tutorial (e.g. this urn "source" looks like this, and these statements do that, and when you specify this namespace, these things happen).
    Specifically, where does urn:oracle-xsql point? To a network resource? To a local file? To a resource that is "embedded" in XSLT? How do I examine and interpret that resource?

  • J2SE adapter PI 7.1 issue with XML to flat conversion and namespace length

    Dear reader,
    We are facing an issue with J2SE Adapter PI7.1 for a number of flows.
    The flow requirements:
    [1] Namespace length for interfaces is up to 100 characters
    [2] The XML message must be converted to Flat on the adapter channel
    Our PI system is at patch level 7 and we implement J2SE adapter on patch level 7 as well.
    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1 j2SE adapter) but no issues where found with the XML to flat conversion [2].
    Experimenting with J2SE adapter on patch level 6 we found the long namespaces [1] are supported however an issue is found with the XML to flat conversion [2] as stated in SAP note 1335527.
    An SAP Customer Message is raised on this issue however your input is highly appricated!
    With Kind Regards,
    Harald Kastelijn
    Edited by: Harald Kastelijn on Mar 6, 2010 9:17 AM
    Edited by: Harald Kastelijn on Mar 6, 2010 9:19 AM

    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1
    j2SE adapter) but no issues where found with the XML to flat conversion [2]
    I think the restriction of namespace length still remains in design time (IR).....the same however has been extended in configuration and runtime...this SAP note has some information: https://service.sap.com/sap/support/notes/870809

  • XSQL and BEA Weblogic 6.1

    I spent a lot of time trying to figure out how to configure
    the XSQL servlet to run on BEA Weblogic 6.1
    It is really simple once you understand that you should work
    off expanded directory instead of trying to get a .war or .ear
    file uploaded.
    I decided to give my explanation to help others...
    This works with the current XDK (9.0.2.0.0D) on OTN and I got it
    running on Windows 2000 and/or Solaris.
    I based these instructions on Steve Muench for
    "ANN Deploy Oracle XSQL Pages to OC4J" off the OTN web site.
    1) get the latest xdk_java off the OTN web site.
    2) create a directory (or subdirectory) named xsql (to hold the entire application
    3) create /xsql/META-INF
    /xsql/WEB-INF
    /xsql/WEB-INF/lib
    /xsql/WEB-INF/classes
    structure to hold the XSQL servlet
    4) create a /xsql/META-INF/application.xml with the following code:
    <!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN'
    'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>
    <application>
    <display-name>Oracle XSQL Servlet</display-name>
    <description>Oracle XSQL Servlet</description>
    <module>
    <web>
    <web-uri>xsql.war</web-uri>
    <context-root>xsql</context-root>
    </web>
    </module>
    </application>
    5) create the file /xsql/WEB-INF/web.xml with the following content
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
    <web-app>
    <servlet>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <servlet-class>oracle.xml.xsql.XSQLServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>*.xsql</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>oracle-xsql-servlet</servlet-name>
    <url-pattern>/xsql/*</url-pattern>
    </servlet-mapping>
    </web-app>
    6)extract the xdk_java (that you copied from the OTN) on a temporary directory. (/otn)
    7) copy the following files (they are in the /otn/lib subdirectory) into /xsql/WEB-INF/lib
    oraclexsql.jar
    xsqlserializers.jar
    xmlparserv2.jar
    xsu12.jar
    8) copy /otn/xdk/admin/XSQLConfig.xml to xsql/WEB-INF/classes
    9) copy the entire directory and subdir /otn/xdk/demo/java/xsql to /xsql/demo
    10) no need to create a war or ear file as Weblogic will work better from the expanded directory
    anyway and it is simpler to implement.
    11) Now you need to copy that entire directory structure /xsql over to the Weblogic Application Server
    config/domain-name/applications area so in my case it is
    /bea/wlserver6.1/config/your_domain/applications/xsql
    12) If Weblogic is running in development mode, it should deploy and load the servlet automatically.
    If it is running in production mode, then we would need to restart it.
    13) You should be able to test this with http://your_host:7001/xsql/demo/index.html
    Any URL that specifies the /xsql will then be treated by the
    XSQL Servlet.
    It works for me...

    Hi Denis,
    I followed your procedure to deploy XSQL Servlet on WebLogic 6.1. First I deployed as expanded directory structure although I turned 'Auto Deployed Enabled' flag to on for my domain, WebLogic couldn't pick up the application. Then I tried to create ear application and deployed it (In your message you are saying that don't need to create ear or war, you mean this is not just a necessity or it never could be deployed as ear/war files). I saw on the as deployed on console but when I tried the http://myhost:7001/xsql/demo/index.html, I got the following error message.
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-013: XSQL Page URI is null or has an invalid format.
    Oracle XDK Java 9.2.0.2.0 Production
    XSQL-013: XSQL Page URI is null or has an invalid format.
    Can you help me to trouble shoot this problem? Thank you very much
    Deha Peker

  • XPATH-expressions and namespaces

    I have a xml-file for testing my xpath expression, like this:
    <a>
       <b>
          <c>aaa</c>
             <d>
                <e>111</e>
             </d>
       </b>
       <b>
          <c>bbb</c>
             <d>
                <e>222</e>
             </d>
       </b>
       <b>
          <c>ccc</c>
             <d>
                <e>333</e>
             </d>
       </b>What I want is to get the value of element 'e', based on a check on what the value of element 'c' is. I alway know the value of element 'c'.
    I solve this by using this xpath-expression in my xsl-file:
    <xsl:variable name="xpathTest" select="//e[../preceding-sibling::c = 'bbb']" />This expression should return '222', and it works!!!
    But, when I use the another xml-file with a similar structure, with namespaces, like this:
    <body xsi:type="fkpsoap:FKPSOAPOperationResponse">
       <FKPSOAPOperationResponse>
          <fkpsoap_1:fkrdk178_output_data>
             <fkpsoap_1:fkrdk178_list_cust_information>
                <fkpsoap_1:fkrdk178_list_customerinfo>
                   <fkpsoap_1:fkrdk178_list_variable_code> aaa </fkpsoap_1:fkrdk178_list_variable_code>
                   <fkpsoap_1:fkrdk178_list_value_name>
                      <fkpsoap_1:fkrdk178_list_value_text> 111 </fkpsoap_1:fkrdk178_list_value_text>
                </fkpsoap_1:fkrdk178_list_customerinfo>
                <fkpsoap_1:fkrdk178_list_customerinfo>
                   <fkpsoap_1:fkrdk178_list_variable_code> bbb </fkpsoap_1:fkrdk178_list_variable_code>
                   <fkpsoap_1:fkrdk178_list_value_name>
                      <fkpsoap_1:fkrdk178_list_value_text> 222 </fkpsoap_1:fkrdk178_list_value_text>
                </fkpsoap_1:fkrdk178_list_customerinfo>
                <fkpsoap_1:fkrdk178_list_customerinfo>
                   <fkpsoap_1:fkrdk178_list_variable_code> ccc </fkpsoap_1:fkrdk178_list_variable_code>
                   <fkpsoap_1:fkrdk178_list_value_name>
                      <fkpsoap_1:fkrdk178_list_value_text> 333 </fkpsoap_1:fkrdk178_list_value_text>
                </fkpsoap_1:fkrdk178_list_customerinfo>
             </fkpsoap_1:fkrdk178_list_cust_information>
          </fkpsoap_1:fkrdk178_output_data>
       </FKPSOAPOperationResponse>
    </body>Then the xpath-expression does not work!
    I can easily extract the value of the element similar to the element 'e' in my test-file, but then I will always get the value from the first occurance of 'e', which is '111'.
    Can anyone help me with this?

    Most APIs which let you create XPath objects allow you to create a namespace context and attach it to the XPath object. Your API most likely does too, whatever it is. Then you would just use the prefixes which the namespace context describes in your XPath expression.
    (This namespace context generally maps prefixes to namespace URIs. Remember that the namespace URI is really what the XPath is looking for and the prefix is just a short cut for you to use.)

Maybe you are looking for

  • Can anyone tell me how can I watch any video on Firefox without Adobe Flash Plugin?

    OK I don't know but the latest version of flash player really frustrated me. I don't like Chrome been my entire life Firefox user, but I will have to switch over since I can't stand adobe flash plugin. I uninstalled it and after reboot Firefox automa

  • Bridge file associations SNAFU

    Since I installed photoshop CC I've lived with 2 versions of bridge on my system.  THey dont coexist very well, but I've put up with it because in the past I've ended up  having problems... Last night I freed up a bit of space by uninstalling bridge

  • Lenovo U410 Recovery

    Recovery 'Your PC needs to be repaired'' 'File: \BCD Error Code: 0xc0000098' I don't have a USB or recovery disk, is there an alternative way to fix this solution? I tried the one key recovery, clicked system recovery, but it would go into a blank sc

  • Active stanby cache group replication on same machine

    Hi, To validate a replication design, I am trying to set up an active standby pair of a cache group on a my linux(ubuntu) laptop. I have setup two datastores on the same TT instance - cgdsn and master2 I created a usermanaged cache group on the activ

  • How can i reset/ restart ipadair when it is frozen?

         I recived an ipadair for christmas and loved it. until i tryed to zoom out of an app and the screen froze! i tried to turn it off and back on but the power button only brought me to the lock screen were it is now frozen.