Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlMessage


        // <message>
        //
        String messageName = operationName + INPUT_MESSAGE_SUFFIX;
        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


    private WsdlMessage createOutputMessage() {
        return createMessage(workflowOutputMessageName, OUTPUT_PART_NAME, workflowOutputMessageElementName);
    }

    private WsdlMessage createMessage(String messageName, String partName, String messageElementName) {
        WsdlMessage outMessage = this.definitions.addMessage(messageName);
        outMessage.addPartWithElement(partName, new QName(this.typesNamespace.getName(), messageElementName,
                this.typesNamespace.getPrefix()));
        return outMessage;
    }
View Full Code Here

            if (null != pType && null != (operation = pType.getOperation(opName))) {

                if (input) {
                    WsdlPortTypeInput messageRef = operation.getInput();
                    if (null != messageRef && null != messageRef.getMessage()) {
                        WsdlMessage message = wsdlDefinitions.getMessage(messageRef.getMessage().getLocalPart());
                        if (null != message) {
                            return new QName(wsdlDefinitions.getTargetNamespace(), message.getName(), key);
                        }
                    }
                } else {
                    xsul5.wsdl.WsdlPortTypeOutput messageRef = operation.getOutput();
                    if (null != messageRef && null != messageRef.getMessage()) {
                        WsdlMessage message = wsdlDefinitions.getMessage(messageRef.getMessage().getLocalPart());
                        if (null != message) {
                            return new QName(wsdlDefinitions.getTargetNamespace(), message.getName(), key);
                        }
                    }
                }

            }
View Full Code Here

    private void parseOperation(WsdlPortTypeOperation operation) throws ComponentException {

        WsdlPortTypeInput input = operation.getInput();
        // No input is possible.
        if (input != null) {
            WsdlMessage inputMessage = input.lookupMessage();
            this.inputs = parseMessage(inputMessage, true);
        }

        WsdlPortTypeOutput output = operation.getOutput();
        // No output is possible.
        if (output != null) {
            WsdlMessage outputMessage = output.lookupMessage();
            this.outputs = parseMessage(outputMessage, false);
        }
    }
View Full Code Here

    private void parseOperation(WsdlPortTypeOperation operation) throws ComponentException {

        WsdlPortTypeInput input = operation.getInput();
        // No input is possible.
        if (input != null) {
            WsdlMessage inputMessage = input.lookupMessage();
            this.inputs = parseMessage(inputMessage, true);
        }

        WsdlPortTypeOutput output = operation.getOutput();
        // No output is possible.
        if (output != null) {
            WsdlMessage outputMessage = output.lookupMessage();
            this.outputs = parseMessage(outputMessage, false);
        }
    }
View Full Code Here

        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();
        } else {
            throw new GraphException("No input part found for WS Node" + node.getName());
View Full Code Here

        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();
        } else {
            throw new GraphException("No output part found for WS Node" + node.getName());
View Full Code Here

    private void parseOperation(WsdlPortTypeOperation operation) throws ComponentException {

        WsdlPortTypeInput input = operation.getInput();
        // No input is possible.
        if (input != null) {
            WsdlMessage inputMessage = input.lookupMessage();
            this.inputs = parseMessage(inputMessage, true);
        }

        WsdlPortTypeOutput output = operation.getOutput();
        // No output is possible.
        if (output != null) {
            WsdlMessage outputMessage = output.lookupMessage();
            this.outputs = parseMessage(outputMessage, false);
        }
    }
View Full Code Here

        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();
        } else {
            throw new GraphException("No input part found for WS Node" + node.getName());
View Full Code Here

        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();
        } else {
            throw new GraphException("No output part found for WS Node" + node.getName());
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlMessage

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.