Examples of createName()


Examples of javax.xml.soap.SOAPEnvelope.createName()

      returnElement = (SOAPElement) eObj;
    }
    else
    {
      // Should be old-Microsoft XMLA-SDK. Try without m-prefix
      Name rName2 = soapEnvelope.createName("return", "", "");
      returnElements = eElement.getChildElements(rName2);
      if (returnElements.hasNext())
      {
        Object eObj = returnElements.next();
        if (eObj == null)
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

        throw new JRRuntimeException("Could not retrieve return Element.");
      }
    }

    // Get the root-Node
    Name rootName = soapEnvelope.createName("root", "", MDD_URI);
    SOAPElement rootElement = null;
    Iterator rootElements = returnElement.getChildElements(rootName);
    if (rootElements.hasNext())
    {
      Object eObj = rootElements.next();
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

    else
    {
      throw new JRRuntimeException("Could not retrieve root Element.");
    }
    // Get the OlapInfo-Node
    Name olapInfoName = soapEnvelope.createName("OlapInfo", "", MDD_URI);
    SOAPElement olapInfoElement = null;
    Iterator olapInfoElements = rootElement.getChildElements(olapInfoName);
    if (olapInfoElements.hasNext())
    {
      Object eObj = olapInfoElements.next();
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

    }

    parseOLAPInfoElement(olapInfoElement);

    // Get the Axes Element
    Name axesName = soapEnvelope.createName("Axes", "", MDD_URI);
    SOAPElement axesElement = null;
    Iterator axesElements = rootElement.getChildElements(axesName);
    if (axesElements.hasNext())
    {
      Object eObj = axesElements.next();
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

    }

    parseAxesElement(axesElement);

    // Get the CellData Element
    Name cellDataName = soapEnvelope.createName("CellData", "", MDD_URI);
    SOAPElement cellDataElement = null;
    Iterator cellDataElements = rootElement.getChildElements(cellDataName);
    if (cellDataElements.hasNext())
    {
      Object eObj = cellDataElements.next();
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

     */
    public static Name toName(QName qName, SOAPElement resolveElement) throws SOAPException {
      String qNamePrefix = qName.getPrefix();
        SOAPEnvelope envelope = getEnvelope(resolveElement);
        if (StringUtils.hasLength(qName.getNamespaceURI()) && StringUtils.hasLength(qNamePrefix)) {
            return envelope.createName(qName.getLocalPart(), qNamePrefix, qName.getNamespaceURI());
        }
        else if (StringUtils.hasLength(qName.getNamespaceURI())) {
            Iterator<?> prefixes;
            if (getSaajVersion(resolveElement) == SAAJ_11) {
                prefixes = resolveElement.getNamespacePrefixes();
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

                prefixes = resolveElement.getVisibleNamespacePrefixes();
            }
            while (prefixes.hasNext()) {
                String prefix = (String) prefixes.next();
                if (qName.getNamespaceURI().equals(resolveElement.getNamespaceURI(prefix))) {
                    return envelope.createName(qName.getLocalPart(), prefix, qName.getNamespaceURI());
                }
            }
            return envelope.createName(qName.getLocalPart(), "", qName.getNamespaceURI());
        }
        else {
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

                String prefix = (String) prefixes.next();
                if (qName.getNamespaceURI().equals(resolveElement.getNamespaceURI(prefix))) {
                    return envelope.createName(qName.getLocalPart(), prefix, qName.getNamespaceURI());
                }
            }
            return envelope.createName(qName.getLocalPart(), "", qName.getNamespaceURI());
        }
        else {
            return envelope.createName(qName.getLocalPart());
        }
    }
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

                }
            }
            return envelope.createName(qName.getLocalPart(), "", qName.getNamespaceURI());
        }
        else {
            return envelope.createName(qName.getLocalPart());
        }
    }

    /**
     * Converts a {@code javax.xml.soap.Name} to a {@code javax.xml.namespace.QName}.
View Full Code Here

Examples of javax.xml.soap.SOAPEnvelope.createName()

        SOAPPart sp = msg.getSOAPPart();
        SOAPEnvelope envelope = sp.getEnvelope();
        SOAPHeader header = envelope.getHeader();
        SOAPBody body = envelope.getBody();

        SOAPElement el = header.addHeaderElement(envelope.createName("field4", NS_PREFIX, NS_URI));
        SOAPElement el2 = el.addChildElement("field4b", NS_PREFIX);
        SOAPElement el3 = el2.addTextNode("field4value");

        el = body.addBodyElement(envelope.createName("bodyfield3", NS_PREFIX, NS_URI));
        el2 = el.addChildElement("bodyfield3a", NS_PREFIX);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.