Package javax.xml.soap

Examples of javax.xml.soap.SOAPHeaderElement.addChildElement()


        if (correlationId != null)
        {
            SOAPElement e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_ID_PROPERTY,
                MULE_NAMESPACE);
            e.addTextNode(correlationId);
            e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_GROUP_SIZE_PROPERTY,
                MULE_NAMESPACE);
            e.addTextNode(correlationGroup);
            e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_SEQUENCE_PROPERTY, MULE_NAMESPACE);
            e.addTextNode(correlationSequence);
        }
View Full Code Here


                MULE_NAMESPACE);
            e.addTextNode(correlationId);
            e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_GROUP_SIZE_PROPERTY,
                MULE_NAMESPACE);
            e.addTextNode(correlationGroup);
            e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_SEQUENCE_PROPERTY, MULE_NAMESPACE);
            e.addTextNode(correlationSequence);
        }
        if (replyTo != null)
        {
            SOAPElement e = muleHeader.addChildElement(MuleProperties.MULE_REPLY_TO_PROPERTY, MULE_NAMESPACE);
View Full Code Here

            e = muleHeader.addChildElement(MuleProperties.MULE_CORRELATION_SEQUENCE_PROPERTY, MULE_NAMESPACE);
            e.addTextNode(correlationSequence);
        }
        if (replyTo != null)
        {
            SOAPElement e = muleHeader.addChildElement(MuleProperties.MULE_REPLY_TO_PROPERTY, MULE_NAMESPACE);
            // String enc = (String)encoder.transform(replyTo);
            // e.addTextNode(enc);
            e.addTextNode(replyTo);
        }
    }
View Full Code Here

                    Consts.ASAP_NS));
       
        // Set the sender to me. This might differ from the value, given in
        // the request as ReceiverKey. We set it to the URL under which we were
        // called.
        SOAPElement skNode = respNode.addChildElement(Consts.SENDER_KEY,
                Consts.ASAP_PREFIX);
        skNode.addTextNode(resourceReference.getResourceKey());

        // Set the receiver if it was specified in the request.
        String receiver = getHeaderValue(reqMsg, Consts.SENDER_KEY);
View Full Code Here

        skNode.addTextNode(resourceReference.getResourceKey());

        // Set the receiver if it was specified in the request.
        String receiver = getHeaderValue(reqMsg, Consts.SENDER_KEY);
        if (receiver != null) {
            SOAPElement node = respNode.addChildElement(Consts.RECEIVER_KEY,
                    Consts.ASAP_PREFIX, Consts.ASAP_NS);
            node.addTextNode(receiver);
        }
       
        // Retain the RequestId if given.
View Full Code Here

        }
       
        // Retain the RequestId if given.
        String requestId = getHeaderValue(reqMsg, Consts.REQUEST_ID);
        if (requestId != null) {
            SOAPElement node = respNode.addChildElement(Consts.REQUEST_ID,
                    Consts.ASAP_PREFIX, Consts.ASAP_NS);
            node.addTextNode(requestId);
        }
    }
View Full Code Here

        soapHeader
                .addHeaderElement(env.createName("TestHeader2", "swa", "http://fakeNamespace.org"));
        final SOAPHeaderElement headerEle3 =
                soapHeader.addHeaderElement(
                        env.createName("TestHeader3", "swa", "http://fakeNamespace.org"));
        final SOAPElement ch1 = headerEle3.addChildElement("he3", "swa");
        ch1.addTextNode("Im Header Element of header3");

        Name ns = env.createName("echo", "swa", "http://fakeNamespace.org");
        SOAPBodyElement bodyElement = body.addBodyElement(ns);
View Full Code Here

            // EndpointReference fromEPR = new
            // EndpointReference(callbackEndpoint.getBinding().getURI());
            //
            // addWSAFromHeader(sh, fromEPR);
            SOAPHeaderElement fromH = sh.addHeaderElement(QNAME_WSA_FROM);
            SOAPElement fromAddress = fromH.addChildElement(QNAME_WSA_ADDRESS);           
            fromAddress.setTextContent(callbackEndpoint.getDeployedURI());

            addWSAActionHeader(sh, action);

            // We need a wsa:MessageId for request-response operation per WS-Addressing core specification,
View Full Code Here

        soapHeader
                .addHeaderElement(env.createName("TestHeader2", "swa", "http://fakeNamespace.org"));
        final SOAPHeaderElement headerEle3 =
                soapHeader.addHeaderElement(
                        env.createName("TestHeader3", "swa", "http://fakeNamespace.org"));
        final SOAPElement ch1 = headerEle3.addChildElement("he3", "swa");
        ch1.addTextNode("Im Header Element of header3");

        Name ns = env.createName("echo", "swa", "http://fakeNamespace.org");
        SOAPBodyElement bodyElement = body.addBodyElement(ns);
View Full Code Here

            /**
             * Create new element representing signature,
             * and add as child to new header element.
             */
            SOAPElement element = signatureTool.getSignature(name);   //, content);
            headerElement.addChildElement(element);
        } catch (SOAPException e) {
            e.printStackTrace();
            throw new SignException("Unable to sign message", e);
        }
    }
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.