Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPortType


    }

    private QName getOutputElementName(WSNode node) throws GraphException {
        WSComponent component = node.getComponent();
        String portTypeName = component.getPortTypeQName().getLocalPart();
        WsdlPortType portType = component.getWSDL().getPortType(portTypeName);
        WsdlPortTypeOperation operation = portType.getOperation(component.getOperationName());
        QName message = operation.getOutput().getMessage();
        WsdlMessage wsdlMessage = component.getWSDL().getMessage(message.getLocalPart());
        Iterator<WsdlMessagePart> iterator = wsdlMessage.parts().iterator();
        QName inputName = null;
        if (iterator.hasNext()) {
View Full Code Here


     */
    public WorkflowComponent(WsdlDefinitions wsdl, QName portTypeQName, String operationName) throws ComponentException {
        super(wsdl, portTypeQName, operationName);
        try {
            // Get template ID from WSDL
            WsdlPortType portType = this.wsdl.getPortType(portTypeQName.getLocalPart());
            XmlElement templateIDElement = portType.xml().element(GPEL_NAMESPACE, WORKFLOW_TEMPLATE_ID_TAG);
            String templateIDString = templateIDElement.requiredText();
            this.templateID = new URI(templateIDString);
        } catch (URISyntaxException e) {
            throw new ComponentException(e);
        }
View Full Code Here

     * @throws ComponentException
     */
    public static URI getWorkflowTemplateID(WsdlDefinitions definitions) throws ComponentException {
        try {
            // Get template ID from WSDL
            WsdlPortType portType = WSDLUtil.getFirstPortType(definitions);
            XmlElement templateIDElement = portType.xml().element(GPEL_NAMESPACE, WORKFLOW_TEMPLATE_ID_TAG);
            if (templateIDElement == null) {
                // Not a workflow
                return null;
            } else {
                String templateIDString = templateIDElement.requiredText();
View Full Code Here

     */
    public static List<WSComponent> createComponents(WsdlDefinitions wsdl) throws ComponentException {
        List<WSComponent> components = new ArrayList<WSComponent>();
        try {
            QName portTypeQName = WSDLUtil.getFirstPortTypeQName(wsdl);
            WsdlPortType portType = wsdl.getPortType(portTypeQName.getLocalPart());
            for (WsdlPortTypeOperation operation : portType.operations()) {
                String operationName = operation.getOperationName();
                WSComponent component = createComponent(wsdl, portTypeQName, operationName);
                components.add(component);
            }
        } catch (Exception e) {
View Full Code Here

            if (operationName == null) {
                operationName = WSDLUtil.getFirstOperationName(wsdl, portTypeQName);
            }

            // check if it's WSComponent or WorkflowComponent
            WsdlPortType portType = wsdl.getPortType(portTypeQName.getLocalPart());
            XmlElement templateIDElement = portType.xml().element(WorkflowComponent.GPEL_NAMESPACE,
                    WorkflowComponent.WORKFLOW_TEMPLATE_ID_TAG);
            WSComponent component;
            if (templateIDElement == null) {
                component = new WSComponent(wsdl, portTypeQName, operationName);
            } else {
View Full Code Here

                }
            }
            this.description = buf.toString();
        }

        WsdlPortType portType = this.wsdl.getPortType(this.portTypeQName.getLocalPart());
        if (portType == null) {
            throw new ComponentException("portType, " + this.portTypeQName + " is not defined.");
        }
        parsePortType(portType);
    }
View Full Code Here

     * @throws GraphException
     */
    private QName getInputElementName(WSNode node) throws GraphException {
        WSComponent component = node.getComponent();
        String portTypeName = component.getPortTypeQName().getLocalPart();
        WsdlPortType portType = component.getWSDL().getPortType(portTypeName);
        WsdlPortTypeOperation operation = portType.getOperation(component.getOperationName());
        QName message = operation.getInput().getMessage();
        WsdlMessage wsdlMessage = component.getWSDL().getMessage(message.getLocalPart());
        Iterator<WsdlMessagePart> iterator = wsdlMessage.parts().iterator();
        QName inputName = null;
        if (iterator.hasNext()) {
View Full Code Here

    }

    private QName getOutputElementName(WSNode node) throws GraphException {
        WSComponent component = node.getComponent();
        String portTypeName = component.getPortTypeQName().getLocalPart();
        WsdlPortType portType = component.getWSDL().getPortType(portTypeName);
        WsdlPortTypeOperation operation = portType.getOperation(component.getOperationName());
        QName message = operation.getOutput().getMessage();
        WsdlMessage wsdlMessage = component.getWSDL().getMessage(message.getLocalPart());
        Iterator<WsdlMessagePart> iterator = wsdlMessage.parts().iterator();
        QName inputName = null;
        if (iterator.hasNext()) {
View Full Code Here

    private void addReceive(ReceiveNode node, GpelSequence sequence) {
        String id = node.getID();
        String operationName = id;

        // Create this operation and type in WSDL.
        WsdlPortType portType = this.workflowWSDL.addReceivePortType(operationName, node);
        QName portTypeQName = portType.getQName();

        // Partner link
        String partnerLinkName = createPartnerLinkName(id);
        XmlNamespace partnerLinkTypeNS = this.targetNamespace;
        String partnerLinkTypeName = id + PARTNER_LINK_TYPE_SUFFIX;
View Full Code Here

                        // now go through the WSDLS and find the one with the proper port type
                        Set<String> keys = wsdls.keySet();
                        for (String key : keys) {
                            WsdlDefinitions wsdl = wsdls.get(key);
                            WsdlPortType portType = wsdl.getPortType(portTypeQname.getLocalPart());
                            if (null != portType && portType.getQName().equals(portTypeQname)) {
                                // this is the right porttype so extract the service and you will be done
                                Iterator<WsdlService> svcIterator = wsdl.services().iterator();
                                String nsPrefix = null;
                                if (svcIterator.hasNext()) {
                                    WsdlService plService = svcIterator.next();
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlPortType

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.