Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPortType


           
            //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


                        // 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

            wsdl.xml().declareNamespace(BUILDER.newNamespace(LC, LEAD_CONTEXT_HEADER_NS));

            Iterator<WsdlPortType> iterator = wsdl.portTypes().iterator();
            while (iterator.hasNext()) {
                WsdlPortType portType = iterator.next();
                Iterator<WsdlPortTypeOperation> operations = portType.operations().iterator();
                while (operations.hasNext()) {
                    WsdlPortTypeOperation operation = operations.next();
                    WsdlMessagePart leadHeaderPart = new WsdlMessagePart(LEAD_HEADER);
                    leadHeaderPart.setName(LEAD_HEADER);
                    // we hand set this element to xml because when you use the
View Full Code Here

        return message.getPrefix() + ":" + message.getLocalPart();
    }

    private QName findInputMessaQname(WsdlBindingOperation wsdlBindingOperation, WsdlDefinitions wsdl) {
        String operationName = wsdlBindingOperation.getName();
        WsdlPortType portType = wsdl.getPortType(wsdlBindingOperation.getBinding().getPortType().getLocalPart());
        WsdlPortTypeOperation operation = portType.getOperation(operationName);
        QName message = operation.getInput().getMessage();
        return message;
    }
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

        String partName = INPUT_PART_NAME;
        String messageElementName = operationName + INPUT_MESSAGE_ELEMENT_SUFFIX;
        WsdlMessage inputMessage = createMessage(messageName, partName, messageElementName);

        String portTypeName = operationName;
        WsdlPortType portType = createPortType(portTypeName, operationName, inputMessage, null);
        return portType;
    }
View Full Code Here

        return createPortType(this.graph.getID(), workflowOperationName, inputMessage, outputMessage);
    }

    private WsdlPortType createPortType(String portTypeName, String operationName, WsdlMessage inputMessage,
            WsdlMessage outputMessage) {
        WsdlPortType portType = this.definitions.addPortType(portTypeName);
        WsdlPortTypeOperation operation = portType.addOperation(operationName);
        if (inputMessage != null) {
            operation.setInput(inputMessage);
        }
        if (outputMessage != null) {
            operation.setOutput(outputMessage);
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.