Package javax.xml.soap

Examples of javax.xml.soap.SOAPBodyElement


        throws SOAPException {
        SOAPBody body = request.getSOAPBody();
        for (Iterator i = body.getChildElements(); i.hasNext();) {
            Node node = (Node)i.next();
            if (node instanceof SOAPBodyElement) {
                SOAPBodyElement bodyElement = (SOAPBodyElement) node;
               
                Name bodyElementName = bodyElement.getElementName();
                String headerUri = bodyElementName.getURI();
                if (headerUri.equals(Consts.ASAP_NS)
                        || headerUri.equals(Consts.WFXML_NS)) {
                    return bodyElement;
                }
View Full Code Here


        SOAPEnvelope respEnv = respMsg.getSOAPPart().getEnvelope();
        SOAPBody respBody = respEnv.getBody();
        Name respName = respEnv.createName(nodeName, Consts.WFXML_PREFIX,
                Consts.WFXML_NS);
       
        SOAPBodyElement node = respBody.addBodyElement(respName);
        node.addNamespaceDeclaration(Consts.ASAP_PREFIX, Consts.ASAP_NS);
       
        return node;
    }
View Full Code Here

        SOAPEnvelope respEnv = respMsg.getSOAPPart().getEnvelope();
        SOAPBody respBody = respEnv.getBody();
        Name respName = respEnv.createName(nodeName, Consts.ASAP_PREFIX,
                Consts.ASAP_NS);

        SOAPBodyElement node = respBody.addBodyElement(respName);

        return node;
    }
View Full Code Here

    /* (non-Javadoc)
     * @see de.danet.an.workflow.clients.wfxml.AbstractResponseGenerator#evaluate(javax.xml.soap.SOAPMessage, javax.xml.soap.SOAPMessage)
     */
    public void evaluate(SOAPMessage reqMsg, SOAPMessage respMsg)
        throws SOAPException, RemoteException {
        SOAPBodyElement actionElement = getActionElement(reqMsg);
       
        String actName = actionElement.getElementName().getLocalName();

        if (actName.equals (Consts.LIST_DEFINITIONS_REQUEST)) {
            listDefinitions (reqMsg, respMsg);
        } else if (actName.equals (Consts.NEW_DEFINITION_REQUEST)) {
            newDefinition (actionElement, reqMsg, respMsg);
View Full Code Here

                    e.getMessage());
           
            return;
        }
       
        SOAPBodyElement defsNode = createWfxmlResponseNode(respMsg,
                Consts.NEW_DEFINITION_RESPONSE);
        defsNode.addNamespaceDeclaration("",
                "http://www.wfmc.org/2002/XPDL1.0");
        Iterator prefixes = pkg.getNamespacePrefixes();
        while (prefixes.hasNext()) {
            String prefix = (String) prefixes.next();
            String uri = pkg.getNamespaceURI(prefix);
           
            defsNode.addNamespaceDeclaration(prefix, uri);
        }

        importAsChild(defsNode, pkg);
    }
View Full Code Here

            logger.debug("set service properties...");
        }
       
        String receiverKey = getHeaderValue(reqMsg, Consts.RECEIVER_KEY);
       
        SOAPBodyElement propsNode
            = createWfxmlResponseNode(respMsg, Consts.SET_PROPERTIES_RESPONSE);
        appendServiceProperties(receiverKey, propsNode);
    }
View Full Code Here

            logger.debug("get service properties...");
        }
       
        String receiverKey = getHeaderValue(reqMsg, Consts.RECEIVER_KEY);
       
        SOAPBodyElement propsNode
            = createWfxmlResponseNode(respMsg, Consts.GET_PROPERTIES_RESPONSE);
        appendServiceProperties(receiverKey, propsNode);
    }
View Full Code Here

        throws SOAPException, RemoteException {
        if (logger.isDebugEnabled()) {
            logger.debug("list all process definitions...");
        }
       
        SOAPBodyElement defsNode = createWfxmlResponseNode(respMsg,
                Consts.LIST_DEFINITIONS_RESPONSE);
       
        ProcessDefinitionDirectory pdd
            = getWorkflowService().processDefinitionDirectory();
       
        Collection procdefs = pdd.processDefinitions();
        for (Iterator i = procdefs.iterator(); i.hasNext ();) {
            ProcessDefinition pd = (ProcessDefinition)i.next ();
            try {
                if (!pdd.isEnabled(pd.packageId(), pd.processId())) {
                    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

     * @see de.danet.an.workflow.clients.wfxml.AbstractResponseGenerator#evaluate(javax.xml.soap.SOAPMessage,
     *      javax.xml.soap.SOAPMessage)
     */
    public void evaluate(SOAPMessage reqMsg, SOAPMessage respMsg)
            throws SOAPException {
        SOAPBodyElement actionElement = getActionElement(reqMsg);

        String actName = actionElement.getElementName().getLocalName();

        try {
            if (actName.equals(Consts.GET_DEFINITION_REQUEST)) {
                getDefinition(actionElement, reqMsg, respMsg);
            } else if (actName.equals(Consts.SET_DEFINITION_REQUEST)) {
View Full Code Here

                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        }

        SOAPBodyElement defNode = createWfxmlResponseNode(respMsg,
                Consts.GET_DEFINITION_RESPONSE);

        SAXEventBuffer sax = pd.toSAX();
        importSAXAsChild(respMsg, defNode, sax);
    }
View Full Code Here

TOP

Related Classes of javax.xml.soap.SOAPBodyElement

Copyright © 2018 www.massapicom. 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.