Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPortType.xml()


        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;
View Full Code Here


          WsdlBindingOperation newBindingOperation = wsdlBinding.addOperation(node.getOperationName());
          Iterable serviceBindingChildren = serviceBindingOperation.xml().children();
          for (Object object : serviceBindingChildren) {
            if(object instanceof XmlElement){
              XmlElement newBindingOperationChild  = ((XmlElement)object).clone();
              newBindingOperation.xml().addElement(newBindingOperationChild);
             
              //if this is the input element add a header binding because that is missing in the
              // wsdl that this was copied from
              if("input".equals(newBindingOperationChild.getName())){
                XmlElement bindingBody = newBindingOperationChild.element("body");
View Full Code Here

            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;
View Full Code Here

            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;
View Full Code Here

                .create("http://host/2005/11/09/workflowinstace"));
        leadContext.setNodeId("decoder1");
        leadContext.setTimeStep("5");
        leadContext.setServiceInstanceId(URI.create("decoder-instance-10"));

        XmlElement element3 = XMLUtil.xmlElement5ToXmlElement3(definitions
                .xml());
        xsul.wsdl.WsdlDefinitions definitions3 = new xsul.wsdl.WsdlDefinitions(
                element3);

        WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(
View Full Code Here

        writer.write(processString);
        writer.close();
       
        WsdlDefinitions workflowWSDL = wf.getOdeWorkflowWSDL(this.engine.getConfiguration().getDSCURL(),
            this.engine.getConfiguration().getODEURL());
        String workflowWsdlStr = XmlConstants.BUILDER.serializeToStringPretty(workflowWSDL.xml());
        writer = new FileWriter(wsdlFile);
        writer.write(workflowWsdlStr);
       
        Map<String, WsdlDefinitions> wsdlMap = wf.getOdeServiceWSDLs(
            this.engine.getConfiguration().getDSCURL(),
View Full Code Here

    XmlElement wsdlsElement = workflowElement.addElement(NS_XWF, WSDLS_TAG);
    for (String id : wsdls.keySet()) {
      WsdlDefinitions wsdl = wsdls.get(id);
      XmlElement wsdlElement = wsdlsElement.addElement(NS_XWF, WSDL_TAG);
      wsdlElement.setAttributeValue(NS_XWF, ID_ATTRIBUTE, id);
      wsdlElement.setText(XMLUtil.xmlElementToString(wsdl.xml()));
    }

    // Image
    if (this.image != null) {
      try {
View Full Code Here

            || (id.startsWith("{") && id.endsWith("}"))) {
          QName wsdlQname = new QName(NS_XWF.getName(),
              WSDLUtil.getFirstOperationName(wsdl,
                  WSDLUtil.getFirstPortTypeQName(wsdl)));
          id = wsdlQname.toString();
          wsdl.xml().setAttributeValue("name",
              wsdlQname.getLocalPart());
        }
      }
      WSDLCleaner.cleanWSDL(wsdl);
      this.odeWsdlMap.put(id, wsdl);
View Full Code Here

                File file = File.createTempFile(".xbaya-"
                        + portTypeQName.getLocalPart(),
                        XBayaConstants.WSDL_SUFFIX);
                this.tmpWSDLFiles.add(file);
                XMLUtil.saveXML(wsdl.xml(), file);

                String wsdlID = JythonScript.getWSDLID(node);
                String wsdlURL = file.toURL().toString();
                arguments.add("-" + wsdlID);
                arguments.add(wsdlURL);
View Full Code Here

    while(iterator.hasNext()){
      String id = iterator.next();
      WsdlDefinitions wsdl = wsdls.get(id);
      XmlElement importElement = process.xml().newElement(process.xml().getNamespace(), "import");
      importElement.setAttributeValue("importType", "http://schemas.xmlsoap.org/wsdl/");
      importElement.setAttributeValue("location", wsdl.xml().attributeValue("name")+".wsdl");
      importElement.setAttributeValue("namespace", wsdl.getTargetNamespace());
      process.xml().addChild(0, importElement);
     
    }
   
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.