XSQL and 8.0.5

Does anyone have XSQL running with 8.0.5?
null

If you mean using XSQL Servelet and XSQL pages that retrieve, insert and update data then yes. I have used 7.3.4, 8.05, 8.1.5, 8.1.6 and 8.1.7 on Solaris and 8.1.7 on NT.
Obviously you cannot use 8i features such as Objects and CURSOR queries if the database does not support them.
null

Similar Messages

  • 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

  • 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

  • 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

  • XSQL and insert

    This may sound like a dumb question but I can't figure out how to associate the xml doc with the xsql doc to do an insert. Here are my files:
    XSQL - filename custins.xsql
    <?xml version="1.0" ?>
    <xsql:insert-request table="CUSTOMERS_OV" connection="dev7" xmlns:xsql="urn:oracle-xsql"/>
    XML - No file name, genned on the fly in javascript
    <?xml version='1.0'?>
    <ROWSET><ROW>
    <CUST_NO>1</CUST_NO>
    </ROW></ROWSET>
    I call custins.xsql as a submit from a form. The xml is dynamically created and I pass it as a parameter, i.e.
    http://localhost:7070/custins.xsql?docxml=<?xml version='1.0'?><...etc>
    What I get when I do this is:
    <?xml version="1.0" ?>
    <xsql-status action="xsql:insert-request" result="No posted document to process" />
    Can anyone tell what I'm doing wrong?
    Thanks,
    Lewis
    null

    Got it figured out. I was using method="get" while debugging and xsql expects it to be post.
    Now I'm getting:
    <?xml version="1.0" ?>
    - <xsql-error action="xsql:insert-request">
    <message>Exception ' The XML element tag 'DocXml' does not match the name of any of the columns/attributes of the target database object.' encountered during processing ROW element 0All prior XML row changes were rolled back. in the XML document.</message>
    </xsql-error>
    Which I'm assuming means that it wants to parse out the parameters instead of me making an xml doc. The problem with that is my data resides in 3 frames, across 7 forms. How do I handle this?
    I'll post this question with a new topic.
    null

  • Xsql and Stored Procedures/Packages

    I need to call a stored proc that includes a select statement through XSQL. The procedure returns a ResultSet. I have not been able to find a way to bind this parameter, or to return this ResultSet. Has anybody tried to do this?
    TIA

    The <xsql:ref-cursor-function> exists for just this purpose.
    If you already have a function that returns a REF CURSOR in an OUT parameter of a procedure, just write a wrapper function that returns that OUT value as the return value of a function and then use <xsql:ref-cursor-function> to repurpose it's results as XML in your XSQL page.

  • XSQL and HttpSession object availability

    Hello,
    How to access the very convenient unique HttpSession unique ID?
    The one we have this way within a servlet:
    HttpSession session = request.getSession(true);
    System.out.println(session.getId());
    Thank You in advance
    JRoch
    null

    You can access this easily by writing a custom action handler. Here is the code for a custom action handler that sets the value of the Http Session id into a page parameter named "session-id".
    import oracle.xml.xsql.*;
    import java.sql.SQLException;
    import org.w3c.dom.Node;
    import javax.servlet.http.*;
    public class GetSessionId extends XSQLActionHandlerImpl {
    public void handleAction( Node rootNode ) throws SQLException {
    XSQLPageRequest req = getPageRequest();
    if (req.getRequestType().equals("Servlet")) {
    HttpSession sess =
    ((XSQLServletPageRequest)req).getHttpServletRequest().getSession(true);
    if (sess != null) {
    req.setPageParam("session-id",sess.getId());
    }Then from within your XSQL page, you can say:
    <xsql:action handler="GetSessionId"/>
    and then later in the page refer to the parameter named session-id to access it's value as a lexical or bind parameter.

  • XSQL and WebLogic 6.0

    I am trying to set up xsql in WebLogic version 6.0. I can set up to run any stand alone servlet but how to tell it to run XSQLSERVLET when extension is .xsql? I've seen in WebLogic 5.1 you do it by setting weblogic.httpd.webApp.xsql=directory with xsql jar file but version 6.0 doesn't have weblogic.properties.

    WLS 6.0 will be supported in the next release of WLCS, which is due in the
    spring.
    - Ginny
    "aamerG" <[email protected]> wrote in message
    news:3a5cb774$[email protected]..
    Hi everyone,
    we are starting a new development project and would like to use Weblogic
    6.0. How soon do you think there we be a version of WLCS which works with
    6.0.
    TIA

  • XMLTABLE() with XSQL and XSL

    HI Gentlemen,
    I have an XMLTYPE table with data loaded in it, which I would like to query with JDeveloper, formatted. For normal relational tables it works fine. However, for an XMLTYPE table, where--in addition--XMLTABLE() must be involved, I only get the constant text portions, not the selected values. (Note that the same works with XML instances file and XSL stylesheet excellently, without JDeveloper.) My question is: How can I reference a coulumn in an XMLTABLE() table that is constructed during query?
    Included is the following:
    (1) XSQL file in JDeveloper
    (2) XSL stylesheet file in JDeveloper
    (3) Output of XSQL from JDeveloper when the <?xml-stylesheet...> is commented out
    Please help if you have an idea.
    (1) XSQL file under public-html
    <?xml version="1.0" encoding='windows-1252'?>
    <?xml-stylesheet type="text/xsl" href="untitled1.xsl" ?>
    <page xmlns:xsql="urn:oracle-xsql" connection="gksconnection">
    <xsql:query xmlns:xsql="urn:oracle-xsql" >
    SELECT
    des.ziffer,
    des.kap_bez,
    des.bereich,
    des.kapitel,
    des.abschnitt,
    des.kurztext,
    des.langtext,
    des.quittungstext
    FROM
    z p,
    XMLTable(XMLNAMESPACES('urn:ehd/001' as "n1", 'urn:ehd/go/001' as "n2"),
                        'for $i in /n1:ehd
    where $i/n1:header/n1:provider/n1:organization/n1:id/@EX eq "46" and
                        $i/n1:body/n2:gnr_liste/n2:gnr/@V eq "01700V"
                   return $i/n1:body/n2:gnr_liste/n2:gnr[@V="01700V"]'
    PASSING p.xml_document
    COLUMNS
    ziffer      VARCHAR2(12) PATH '@V',
    kap_bez VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/@DN',
    bereich VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:bereich/@DN',
    kapitel VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:kapitel/@DN',
    abschnitt VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kap_bez/n2:abschnitt/@DN',
    kurztext      VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:kurztext/@V',
    langtext      VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:langtext/@V',
    quittungstext VARCHAR2(255) PATH 'n2:allgemein/n2:legende/n2:quittungstext/@V') des
    <!-- select * from z -->
    </xsql:query>
    </page>
    (2) XSL stylesheet under public-html
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ehd="urn:ehd/001" xmlns:pe="urn:ehd/go/001">
    <xsl:output encoding="ISO-8859-1" method="text/html" />
    <xsl:template match="/page">
    <html>
    <head>
    <title>EBM Ziffer</title>
    </head>
    <body style="font-family:verdana;color:black">
    <h2><xsl:text>Ziffer: </xsl:text>
    <xsl:value-of select="@V"/>
    </h2>
    <table border="1">
    <tr>
    <td><xsl:text>Gültigkeit</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:gueltigkeit/pe:service_tmr/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bezeichnung Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Bereich</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:bereich/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kapitel</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@V"/>
    <xsl:text> </xsl:text>
    <xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:kapitel/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Abschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:abschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Unterabschnitt</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:uabschnitt/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Block</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kap_bez/pe:block/@DN"/></td>
    </tr>
    <tr>
    <td><xsl:text>Kurztext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:kurztext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Langtext (Fortsetzung)</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:langtext_continued/@V"/></td>
    </tr>
    <tr>
    <td><xsl:text>Quittungstext</xsl:text></td>
    <td><xsl:value-of select="pe:allgemein/pe:legende/pe:quittungstext/@V"/></td>
    </tr>
    </table>
    <!-- Anmerkungen-Liste -->
    <h3><xsl:text>Anmerkungen</xsl:text></h3>
    <table border="1">
    <xsl:for-each select="pe:allgemein/pe:anmerkungen_liste/pe:anmerkung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Leistungsinhalt-->
    <h3><xsl:text>Leistungsinhalt</xsl:text></h3>
    <table border="1" >
    <tr>
    <th><xsl:text>Komplex</xsl:text></th>
    <th><xsl:text>Leistung</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:leistungsinhalt/pe:komplex">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:leistung">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Bewertungsliste -->
    <h3><xsl:text>Bewertungen</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Bewertung</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Gebührenordnung</xsl:text></th>
    <th><xsl:text>Leistungserbringerart</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    <th><xsl:text>Versorgungsgebiet</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:bewertung_liste/pe:bewertung">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:gebuehrenordnung/@V"/></td>
    <td><xsl:value-of select="pe:leistungserbringerart/@V"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    <td><xsl:value-of select="pe:versorgungsgebiet/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Zeitbedarfliste -->
    <h3><xsl:text>Zeitbedarfliste</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Zeit</xsl:text></th>
    <th><xsl:text>Einheit</xsl:text></th>
    <th><xsl:text>Leistungstyp</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:allgemein/pe:zeitbedarf_liste/pe:zeit">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td><xsl:value-of select="@U"/></td>
    <td><xsl:value-of select="pe:leistung_typ/@V"/></td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Prüfzeit -->
    <h3><xsl:text>Prüfzeit</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Zeitangabe</xsl:text></th>
    <th><xsl:text>Zeiteinheit</xsl:text></th>
    <th><xsl:text>Profiltyp</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/@V"/></td>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/@U"/></td>
    <td><xsl:value-of select="pe:allgemein/pe:pruefzeit/pe:zeitprofilart/@V"/></td>
    </tr>
    </table>
    <!-- RLV -->
    <h3><xsl:text>RLV</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Kennzeichen</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:rlv/@V"/></td>
    </tr>
    </table>
    <!-- Leistungsgruppe -->
    <h3><xsl:text>Leistungsgruppe</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Code</xsl:text></th>
    </tr>
    <tr>
    <td><xsl:value-of select="pe:allgemein/pe:leistungsgruppe/@V"/></td>
    </tr>
    </table>
    <!-- Fachgruppen-Liste -->
    <h3><xsl:text>Fachgruppen</xsl:text></h3>
    <table border="1">
    <tr>
    <th><xsl:text>Versorgungsbereich</xsl:text></th>
    <th><xsl:text>Fachgruppe</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:bedingung/pe:fachgruppe_liste/pe:versorgungsbereich">
    <tr>
    <td><xsl:value-of select="@V"/></td>
    <td>
    <xsl:for-each select="pe:fachgruppe">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <!-- Ausschlußiste -->
    <h3><xsl:text>Ausschlußliste</xsl:text></h3>
    <table border="1" >
    <tr>
    <th><xsl:text>Bezugsraum</xsl:text></th>
    <th><xsl:text>Ziffer</xsl:text></th>
    </tr>
    <xsl:for-each select="pe:regel/pe:ausschluss_liste/pe:bezugsraum">
    <tr>
    <td><xsl:value-of select="@U"/></td>
    <td>
    <xsl:for-each select="pe:gnr_liste/pe:gnr">
    <xsl:value-of select="@V"/>
    </xsl:for-each>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>
    (3) XSQL output without stylesheet
    -<page>
    −<ROWSET>
    −<ROW num="1">
    <ZIFFER>01700V</ZIFFER>
    −<KAP_BEZ>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregelun g und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </KAP_BEZ>
    <BEREICH>Arztgruppenübergreifende allgemeine Leistungen</BEREICH>
    <KAPITEL>Allgemeine Leistungen</KAPITEL>
    −<ABSCHNITT>
    Gesundheits- und Früherkennungsuntersuchungen, Mutterschaftsvorsorge, Empfängnisregel ung und Schwangerschaftsabbruch (vormals Sonstige Hilfen)
    </ABSCHNITT>
    −<KURZTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </KURZTEXT>
    −<LANGTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin, Mikrobiologie und Infektionsepidemiologi e, Transfusionsmedizin und ermächtigte Fachwissenschaftler der Medizin für die Erbringung von Laborleistungen gemäß den Richtlinien des Gemeinsamen Bundesauss
    </LANGTEXT>
    −<QUITTUNGSTEXT>
    Grundpauschale für Fachärzte für Laboratoriumsmedizin u.a.
    </QUITTUNGSTEXT>
    </ROW>
    </ROWSET>
    </page>
    Please apologize that the stylesheet has considerably more than the XSQL query--this is going to be extended when the technique works.
    Thank you, kind regards
    Miklos HERBOLY

    Perhaps you could consider using the XMLType instead of varchar2 for the db columns, thus avoiding use of XMLTABLE() altogether.
    Consult for example the source code of :
    http://www.amazon.com/Oracle-XSQL-Combining-Publish-Dynamic/dp/0471271209
    You might also try posting to a more specialized forum such as:
    http://forums.oracle.com/forums/category.jspa?categoryID=51
    NA
    http://nickaiva.blogspot.com
    Edited by: Nick Aiva on Jan 21, 2011 9:17 PM

  • XSQL and MS Access

    I am attempting to connect to an Access database using XSQL. I believe I have everything set correctly.
    <connection name="test">
         <username>test</username>
         <password>test</password>
         <dburl>jdbc:odbc:mytest
    </dburl>
                   <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
         <autocommit>true</autocommit>
    </connection>
    <xsql:query connection="protech" xmlns:xsql="urn:oracle-xsql">
    SELECT * FROM tblTest
    </xsql:query>
    However, I get a resulting,
    <<Oracle XSQL Servlet Page Processor 1.0.4.3 (Production)
    <<XSQL-007: Cannot acquire a database connection to <<process page.
    <<[Microsoft][ODBC Driver Manager] Data source name not <<found and no default driver specified
    The message is a little confusing because it says there is no dataset with that name and there is not driver. I know there is an odbc-connection setup on the machine with the name "mytest". As for the driver. Do I need to set it in my classpath somewhere? If so where? In Catalina.bat?

    Kevin,
    Assuming I have an ODBC datasource on my local machine called ecdcmusic, the following works for me:
    <connection name="test-access">
    <username>admin</username>
    <password></password>
    <dburl>jdbc:odbc:ecdcmusic</dburl>
    <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
    <autocommit>true</autocommit>
    </connection>
    Good Luck,
    Charlie

  • Xsql and external parameters

    Is there a way to read in external parameters to an .xsql file from a static file?
    In my .xsql file I have an href that has the hostname.domainname hardcoded. I would like to be able to get the hostname and domainname from a common config file that is used throughout my application.
    example:
    <xsql:include-xml href="http://webintegra.thirdspace.tv/tas/inbox.php?username{@username}&;password={@password}"/>
    Any help is appreciated.
    Thanks,
    Brenda

    You could write a simple custom action handler to do this job, which would be the most efficient because it could cache the configuration values in a static variable and not reread them on each page access, or you could use <xsql:include-xml> to pull in a static XML file into any XSQL page where it is needed, via a file:/// URL (or http:// URL).

  • XSQL and Clobs

    I have run into some trouble with retrieving Clob fields with XSQL, seems as though the resultset I am getting is a pointer to the data and not the data itself.
    This is what I am trying to do.
    1. Query an Oracle 8i data base that contains multiple clob fields in which the data has been Base64 encoded (using ColdFusion).
    2. Loop over the Query for the designated Clob fields and decode them using BASE64Decoder() from the sun.misc library.
    3. Create a new XML node with the decoded clob value (which would be a WDDX structure).
    I have used the <xsql:query > and that returns the clob field (still base64 encoded) just fine. Should I change my thinking and look for the XML node and Decode that value and create a new node from that. ????
    Hear is a copy of my code. Any Help would be appreciated.
    // Copyright (c) 2000 prosavvy
    package xsql.myclasses;
    * A Class class.
    * <P>
    * @author gwilliams
    import oracle.xml.xsql.*;
    import org.w3c.dom.*;
    import java.sql.*;
    import java.lang.String;
    import java.lang.Object.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.OracleResultSet;
    import java.io.*;
    import sun.misc.BASE64Decoder;
    public class decodetest extends XSQLActionHandlerImpl {
    public void handleAction( Node rootNode ) throws SQLException {
    ResultSet rs = null;
    Statement s = null;
    String stmt = "select sessiondata from persons where personid = 169158";
    if (!requiredConnectionProvided(rootNode)) {
    return;
    try {
    s = getPageRequest().getJDBCConnection().createStatement();
    rs = s.executeQuery(stmt);
    String curDate="";
    String wddx = new String();
    if (rs.next()) {
    // System.out.println(rs.getClob(1));
    curDate = rs.getClob(1).toString();
    BASE64Decoder decoder = new BASE64Decoder();
    wddx = new String(decoder.decodeBuffer(curDate));
    System.out.println(wddx);
    addResultElement(rootNode,"Date",wddx);
    rs.close();
    s.close();
    catch (IOException exs) {
    this.reportErrorIncludingStatement(rootNode,stmt,exs.getMessage());
    rs.close();
    s.close();
    null

    Greg. Your suspicion is correct. The CLOB is just a CLOB "locator" that you select. You need to call the getCharacterStream method to retrieve the stream of contents.
    Here's a modified version of your action handler that appears to work for me.
    import oracle.xml.xsql.*;
    import org.w3c.dom.*;
    import java.sql.*;
    import java.lang.String;
    import java.lang.Object.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.OracleResultSet;
    import java.io.*;
    import sun.misc.BASE64Decoder;
    public class DecodeCLOB extends XSQLActionHandlerImpl {
    public void handleAction( Node rootNode ) throws SQLException {
    ResultSet rs = null;
    Statement s = null;
    String stmt = "select sessiondata from persons where personid = 1";
    if (!requiredConnectionProvided(rootNode)) {
    return;
    try {
    s = getPageRequest().getJDBCConnection().createStatement();
    rs = s.executeQuery(stmt);
    String curDate="";
    String wddx = new String();
    if (rs.next()) {
    // System.out.println(rs.getClob(1));
    Reader r = rs.getClob(1).getCharacterStream();
    StringBuffer sb = new StringBuffer();
    char[] buf = new char[256];
    int charsRead = -1;
    while ( (charsRead = r.read(buf)) != -1 ) {
    sb.append(buf,0,charsRead);
    curDate = sb.toString();
    BASE64Decoder decoder = new BASE64Decoder();
    wddx = new String(decoder.decodeBuffer(curDate));
    System.out.println(wddx);
    addResultElement(rootNode,"Date",wddx);
    rs.close();
    s.close();
    catch (IOException exs) {
    reportErrorIncludingStatement(rootNode,stmt,exs.getMessage());
    rs.close();
    s.close();
    }

  • XSQL and IIS

    I did a search on this forum and the new group. Can't find any information.
    Whate can I download the XSQL servlet and how to configure it with IIS?
    Thanks
    Bob

    Finally found out that XSQL is boundled with XDK for JAVA. Can someone point out how to configure XSQL with IIS? IIS is not one of the certified Web Server in the doc. Does it even work with XSQL?

  • XSQL and 10g

    Hi,
    can somebody explain how is XSQL framework configured and can be used/called in/with database 10g?
    I have used it successfully with 9i database and Apache (Apache which comes with 9i DB and not from 9iAs).
    In 9i XSQL was easy to set up and use.
    Thanks,
    Jozef

    Deepak,
    thanks for your fast response.
    I am not sure what you mean. JDeveloper is a development software tool installed on some client box. XSQLConfig.xml is a server side configuration file.
    In 9i I was able to use XSQL framework without JDeveloper, so I do not have JDeveloper. I just:
    1. modified XSQLConfig.xml with text editor,
    2. placed my xsql document edited in text editor to server
    3. called the document from browser over URL
    and it returned XML with data from database.
    Under 10g I am not able to do so.
    It contains only OC4J and I do not know how to do the same.
    On 10g there is no Apache by default. When I installed Apache from companion CD it seems that it does not contain pre configured XSQL framework.
    Jozef

  • 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"
    ....

  • Printing with xsql and css or xsl and fop

    How to incorporate css or css2 with xsql?
    I want some sample files. What is FOP? How can we use it for printing and print view

    Thanks for your reply. I know FOP. How to run it with tomcat3.2 and xsql?
    I already onto css1 and css2. XSLT stylesheets are working fine for me. But for taking print outs using the paged media with css2 i require some help. Currently I am reading Oracle XML Applications by Steve Muench from o'reilly.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    See the XSQL Servlet examples. Most of the demos have XSLT stylesheets that generate HTML which includes references to CSS stylesheets.
    FOP is the Apache Formatting Object Processor.
    See the XSQL Release notes for information on using FOP with XSQL Pages for rendering PDF files from database queries.<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • Bootcamp 5 installing windows 7 on macbook pro

    Dear Comunity After a week and a half of trying to install Windows 7 on my Macbook Pro Early 2008 after installing Mountain Lion then trying via Bootcamp 5 resultedl in trashing my whole system at least twice and me having to reinstall Moutain Lion t

  • How to resolve the error "Invalid Annotation Object" ?

    @

  • Assassin's Creed II problems..

    Hi guys, I'm having a problem with Assassin's Creed II. I installed it on my Macbook Pro Retina 15" and the game doesn't work. All the things required are there... if it fully doesn't work, can I get a refund since I bought in on the App Store?

  • Search Criteria not working in POWL

    Hello Experts, I have added the new fields in POWL Search Criteria using the Add custom field to SC and POWL. but after adding the fields when i try to search using the input made by the user the resultant output is always blank and also there is no

  • Radiobutton during at selection-screen event is not triggered

    Hi experts, I have this event: AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file perform f_file_sel. I want to select a file according to the radiobuttons on the selection screen, but during the f_file_sel form I recognized, that the radiobutton which