Package org.apache.ws.commons.om

Examples of org.apache.ws.commons.om.OMElement.addChild()


            OMElement metadata =
                    OMAbstractFactory.getOMFactory().createOMElement(
                            Final.WSA_METADATA,
                            addressingNamespaceObject, soapHeaderBlock);
            for (int i = 0; i < metaDataList.size(); i++) {
                metadata.addChild((OMNode) metaDataList.get(i));
            }

        }

        if (epr.getAttributes() != null) {
View Full Code Here


                bodyContent = (OMElement) resObject;
            } else if (SimpleTypeMapper.isSimpleType(resObject)) {
                bodyContent = fac.createOMElement(
                        method.getName() + "Response", ns);
                OMElement child = fac.createOMElement(RETURN_WRAPPER, null);
                child.addChild(fac.createText(child, SimpleTypeMapper.getStringValue(resObject)));
                bodyContent.addChild(child);
            } else {
                bodyContent = fac.createOMElement(
                        method.getName() + "Response", ns);
                // Java Beans
View Full Code Here

        if (paramNames != null) {
            //find the relevant object here, convert it and add it to the elt
            for (int i = 0; i < paramNames.length; i++) {
                String paramName = paramNames[i];
                Object value = values[i];
                elt.addChild(StubSupporter.createRPCMappedElement(paramName,
                        factory.createOMNamespace("", null), //empty namespace
                        value,
                        factory));
            }
        }
View Full Code Here

            OMFactory fac) {
        OMElement returnElement = fac.createOMElement(elementName, ns);
        Class inputParamClass = value.getClass();

        if (inputParamClass.equals(String.class)) {
            returnElement.addChild(
                    fac.createText(returnElement, value.toString()));
        } else if (inputParamClass.equals(Integer.class)) {
            returnElement.addChild(
                    fac.createText(
                            returnElement,
View Full Code Here

    OMNamespace namespace = factory.createOMNamespace(ns,"tst");
   
    String ln = "Child";
   
    OMElement bodyChild = factory.createOMElement(ln,namespace);
    bodyChild.addChild(factory.createText(value));
   
    envelope.getBody().addChild(bodyChild);


    ByteArrayOutputStream byteOutStr = new ByteArrayOutputStream();
View Full Code Here

        //this is a valid sample key :- "0Y6WJGPB6TW8AVAHGFR2"));

        value2 = omFactory.createOMElement("Request", nulNS);

        subValue1 = omFactory.createOMElement("ResponseGroup", nulNS);
        subValue1.addChild(omFactory.createText("Web"));

        subValue2 = omFactory.createOMElement("Query", nulNS);
        subValue2.addChild(omFactory.createText(AsynchronousClient.search));

        subValue3 = omFactory.createOMElement("Count", nulNS);
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.