Package javax.xml.soap

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


            }
        }
        SOAPBodyElement instance = createAsapResponseNode(respMsg,
                Consts.CREATE_INSTANCE_RESPONSE);

        SOAPElement instanceKey = instance.addChildElement("InstanceKey",
                Consts.ASAP_PREFIX);
        ResourceReference procResRef = new ResourceReference(
                getResourceReference().getBaseUrl(), proc);
        instanceKey.addTextNode(procResRef.getResourceKey());
    }
View Full Code Here


       
        Iterator iterator = activities.iterator();
        while(iterator.hasNext()) {
            Activity activity = (Activity) iterator.next();
            SOAPElement activityNode
                = activitiesNode.addChildElement("ActivityInfo",
                        Consts.WFXML_PREFIX);
            SOAPElement activityKey
                = activityNode.addChildElement("ActivityKey",
                        Consts.WFXML_PREFIX);
            ResourceReference actResRef = new ResourceReference
View Full Code Here

        Name respName = env.createName(Consts.STATE_CHANGE_REQUEST,
                Consts.ASAP_PREFIX, Consts.ASAP_NS);

        SOAPBodyElement action = body.addBodyElement(respName);
        SOAPElement newStateNode
            = action.addChildElement("State", Consts.ASAP_PREFIX);
        newStateNode.addTextNode(newState);
        SOAPElement oldStateNode
            = action.addChildElement("PreviousState", Consts.ASAP_PREFIX);
        oldStateNode.addTextNode(oldState);
       
View Full Code Here

        SOAPBodyElement action = body.addBodyElement(respName);
        SOAPElement newStateNode
            = action.addChildElement("State", Consts.ASAP_PREFIX);
        newStateNode.addTextNode(newState);
        SOAPElement oldStateNode
            = action.addChildElement("PreviousState", Consts.ASAP_PREFIX);
        oldStateNode.addTextNode(oldState);
       
        return message;
    }
View Full Code Here

       
        final String SOAP_ENV = "http://schemas.xmlsoap.org/soap/envelope/";
        SOAPBody sb = se.getBody();
        SOAPBodyElement fault
            = sb.addBodyElement(se.createName("Fault", "SOAP_ENV", SOAP_ENV));
        fault.addChildElement("faultstring")
            .addTextNode(errorMessage);
        SOAPElement detail = fault.addChildElement("detail");
        detail.addChildElement
            ("ErrorCode", Consts.ASAP_PREFIX, Consts.ASAP_NS)
            .addTextNode(Integer.toString(errorCode));
View Full Code Here

        SOAPBody sb = se.getBody();
        SOAPBodyElement fault
            = sb.addBodyElement(se.createName("Fault", "SOAP_ENV", SOAP_ENV));
        fault.addChildElement("faultstring")
            .addTextNode(errorMessage);
        SOAPElement detail = fault.addChildElement("detail");
        detail.addChildElement
            ("ErrorCode", Consts.ASAP_PREFIX, Consts.ASAP_NS)
            .addTextNode(Integer.toString(errorCode));
        detail.addChildElement
            ("ErrorMessage", Consts.ASAP_PREFIX, Consts.ASAP_NS)
View Full Code Here

            SOAPEnvelope envelope = sp.getEnvelope();
            SOAPHeader hdr = envelope.getHeader();
            SOAPBody bdy = envelope.getBody();
            SOAPBodyElement sbe1 = bdy.addBodyElement(
                    envelope.createName("Body1", NS_PREFIX, NS_URI));
            sbe1.addChildElement(envelope.createName(
                    "TheGifAttachment", NS_PREFIX, NS_URI));
            sbe1.setAttribute("href", "cid:THEGIF");
            SOAPBodyElement sbe2 = bdy.addBodyElement(
                    envelope.createName("Body2", NS_PREFIX, NS_URI));
            sbe2.addChildElement(envelope.createName(
View Full Code Here

            sbe1.addChildElement(envelope.createName(
                    "TheGifAttachment", NS_PREFIX, NS_URI));
            sbe1.setAttribute("href", "cid:THEGIF");
            SOAPBodyElement sbe2 = bdy.addBodyElement(
                    envelope.createName("Body2", NS_PREFIX, NS_URI));
            sbe2.addChildElement(envelope.createName(
                    "TheXmlAttachment", NS_PREFIX, NS_URI));
            sbe2.setAttribute("href", "cid:THEXML");

            URL url1 = new URL("http://localhost:8080/SOAPMessage/attach.xml");
            URL url2 = new URL("http://localhost:8080/SOAPMessage/attach.gif");
View Full Code Here

            SOAPHeader hdr = envelope.getHeader();

            SOAPBody bdy = envelope.getBody();
            SOAPBodyElement sbe1 = bdy.addBodyElement(
                    envelope.createName("Body1", NS_PREFIX, NS_URI));
            sbe1.addChildElement(envelope.createName(
                    "TheGifAttachment", NS_PREFIX, NS_URI));

            SOAPBodyElement sbe2 = bdy.addBodyElement(
                    envelope.createName("Body2", NS_PREFIX, NS_URI));
View Full Code Here

                    "TheGifAttachment", NS_PREFIX, NS_URI));

            SOAPBodyElement sbe2 = bdy.addBodyElement(
                    envelope.createName("Body2", NS_PREFIX, NS_URI));

            sbe2.addChildElement(envelope.createName(
                    "TheXmlAttachment", NS_PREFIX, NS_URI));

            URL url1 = new URL("http://localhost:8080/SOAPMessage/attach.xml");
            URL url2 = new URL("http://localhost:8080/SOAPMessage/attach.gif");
            URL url3 = new URL("http://localhost:8080/SOAPMessage/attach.txt");
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.