Package javax.xml.soap

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


                                           "ns1" );
            QName responseName = new QName( "http://soap.jax.drools.org/",
                                            "return",
                                            "ns1" );
            SOAPBodyElement payload = body.addBodyElement( payloadName );
            SOAPElement response = payload.addChildElement( responseName );
            //Bad Hack - Need to remote it and fix it in Camel (if it's a camel problem)
            // response.addTextNode( StringUtils.toString( is ) );
            response.addTextNode( results );
            exchange.getOut().setBody( soapMessage );
        }
View Full Code Here


                                       "ns1" );
        QName responseName = new QName( "http://soap.jax.drools.org/",
                                        "return",
                                        "ns1" );
        SOAPBodyElement payload = soapBody.addBodyElement( payloadName );
        SOAPElement response = payload.addChildElement( responseName );
        response.addTextNode( StringUtils.toString( bais ) );

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        soapMessage.writeTo( baos );
View Full Code Here

    private SaajSoapMessage createDeleteMessage() throws SOAPException {
        SOAPMessage saajMessage = messageFactory.createMessage();
        SOAPBody saajBody = saajMessage.getSOAPBody();
        SOAPBodyElement delete = saajBody.addBodyElement(new QName("http://example.com/fabrikam", "Delete"));
        SOAPElement maxCount = delete.addChildElement(new QName("maxCount"));
        maxCount.setTextContent("42");
        return new SaajSoapMessage(saajMessage);
    }

    protected abstract AddressingVersion getVersion();
View Full Code Here

        Name bodyName = envelope.createName("getQuote", "n", "urn:xmethods-delayed-quotes");
        SOAPBodyElement gltp = body.addBodyElement(bodyName);

        Name name = envelope.createName("symbol");
        SOAPElement symbol = gltp.addChildElement(name);
        symbol.addTextNode(tickerSymbol);

        URLEndpoint endpoint = new URLEndpoint("http://66.28.98.121:9090/soap");
        SOAPMessage response = con.call(message, endpoint);
        con.close();
View Full Code Here

            while (dataHandlerIterator.hasNext()) {
                DataHandler dataHandler = (DataHandler)
                        dataHandlerIterator.next();
                javax.xml.soap.SOAPElement element =
                        operation.addChildElement(requestEnvelope.createName("source"));
                javax.xml.soap.AttachmentPart attachment =
                        soapMessage.createAttachmentPart(dataHandler);
                soapMessage.addAttachmentPart(attachment);
                element.addAttribute(requestEnvelope.createName
                                     ("href"), "cid:" + attachment.getContentId());
View Full Code Here

       
        SOAPMessage message = Basic.createMessage();
        Basic.fillRequestHeadet(message, factory, sender, id);
        SOAPBodyElement action
            = Basic.createActionElement(message, "GetDefinitionRq");
        SOAPElement language = action.addChildElement("ProcessLanguage", "wfxml");
        language.addTextNode("XPDL");
       
        SOAPMessage response = Basic.call(message);
       
        Basic.checkNoFault(response);
View Full Code Here

       
        Basic.fillRequestHeadet(message, receiver, sender, id);
        SOAPBodyElement action
            = Basic.createActionElement(message, "NewDefinitionRq");
        SOAPElement language
            = action.addChildElement("ProcessLanguage", "wfxml");
        language.addTextNode("XPDL");
                   
        javax.xml.parsers.DocumentBuilderFactory factory
            = DocumentBuilderFactory.newInstance();
        javax.xml.parsers.DocumentBuilder builder;
View Full Code Here

       
        org.w3c.dom.Document document
            = builder.parse(new InputSource
                          (new StringReader(sb.toString())));
               
        SOAPElement definition = action.addChildElement("Definition", "wfxml");
        org.w3c.dom.Document owner = language.getOwnerDocument();
        org.w3c.dom.Node node
            = owner.importNode(document.getFirstChild(), true);
        definition.appendChild(node);
        message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "UTF-8");
View Full Code Here

                    continue;
                }
            } catch (InvalidKeyException e) {
                continue;
            }
            SOAPElement defInfo = defsNode.addChildElement
                ("DefinitionInfo", Consts.WFXML_PREFIX);
            SOAPElement defKey
                = defInfo.addChildElement("DefinitionKey", Consts.WFXML_PREFIX);
            ResourceReference procDefRes = new ResourceReference
                (getResourceReference().getBaseUrl(), pd);
View Full Code Here

                Consts.LIST_INSTANCES_RESPONSE);

        Collection procs = procMgr.processes();
        for (Iterator i = procs.iterator(); i.hasNext();) {
            Process proc = (Process) i.next();
            SOAPElement instance = instancesNode.addChildElement("Instance",
                    Consts.ASAP_PREFIX);
            SOAPElement instanceKey = instance.addChildElement("InstanceKey",
                    Consts.ASAP_PREFIX);
            ResourceReference procResRef = new ResourceReference(
                    getResourceReference().getBaseUrl(), proc);
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.