Class DefaultXmlaServlet

    • Field Detail

      • nl

        protected static final String nl
    • Constructor Detail

      • DefaultXmlaServlet

        public DefaultXmlaServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig servletConfig)
                  throws javax.servlet.ServletException
        Description copied from class: XmlaServlet
        Initializes servlet and XML/A handler.
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class XmlaServlet
        Throws:
        javax.servlet.ServletException
      • logXmlaRequest

        protected void logXmlaRequest​(Element envElem)
      • handleSoapHeader

        protected void handleSoapHeader​(javax.servlet.http.HttpServletResponse response,
                                        Element[] requestSoapParts,
                                        byte[][] responseSoapParts,
                                        Map<String,​Object> context)
                                 throws XmlaException
        Implement to handle application specified SOAP header.

        See if there is a "mustUnderstand" header element. If there is a BeginSession element, then generate a session id and add to context Map.

        Excel 2000 and Excel XP generate both a BeginSession, Session and EndSession mustUnderstand=1 in the "urn:schemas-microsoft-com:xml-analysis" namespace Header elements and a NamespaceCompatibility mustUnderstand=0 in the "http://schemas.microsoft.com/analysisservices/2003/xmla" namespace. Here we handle only the session Header elements.

        We also handle the Security element.

        Specified by:
        handleSoapHeader in class XmlaServlet
        Throws:
        XmlaException
      • handleFault

        protected void handleFault​(javax.servlet.http.HttpServletResponse response,
                                   byte[][] responseSoapParts,
                                   XmlaServlet.Phase phase,
                                   Throwable t)
        This produces a SOAP 1.1 version Fault element - not a 1.2 version.
        Specified by:
        handleFault in class XmlaServlet