Examples of OMSourcedElementImpl


Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

      UnknownContentOMDataSource unknownContentDataSource = new UnknownContentOMDataSource(
          rootPartDataHandler);
      OMFactory factory = OMAbstractFactory.getOMFactory();
      messageContext.setDoingSwA(false);
      messageContext.setDoingMTOM(false);
      return new OMSourcedElementImpl(
          UnknownContentOMDataSource.unknownContentQName, factory,
          unknownContentDataSource);
    }
    InputStreamDataSource inStreamDataSource = new InputStreamDataSource(
        inputStream);
    inStreamDataSource.setType(contentType);
    DataHandler dataHandler = new DataHandler(inStreamDataSource);
    UnknownContentOMDataSource unknownContentDataSource = new UnknownContentOMDataSource(
        dataHandler);
    OMFactory factory = OMAbstractFactory.getOMFactory();
    return new OMSourcedElementImpl(
        UnknownContentOMDataSource.unknownContentQName, factory,
        unknownContentDataSource);
  }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

        OMDataSource dataSource = new ADBDataSource(this, parentQName) {
            public void serialize(MTOMAwareXMLStreamWriter xmlWriter) throws XMLStreamException {
                Array.this.serialize(parentQName, factory, xmlWriter);
            }
        };
        return new OMSourcedElementImpl(parentQName, factory, dataSource);

    }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

            SOAPFaultDetail detail = factory.createSOAPFaultDetail(soapFault);
            if (!ignoreDetailBlocks) {
                for (int i = 0; i < blocks.length; i++) {
                    // A Block implements OMDataSource.  So create OMSourcedElements
                    // for each of the Blocks.
                    OMSourcedElementImpl element =
                            new OMSourcedElementImpl(blocks[i].getQName(), factory, blocks[i]);
                    detail.addChild(element);
                }
            }
        }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

    }

    public OMElement getOMElement() throws XMLStreamException, WebServiceException {
        OMNamespace ns = new OMNamespaceImpl("", "");
        OMFactory factory = OMAbstractFactory.getOMFactory();
        return new OMSourcedElementImpl("dummy", ns, factory, this);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

        SOAP11HeaderImpl omHeader = (SOAP11HeaderImpl)omEnvelope.getChildElements().next();

        Iterator<OMSourcedElementImpl> it = omHeader.getChildElements();
        // TODO: not sure if the order of the header additions is or should be preserved.
        // in other words, this test may be a little too strict.
        OMSourcedElementImpl headerElem1 = it.next();
        OMSourcedElementImpl headerElem2 = it.next();
        // should only be two header elements, so...
        assertFalse(it.hasNext());
       
        assertTrue(headerElem1.toString().equals(acoh1));
        assertTrue(headerElem2.toString().equals(acoh2));
       
        // now that we've done a toString() on the header elements, they've been parsed and
        // processed by the underlying OM implementation...  let's remove one by way of SOAP
        // API, then let's make sure we can still get and manipulate the headers via the
        // SOAPHeadersAdapter
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

        SOAP11HeaderImpl omHeader = (SOAP11HeaderImpl)omEnvelope.getChildElements().next();

        Iterator<OMSourcedElementImpl> it = omHeader.getChildElements();
        // TODO: not sure if the order of the header additions is or should be preserved.
        // in other words, this test may be a little too strict.
        OMSourcedElementImpl headerElem1 = it.next();
        OMSourcedElementImpl headerElem2 = it.next();
        // should only be two header elements, so...
        assertFalse(it.hasNext());
       
        assertTrue(headerElem1.toString().equals(acoh1));
        assertTrue(headerElem2.toString().equals(acoh2));
       
        // now that we've done a toString() on the header elements, they've been parsed and
        // processed by the underlying OM implementation...  let's remove one by way of SOAP
        // API, then let's make sure we can still get and manipulate the headers via the
        // SOAPHeadersAdapter
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

        SOAP11HeaderImpl omHeader = (SOAP11HeaderImpl)omEnvelope.getChildElements().next();

        Iterator<OMSourcedElementImpl> it = omHeader.getChildElements();
        // TODO: not sure if the order of the header additions is or should be preserved.
        // in other words, this test may be a little too strict.
        OMSourcedElementImpl headerElem1 = it.next();
        OMSourcedElementImpl headerElem2 = it.next();
        // should only be two header elements, so...
        assertFalse(it.hasNext());
       
        assertTrue(headerElem1.toString().equals(acoh1));
        assertTrue(headerElem2.toString().equals(acoh2));
       
        // now that we've done a toString() on the header elements, they've been parsed and
        // processed by the underlying OM implementation...  let's remove one by way of SOAP
        // API, then let's make sure we can still get and manipulate the headers via the
        // SOAPHeadersAdapter
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

            }
        } catch (IOException e) {
            throw AxisFault.makeFault(e);
        }
        AbstractJSONDataSource jsonDataSource = getDataSource(reader, prefix, localName);
        return new OMSourcedElementImpl(localName, ns, factory, jsonDataSource);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

                }
            }
        };
        XmlElement outXmlElement = operation.getOutPutElement();
        QName outElementQName = new QName(outXmlElement.getNamespace(), outXmlElement.getName());
        return new OMSourcedElementImpl(outElementQName, soapFactory, omDataSource);
    }
View Full Code Here

Examples of org.apache.axiom.om.impl.llom.OMSourcedElementImpl

                }
            }
        };
        XmlElement exceptionElement = parameter.getElement();
        QName outElementQName = new QName(exceptionElement.getNamespace(), exceptionElement.getName());
        OMElement omElement = new OMSourcedElementImpl(outElementQName, soapFactory, omDataSource);
        return omElement;
    }
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.