Class DefaultXmlaServlet

    • Field Detail

      • nl

        protected static final java.lang.String nl
    • Constructor Detail

      • DefaultXmlaServlet

        public DefaultXmlaServlet()
    • Method Detail

      • getDocumentBuilderFactory

        protected static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
      • logXmlaRequest

        protected void logXmlaRequest​(org.w3c.dom.Element envElem)
      • handleSoapHeader

        protected void handleSoapHeader​(HttpServletResponse response,
                                        org.w3c.dom.Element[] requestSoapParts,
                                        byte[][] responseSoapParts,
                                        java.util.Map<java.lang.String,​java.lang.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
      • generateSessionId

        protected java.lang.String generateSessionId​(java.util.Map<java.lang.String,​java.lang.Object> context)