Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPortType


            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


        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

        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

            Map<String, WsdlDefinitions> wsdls) {
        Iterator<String> iterator = wsdls.keySet().iterator();
        while (iterator.hasNext()) {
            String key = (String) iterator.next();
            WsdlDefinitions wsdlDefinitions = wsdls.get(key);
            WsdlPortType pType = wsdlDefinitions.getPortType(portType.getLocalPart());
            WsdlPortTypeOperation operation = null;
            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());
View Full Code Here

                    Iterator<String> keys = wsdls.keySet().iterator();

                    while (keys.hasNext()) {
                        String key = keys.next();
                        WsdlDefinitions wsdl = wsdls.get(key);
                        WsdlPortType portType = wsdl.getPortType(portTypeName);
                        if (null != portType) {
                            WsdlPortTypeOperation wsdlOperation = portType.getOperation(operation);
                            WsdlMessagePart part = wsdl
                                    .getMessage(wsdlOperation.getInput().getMessage().getLocalPart()).parts()
                                    .iterator().next();
                            XmlElement childElement = container.addElement(part.getElement().getLocalPart());
                            Iterator<GpelAssignCopy> copyItr = assign.copyOperations().iterator();
                            while (copyItr.hasNext()) {
                                GpelAssignCopy copyItm = copyItr.next();
                                childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                                if (messagePartName == null) {
                                    messagePartName = copyItm.getTo().xml().attributeValue(PART_STR);
                                }
                            }
                            break;
                        }
                    }
                } else {
                    // reply

                    WsdlPortType portType = workflowWSDL.getPortType(portTypeName);
                    if (null != portType) {
                        WsdlPortTypeOperation wsdlOperation = portType.getOperation(operation);
                        WsdlMessagePart part = workflowWSDL
                                .getMessage(wsdlOperation.getOutput().getMessage().getLocalPart()).parts().iterator()
                                .next();
                        XmlElement childElement = container.addElement(part.getElement().getLocalPart());
                        Iterator<GpelAssignCopy> copyItr = assign.copyOperations().iterator();
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.
View Full Code Here

      WsdlPortType pType = wsdlDefinitions.getPortType(portType.getLocalPart());
      WsdlPortTypeOperation operation = null;
      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

        }
        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.");
        }
View Full Code Here

    Iterator<String> iterator = wsdls.keySet().iterator();
    while (iterator.hasNext()) {
      String key = (String) iterator.next();
      WsdlDefinitions wsdlDefinitions = wsdls.get(key);
      WsdlPortType pType = wsdlDefinitions.getPortType(portType.getLocalPart());
      WsdlPortTypeOperation operation = null;
      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

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.