Package org.apache.axis2.om.impl.llom

Examples of org.apache.axis2.om.impl.llom.OMNamespaceImpl


        return new SOAP12FaultDetailImpl(parent, builder);
    }

    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
        OMNamespace ns =
                new OMNamespaceImpl(
                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                        SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
        createSOAPHeader(env);
        createSOAPBody(env);
View Full Code Here


    outMTOMFile = getTestResourceFile(outFileName);
    outBase64File = getTestResourceFile(outBase64FileName);
    OMOutput mtomOutput = new OMOutput(new FileOutputStream(outMTOMFile),true);
    OMOutput baseOutput = new OMOutput(new FileOutputStream(outBase64File),false);
   
    OMNamespaceImpl soap = new OMNamespaceImpl(
        "http://schemas.xmlsoap.org/soap/envelope/", "soap");
    OMElement envelope = new OMElementImpl("Envelope", soap);
    OMElement body = new OMElementImpl("Body", soap);
   
    OMNamespaceImpl dataName = new OMNamespaceImpl(
        "http://www.example.org/stuff", "m");
    OMElement data = new OMElementImpl("data", dataName);
   
    expectedImage = new JDK13IO().loadImage(new FileInputStream(
        getTestResourceFile(imageInFileName)));
View Full Code Here

      SOAPFactory soapFactory = new SOAP11Factory();
      SOAPEnvelope envelope = soapFactory.getDefaultEnvelope();

      OMNamespace omNs = soapFactory.createOMNamespace(values[0],
          "services");
      OMNamespace defualtNs = new OMNamespaceImpl("", null);

      OMElement opElement = soapFactory.createOMElement(operation, omNs);

      Iterator it = map.keySet().iterator();
      while (it.hasNext()) {
View Full Code Here

        soapHeader = soapEnvelope.getHeader();
    }

    public void testAddHeaderElement() {
        String newElementName = "MyHeaderElement";
        SOAPHeaderBlock soapHeaderElement = soapHeader.addHeaderBlock(newElementName, new OMNamespaceImpl("http://opensource.lk", "lsf"));
        assertTrue("Header Element added has different parent than it should have", soapHeaderElement.getParent() == soapHeader);
        assertTrue("Header Element added has different localname than it was given", soapHeaderElement.getLocalName().equalsIgnoreCase(newElementName));
    }
View Full Code Here

     * @param uri
     * @param prefix
     * @return
     */
    public OMNamespace createOMNamespace(String uri, String prefix) {
        return new OMNamespaceImpl(uri, prefix);
    }
View Full Code Here

        if (omAttribute != null) {
            omAttribute.setValue(attrValue);
        } else {
            OMAttribute attribute = new OMAttributeImpl(
                    attributeName,
                    new OMNamespaceImpl(
                            soapEnvelopeNamespaceURI,
                            SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX), attrValue);
            this.addAttribute(attribute);
        }
    }
View Full Code Here

                new QName(soapEnvelopeNamespaceURI, attributeName));
        if (omAttribute != null) {
            omAttribute.setValue(attrValue);
        } else {
            OMAttribute attribute = new OMAttributeImpl(attributeName,
                    new OMNamespaceImpl(soapEnvelopeNamespaceURI,
                            SOAPConstants.SOAP_DEFAULT_NAMESPACE_PREFIX),
                    attrValue);
            this.addAttribute(attribute);
        }
    }
View Full Code Here

     * Eran Chinthaka (chinthaka@apache.org)
     */

    public SOAPEnvelope createSOAPEnvelope() {
        return new SOAPEnvelopeImpl(
                new OMNamespaceImpl(
                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                        SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX),
                this);
    }
View Full Code Here

        return new SOAP12FaultDetailImpl(parent, builder);
    }

    public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
        OMNamespace ns =
                new OMNamespaceImpl(
                        SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI,
                        SOAP12Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
        SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
        createSOAPHeader(env);
        createSOAPBody(env);
View Full Code Here

                }
            }
        }
        nsList.add(
                new OMNamespaceEx(
                        new OMNamespaceImpl(
                                "http://www.w3.org/XML/1998/namespace", "xml"),
                        (OMContainer) contextNode));
        return nsList.iterator();
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.om.impl.llom.OMNamespaceImpl

Copyright © 2018 www.massapicom. 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.