Examples of WsdlMessagePart


Examples of xsul5.wsdl.WsdlMessagePart

            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();
              while(copyItr.hasNext()){
                GpelAssignCopy copyItm = copyItr.next();
                childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                if(messagePartName == null){
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

    for (WsdlPortType wsdlPortType : servicePortTypes) {
     
      serviceOperation = wsdlPortType.getOperation(operationName);
      if(serviceOperation != null){
        QName inputMessageName = serviceOperation.getInput().getMessage();
        WsdlMessagePart part = WSDLUtil.getfirst(serviceWSDL.getMessage(inputMessageName.getLocalPart()).parts());
       
        nsPrefix = part.getElement().getPrefix();
        oldNSPrefix = nsPrefix;
        introduceNewNS = false;
        while( null != wsdl.xml().lookupNamespaceByPrefix(nsPrefix)){
          //this namespace is already there so keep adding control at the end and check for
          //its existance
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

        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()) {
        WsdlBinding wsdlBinding = (WsdlBinding) bindingItr.next();
        Iterator<WsdlBindingOperation> operationsItr = wsdlBinding
            .operations().iterator();
        while (operationsItr.hasNext()) {
          WsdlBindingOperation wsdlBindingOperation = (WsdlBindingOperation) operationsItr
              .next();
          org.xmlpull.infoset.XmlElement input = wsdlBindingOperation
              .xml().element(INPUT);
          org.xmlpull.infoset.XmlElement body = input.element(BODY);
          if(body == null){
            //This is a HTTP binding so continue with the next
            continue;
           
          }
         
          body.setAttributeValue(PARTS, INPUT);
          XmlNamespace ns = body.getNamespace();

          org.xmlpull.infoset.XmlElement header = input.newElement(
              ns, HEADER);
          header.setAttributeValue(PART, LEAD_HEADER);
          header.setAttributeValue(USE, LITERAL);
          String inputMessage = findInputMessage(
              wsdlBindingOperation, wsdl);
          header.setAttributeValue(MESSAGE, inputMessage);
          body.removeAttribute(body.attribute(PARTS));
          String inputPartName = null;

          WsdlMessage wsdlMessage = wsdl
              .getMessage(findInputMessaQname(
                  wsdlBindingOperation, wsdl).getLocalPart());
          Iterable<WsdlMessagePart> parts = wsdlMessage.parts();
          Iterator<WsdlMessagePart> partsItr = parts.iterator();
          while (partsItr.hasNext()) {
            WsdlMessagePart wsdlMessagePart = (WsdlMessagePart) partsItr
                .next();
            if (!LEAD_HEADER.equals(wsdlMessagePart.getName())) {
              inputPartName = wsdlMessagePart.getName();
              break;
            }
          }

          if (null == inputPartName) {
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

            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()) {
                WsdlBinding wsdlBinding = (WsdlBinding) bindingItr.next();
                Iterator<WsdlBindingOperation> operationsItr = wsdlBinding.operations().iterator();
                while (operationsItr.hasNext()) {
                    WsdlBindingOperation wsdlBindingOperation = (WsdlBindingOperation) operationsItr.next();
                    org.xmlpull.infoset.XmlElement input = wsdlBindingOperation.xml().element(INPUT);
                    org.xmlpull.infoset.XmlElement body = input.element(BODY);
                    if (body == null) {
                        // This is a HTTP binding so continue with the next
                        continue;

                    }

                    body.setAttributeValue(PARTS, INPUT);
                    XmlNamespace ns = body.getNamespace();

                    org.xmlpull.infoset.XmlElement header = input.newElement(ns, HEADER);
                    header.setAttributeValue(PART, LEAD_HEADER);
                    header.setAttributeValue(USE, LITERAL);
                    String inputMessage = findInputMessage(wsdlBindingOperation, wsdl);
                    header.setAttributeValue(MESSAGE, inputMessage);
                    body.removeAttribute(body.attribute(PARTS));
                    String inputPartName = null;

                    WsdlMessage wsdlMessage = wsdl.getMessage(findInputMessaQname(wsdlBindingOperation, wsdl)
                            .getLocalPart());
                    Iterable<WsdlMessagePart> parts = wsdlMessage.parts();
                    Iterator<WsdlMessagePart> partsItr = parts.iterator();
                    while (partsItr.hasNext()) {
                        WsdlMessagePart wsdlMessagePart = (WsdlMessagePart) partsItr.next();
                        if (!LEAD_HEADER.equals(wsdlMessagePart.getName())) {
                            inputPartName = wsdlMessagePart.getName();
                            break;
                        }
                    }

                    if (null == inputPartName) {
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

                        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();
                        while (copyItr.hasNext()) {
                            GpelAssignCopy copyItm = copyItr.next();
                            childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                            if (messagePartName == null) {
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

            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()) {
                WsdlBinding wsdlBinding = (WsdlBinding) bindingItr.next();
                Iterator<WsdlBindingOperation> operationsItr = wsdlBinding.operations().iterator();
                while (operationsItr.hasNext()) {
                    WsdlBindingOperation wsdlBindingOperation = (WsdlBindingOperation) operationsItr.next();
                    org.xmlpull.infoset.XmlElement input = wsdlBindingOperation.xml().element(INPUT);
                    org.xmlpull.infoset.XmlElement body = input.element(BODY);
                    if (body == null) {
                        // This is a HTTP binding so continue with the next
                        continue;

                    }

                    body.setAttributeValue(PARTS, INPUT);
                    XmlNamespace ns = body.getNamespace();

                    org.xmlpull.infoset.XmlElement header = input.newElement(ns, HEADER);
                    header.setAttributeValue(PART, LEAD_HEADER);
                    header.setAttributeValue(USE, LITERAL);
                    String inputMessage = findInputMessage(wsdlBindingOperation, wsdl);
                    header.setAttributeValue(MESSAGE, inputMessage);
                    body.removeAttribute(body.attribute(PARTS));
                    String inputPartName = null;

                    WsdlMessage wsdlMessage = wsdl.getMessage(findInputMessaQname(wsdlBindingOperation, wsdl)
                            .getLocalPart());
                    Iterable<WsdlMessagePart> parts = wsdlMessage.parts();
                    Iterator<WsdlMessagePart> partsItr = parts.iterator();
                    while (partsItr.hasNext()) {
                        WsdlMessagePart wsdlMessagePart = (WsdlMessagePart) partsItr.next();
                        if (!LEAD_HEADER.equals(wsdlMessagePart.getName())) {
                            inputPartName = wsdlMessagePart.getName();
                            break;
                        }
                    }

                    if (null == inputPartName) {
View Full Code Here

Examples of xsul5.wsdl.WsdlMessagePart

                        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();
                        while (copyItr.hasNext()) {
                            GpelAssignCopy copyItm = copyItr.next();
                            childElement.addElement(getElementName(copyItm.getTo().getQuery()));
                            if (messagePartName == null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.