Examples of XMLNamespace


Examples of org.xmlpull.infoset.XmlNamespace

     *
     * @param wsdl
     */
    private void addCrosscutImportsIfNecessary(WsdlDefinitions wsdl) {
        org.xmlpull.infoset.XmlElement types = wsdl.getTypes();
        XmlNamespace schemaNs = BUILDER.newNamespace("xsd", "http://www.w3.org/2001/XMLSchema");
        Iterable<org.xmlpull.infoset.XmlElement> schemas = types.elements(null, SCHEMA);
        for (org.xmlpull.infoset.XmlElement schema : schemas) {

            if (WSDLUtil.attributeExist(schema, "type", "crosscutns:LeadCrosscutParameters")) {
                // so its there now check whether the impport is already there
View Full Code Here

Examples of org.xmlpull.infoset.XmlNamespace

     */
    public static EventType getType(XmlElement event) {
        if (event == null) {
            throw new IllegalArgumentException("null");
        }
        XmlNamespace ns = event.getNamespace();
        String name = event.getName();
        if (XBAYA_EVENTS_NS.equals(ns)) {
            if (GOT_RESULT_EVENT_TAG.equals(name)) {
                return EventType.WORKFLOW_TERMINATED;
            } else {
View Full Code Here

Examples of org.xmlpull.infoset.XmlNamespace

    }

    private void addInitialReceive(GpelSequence sequence) {
        // Create a partner link
        String partnerLinkName = WORKFLOW_PARTNER_LINK;
        XmlNamespace partnerLinkTypeNS = this.workflowWSDL.getTargetNamespace();
        String partnerLinkTypeName = this.workflowPrefix + PARTNER_LINK_TYPE_SUFFIX;
        String myRollName = this.workflowPrefix + MY_ROLE_SUFFIX;

        this.process.addPartnerLink(partnerLinkName, partnerLinkTypeNS, partnerLinkTypeName, myRollName, null);
        this.workflowWSDL.addPartnerLinkTypeAndRoll(partnerLinkTypeName, myRollName,
View Full Code Here

Examples of org.xmlpull.infoset.XmlNamespace

        WSComponent wsdlComponent = node.getComponent();
        String operation = wsdlComponent.getOperationName();

        QName portTypeQName = wsdlComponent.getPortTypeQName();
        XmlNamespace namespace = XMLUtil.declareNamespaceIfNecessary(id.toLowerCase(), portTypeQName.getNamespaceURI(),
                false, this.process.xml());

        // Variable
        String inputVariableName = id + INPUT_SUFFIX;
        this.process.addMessageVariable(inputVariableName, namespace, portTypeQName.getLocalPart());
        String outputVariableName = id + OUTPUT_SUFFIX;
        this.process.addMessageVariable(outputVariableName, namespace, portTypeQName.getLocalPart());

        // Assign
        List<GpelAssignCopy> copies = new ArrayList<GpelAssignCopy>();
        for (Port port : node.getInputPorts()) {
            Port fromPort = port.getFromPort();
            if (fromPort == null) {
                // optional input
                continue;
            }
            GpelAssignCopyFrom from = createAssignCopyFrom(port);
            GpelAssignCopyTo to = createAssignCopyTo(port, true);

            GpelAssignCopy copy = new GpelAssignCopy(this.bpelNS, from, to);
            copies.add(copy);
        }

        GpelAssign assign = new GpelAssign(this.bpelNS, copies);
        sequence.addActivity(assign);

        PartnerLinkRole partnerRoll = this.workflowWSDL.getPartnerRoll(portTypeQName);
        if (partnerRoll == null) {
            String partnerLinkTypeName = id + PARTNER_LINK_TYPE_SUFFIX;
            String partnerRollName = id + PARTNER_ROLE_SUFFIX;
            partnerRoll = this.workflowWSDL.addPartnerLinkTypeAndRoll(partnerLinkTypeName, partnerRollName,
                    portTypeQName);
        }
        PartnerLinkType partnerLinkType = partnerRoll.getPartnerLinkType();

        // partnerLink
        String partnerLinkName = createPartnerLinkName(id);
        XmlNamespace partnerLinkTypeNS = this.targetNamespace;
        this.process.addPartnerLink(partnerLinkName, partnerLinkTypeNS, partnerLinkType.getName(), null,
                partnerRoll.getName());

        // Invoke
        GpelInvoke invoke = new GpelInvoke(this.bpelNS, partnerLinkName, namespace, portTypeQName.getLocalPart(),
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlNamespace

            Thread.sleep(msec);
        } catch (InterruptedException e) {
            logger.caught(e);
        }

        XmlNamespace namespace = XmlConstants.BUILDER.newNamespace("typens",
                "http://www.extreme.indiana.edu/math/arraygen/xsd/");
        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace,
                "ArrayGeneratorOutput");

        XmlElement arrayElement = outputElement.addElement("output");
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlNamespace

        int z = x * y;

        String zString = "" + z;

        XmlNamespace namespace = XmlConstants.BUILDER.newNamespace(
                "multipliertypens",
                "http://www.extreme.indiana.edu/math/multiplier/xsd/");
        XmlElement outputElement = XmlConstants.BUILDER.newFragment(namespace,
                "MultiplyOutput");
        XmlElement zElement = outputElement.addElement("z");
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.