Package org.apache.axiom.soap

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



            SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
            SOAPEnvelope env = factory.getDefaultEnvelope();
            OMNamespace ns = factory.createOMNamespace("http://services.samples", "m0");
            OMElement payload = factory.createOMElement("uploadFileUsingSwA", ns);
            OMElement request = factory.createOMElement("request", ns);
            OMElement imageId = factory.createOMElement("imageId", ns);
            imageId.setText(attachmentID);
            request.addChild(imageId);
            payload.addChild(request);
View Full Code Here


            SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
            SOAPEnvelope env = factory.getDefaultEnvelope();
            OMNamespace ns = factory.createOMNamespace("http://services.samples", "m0");
            OMElement payload = factory.createOMElement("uploadFileUsingSwA", ns);
            OMElement request = factory.createOMElement("request", ns);
            OMElement imageId = factory.createOMElement("imageId", ns);
            imageId.setText(attachmentID);
            request.addChild(imageId);
            payload.addChild(request);
            env.getBody().addChild(payload);
View Full Code Here

            SOAPFactory factory = OMAbstractFactory.getSOAP11Factory();
            SOAPEnvelope env = factory.getDefaultEnvelope();
            OMNamespace ns = factory.createOMNamespace("http://services.samples", "m0");
            OMElement payload = factory.createOMElement("uploadFileUsingSwA", ns);
            OMElement request = factory.createOMElement("request", ns);
            OMElement imageId = factory.createOMElement("imageId", ns);
            imageId.setText(attachmentID);
            request.addChild(imageId);
            payload.addChild(request);
            env.getBody().addChild(payload);
            mc.setEnvelope(env);
View Full Code Here

        SOAPHeader header = soapFactory.createSOAPHeader();
        envelope.addChild(header);

        OMNamespace synNamespace = soapFactory.
                createOMNamespace("http://ws.apache.org/ns/synapse", "syn");
        OMElement clientIDElement = soapFactory.createOMElement("ClientID", synNamespace);
        clientIDElement.setText(clientID);
        header.addChild(clientIDElement);

        SOAPBody body = soapFactory.createSOAPBody();
        envelope.addChild(body);
View Full Code Here

        header.addChild(clientIDElement);

        SOAPBody body = soapFactory.createSOAPBody();
        envelope.addChild(body);

        OMElement valueElement = soapFactory.createOMElement("Value", null);
        valueElement.setText(value);
        body.addChild(valueElement);

        return envelope;
    }
View Full Code Here

        if (log.isDebugEnabled()) {
            log.debug("Creating SOAP envelope for FIX message...");
        }

        SOAPFactory soapFactory = new SOAP11Factory();
        OMElement msg = soapFactory.createOMElement(FIXConstants.FIX_MESSAGE, null);
        msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_INCOMING_SESSION,
                null, sessionID));
        msg.addAttribute(soapFactory.createOMAttribute
                (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter)));
View Full Code Here

        msg.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_MESSAGE_INCOMING_SESSION,
                null, sessionID));
        msg.addAttribute(soapFactory.createOMAttribute
                (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter)));

        OMElement header = soapFactory.createOMElement(FIXConstants.FIX_HEADER, null);
        OMElement body = soapFactory.createOMElement(FIXConstants.FIX_BODY, null);
        OMElement trailer = soapFactory.createOMElement(FIXConstants.FIX_TRAILER, null);

        //process FIX header
        Iterator<Field<?>> iter = message.getHeader().iterator();
View Full Code Here

                null, sessionID));
        msg.addAttribute(soapFactory.createOMAttribute
                (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter)));

        OMElement header = soapFactory.createOMElement(FIXConstants.FIX_HEADER, null);
        OMElement body = soapFactory.createOMElement(FIXConstants.FIX_BODY, null);
        OMElement trailer = soapFactory.createOMElement(FIXConstants.FIX_TRAILER, null);

        //process FIX header
        Iterator<Field<?>> iter = message.getHeader().iterator();
        if (iter != null) {
View Full Code Here

        msg.addAttribute(soapFactory.createOMAttribute
                (FIXConstants.FIX_MESSAGE_COUNTER, null, String.valueOf(counter)));

        OMElement header = soapFactory.createOMElement(FIXConstants.FIX_HEADER, null);
        OMElement body = soapFactory.createOMElement(FIXConstants.FIX_BODY, null);
        OMElement trailer = soapFactory.createOMElement(FIXConstants.FIX_TRAILER, null);

        //process FIX header
        Iterator<Field<?>> iter = message.getHeader().iterator();
        if (iter != null) {
            while (iter.hasNext()) {
View Full Code Here

        //process FIX header
        Iterator<Field<?>> iter = message.getHeader().iterator();
        if (iter != null) {
            while (iter.hasNext()) {
                Field<?> field = iter.next();
                OMElement msgField = soapFactory.createOMElement(FIXConstants.FIX_FIELD, null);
                msgField.addAttribute(soapFactory.createOMAttribute(FIXConstants.FIX_FIELD_ID,
                        null, String.valueOf(field.getTag())));
                Object value = field.getObject();

                if (value instanceof byte[]) {
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.