Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPortTypeOperation


        }
        parsePortType(portType);
    }

    private void parsePortType(WsdlPortType portType) throws ComponentException {
        WsdlPortTypeOperation operation = portType.getOperation(this.operationName);
        if (operation == null) {
            throw new ComponentException("Operation, " + this.operationName + " is not defined.");
        }
        parseOperation(operation);
    }
View Full Code Here


     */
    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()) {
            inputName = iterator.next().getElement();
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()) {
            inputName = iterator.next().getElement();
View Full Code Here

            // TODO null check
            XmlElement eventElement = event.getEvent();
            XmlElement result = eventElement.element(MonitorUtil.REQUEST);
            XmlElement body = result.element(MonitorUtil.BODY);
            XmlElement soapBody = body.element(XmlConstants.S_BODY);
            WsdlPortTypeOperation wsdlPortTypeOperation;
            try {
                wsdlPortTypeOperation = WSDLUtil.getFirstOperation(this.modifiedWorkflow.getWorkflowWSDL());
            } catch (UtilsException e) {
                throw new MonitorException(e);
            }
            XmlElement part = soapBody.element(wsdlPortTypeOperation.getName());
            XmlElement parameter = part.element(nodeID);
            // TODO support complex type.
            String value = parameter.requiredText();
            return value;
        }
View Full Code Here

            // TODO null check
            XmlElement eventElement = event.getEvent();
            XmlElement result = eventElement.element(MonitorUtil.REQUEST);
            XmlElement body = result.element(MonitorUtil.BODY);
            XmlElement soapBody = body.element(XmlConstants.S_BODY);
            WsdlPortTypeOperation wsdlPortTypeOperation;
            try {
                wsdlPortTypeOperation = WSDLUtil.getFirstOperation(this.modifiedWorkflow.getWorkflowWSDL());
            } catch (UtilsException e) {
                throw new MonitorException(e);
            }
            XmlElement part = soapBody.element(wsdlPortTypeOperation.getName());
            XmlElement parameter = part.element(nodeID);
            // TODO support complex type.
            String value = parameter.requiredText();
            return value;
        }
View Full Code Here

        }
        parsePortType(portType);
    }

    private void parsePortType(WsdlPortType portType) throws ComponentException {
        WsdlPortTypeOperation operation = portType.getOperation(this.operationName);
        if (operation == null) {
            throw new ComponentException("Operation, " + this.operationName + " is not defined.");
        }
        parseOperation(operation);
    }
View Full Code Here

     */
    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()) {
            inputName = iterator.next().getElement();
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()) {
            inputName = iterator.next().getElement();
View Full Code Here

            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
                    // API it doent add the namespace correctly
                    leadHeaderPart.xml().setAttributeValue(ELEMENT, LC_CONTEXT);

                    wsdl.getMessage(operation.getInput().getMessage().getLocalPart()).addPart(leadHeaderPart);
                }
            }

            Iterator<WsdlBinding> bindingItr = wsdl.bindings().iterator();
            while (bindingItr.hasNext()) {
View Full Code Here

    }

    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);
        }
        return portType;
    }
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlPortTypeOperation

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.