Package org.apache.axiom.soap

Examples of org.apache.axiom.soap.SOAPFactory.createOMText()


        OMElement part = omfactory.createOMElement("param0", "", null);
        part.addAttribute("xsi:type", "s:List", null);

        OMElement value00 = omfactory.createOMElement("varInt", "", null);
        value00.addAttribute("xsi:type", "xsd:int", null);
        value00.addChild(omfactory.createOMText("255"));
        OMElement value01 = omfactory.createOMElement("varString", "", null);
        value01.addAttribute("xsi:type", "xsd:string", null);
        value01.addChild(omfactory.createOMText("Axis2"));
//        OMElement value02 = omfactory.createOMElement("child", "", null);
//        value02.addAttribute("href", "#ID1", null);
View Full Code Here


        OMElement value00 = omfactory.createOMElement("varInt", "", null);
        value00.addAttribute("xsi:type", "xsd:int", null);
        value00.addChild(omfactory.createOMText("255"));
        OMElement value01 = omfactory.createOMElement("varString", "", null);
        value01.addAttribute("xsi:type", "xsd:string", null);
        value01.addChild(omfactory.createOMText("Axis2"));
//        OMElement value02 = omfactory.createOMElement("child", "", null);
//        value02.addAttribute("href", "#ID1", null);

        part.addChild(value00);
        part.addChild(value01);
View Full Code Here

        operation.addAttribute("soapenv:encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/",
                               null);

        OMElement part = omfactory.createOMElement("a", "", null);
        part.addAttribute("xsi:type", "xsd:string", null);
        part.addChild(omfactory.createOMText("strss fdfing1"));

        operation.addChild(part);
        return reqEnv;

    }
View Full Code Here

        operation.addAttribute("encodingStyle", "http://schemas.xmlsoap.org/soap/encoding/", envNs);

        OMElement part = omfactory.createOMElement("inputString", null);
        part.declareNamespace(typeNs);
        part.addAttribute("type", "xsd:string", typeNs);
        part.addChild(omfactory.createOMText(WhiteMesaConstants.ECHO_STRING));

        operation.addChild(part);
        return reqEnv;

    }
View Full Code Here

                OMElement wrapper = soapFactory.createOMElement(wrapperQName, null);

                try {
                    if (message instanceof TextMessage) {
                        OMTextImpl textData = (OMTextImpl) soapFactory.createOMText(
                            ((TextMessage) message).getText());
                        wrapper.addChild(textData);
                    } else if (message instanceof BytesMessage) {
                        BytesMessage bm = (BytesMessage) message;
                        byte[] msgBytes = new byte[(int) bm.getBodyLength()];
View Full Code Here

                        byte[] msgBytes = new byte[(int) bm.getBodyLength()];
                        bm.reset();
                        bm.readBytes(msgBytes);
                        DataHandler dataHandler = new DataHandler(
                            new ByteArrayDataSource(msgBytes));
                        OMText textData = soapFactory.createOMText(dataHandler, true);
                        wrapper.addChild(textData);
                        msgContext.setDoingMTOM(true);
                    } else {
                        handleException("Unsupported JMS Message format : " + message.getJMSType());
                    }
View Full Code Here

        part.addAttribute("arrayType", "xsd:float[3]", encNs);

        OMElement value0 = omfactory.createOMElement("varString", null);
        value0.declareNamespace(typeNs);
        value0.addAttribute("type", "xsd:float", typeNs);
        value0.addChild(omfactory.createOMText("45.76876"));
        OMElement value1 = omfactory.createOMElement("varInt", null);
        value1.declareNamespace(typeNs);
        value1.addAttribute("type", "xsd:float", typeNs);
        value1.addChild(omfactory.createOMText("43.454"));
        OMElement value2 = omfactory.createOMElement("varFloat", null);
View Full Code Here

        SOAPHeader header = omfactory.createSOAPHeader(reqEnv);
        OMNamespace hns = reqEnv.declareNamespace("http://soapinterop.org/echoheader/", "hns");
        SOAPHeaderBlock block1 = header.addHeaderBlock("echoMeStringRequest", hns);
        block1.addAttribute("xsi:type", "xsd:string", null);
        block1.addChild(omfactory.createOMText("string"));
        header.addChild(block1);

        SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest", hns);
        block2.addAttribute("xsi:type", "s:SOAPStruct", null);
View Full Code Here

        value0.addAttribute("type", "xsd:float", typeNs);
        value0.addChild(omfactory.createOMText("45.76876"));
        OMElement value1 = omfactory.createOMElement("varInt", null);
        value1.declareNamespace(typeNs);
        value1.addAttribute("type", "xsd:float", typeNs);
        value1.addChild(omfactory.createOMText("43.454"));
        OMElement value2 = omfactory.createOMElement("varFloat", null);
        value2.declareNamespace(typeNs);
        value2.addAttribute("type", "xsd:float", typeNs);
        value2.addChild(omfactory.createOMText("2523.542"));
View Full Code Here

        SOAPHeaderBlock block2 = header.addHeaderBlock("echoMeStructRequest", hns);
        block2.addAttribute("xsi:type", "s:SOAPStruct", null);

        OMElement h2Val1 = omfactory.createOMElement("varString", null);
        h2Val1.addAttribute("xsi:type", "xsd:string", null);
        h2Val1.addChild(omfactory.createOMText("string"));

        OMElement h2Val2 = omfactory.createOMElement("varInt", null);
        h2Val2.addAttribute("xsi:type", "xsd:int", null);
        h2Val2.addChild(omfactory.createOMText("150"));
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.