Package javax.xml.soap

Examples of javax.xml.soap.SOAPBodyElement


                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        }

        SOAPBodyElement instancesNode = createAsapResponseNode(respMsg,
                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


                FaultUtils.setFault(respMsg, e);

                return;
            }
        }
        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

                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        }

        SOAPBodyElement propsNode = createAsapResponseNode(respMsg,
                Consts.GET_PROPERTIES_RESPONSE);
        appendFactoryProperties(respMsg, receiverKey, pd, propsNode);
    }
View Full Code Here

                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());

            return;
        }

        SOAPBodyElement propsNode = createAsapResponseNode(respMsg,
                Consts.SET_PROPERTIES_RESPONSE);
        appendFactoryProperties(respMsg, receiverKey, pd, propsNode);
    }
View Full Code Here

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

        if (actName.equals (Consts.GET_PROPERTIES_REQUEST)) {
            getInstanceProperties(reqMsg, respMsg);
        } else if (actName.equals (Consts.SET_PROPERTIES_REQUEST)) {
            setInstanceProperties(actionElement, reqMsg, respMsg);
View Full Code Here

                    ASAPException.ASAP_INVALID_INSTANCE_KEY, e.getMessage());
           
            return;
        }
    
        SOAPBodyElement propsNode
            = createAsapResponseNode(respMsg, Consts.GET_PROPERTIES_RESPONSE);
       
        try {
            appendInstanceProperties(respMsg, receiverKey, proc, propsNode);
        } catch (ResultNotAvailableException e) {
View Full Code Here

               
                return;
            }
        }
       
        SOAPBodyElement propsNode
            = createAsapResponseNode(respMsg, Consts.SET_PROPERTIES_RESPONSE);
   
        try {
            appendInstanceProperties(respMsg, receiverKey, proc, propsNode);
        } catch (ResultNotAvailableException e) {
View Full Code Here

                    e.getMessage());
           
            return;
        }

        SOAPBodyElement activitiesNode  = createWfxmlResponseNode(respMsg,
                Consts.LIST_ACTIVITIES_RESPONSE);
        activitiesNode.addNamespaceDeclaration(Consts.ASAP_PREFIX,
                Consts.ASAP_NS);
       
        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

                    ASAPException.ASAP_INVALID_STATE_TRANSITION,
                    e.getMessage());
            return;
        }

        SOAPBodyElement stateNode = createAsapResponseNode(respMsg,
                Consts.CHANGE_STATE_RESPONSE);
        stateNode.addNamespaceDeclaration(Consts.ASAP_PREFIX, Consts.ASAP_NS);
       
        SOAPElement newStateElement
            = stateNode.addChildElement("State", Consts.ASAP_PREFIX);
        newStateElement.addTextNode(newAsapState);
   
        if (logger.isDebugEnabled()) {
            logger.debug("changed state of " + proc.name() + "/" + proc.key()
                    + " from " + requestedAsapState + " to " + newAsapState);
View Full Code Here

       
        SOAPBody body = env.getBody();
        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);
       
        return message;
    }
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.