Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlPort


   
   
   
//    find the binding for the operation in the service wsdl
    Iterable<WsdlBinding> serviceBindings = serviceWSDL.bindings();
    WsdlBinding serviceBinding = null;
    for (WsdlBinding wsdlBinding : serviceBindings) {
      if(wsdlBinding.getPortType().equals(servicePortType.getQName())){
        serviceBinding = wsdlBinding;
        break;
      }
    }
    WsdlBindingOperation serviceBindingOperation = serviceBinding.getOperation(node.getOperationName());
   
    //find the binding in the final wsdl
    Iterator<WsdlPortType> portTypeItr = wsdl.portTypes().iterator();
    if(portTypeItr.hasNext()){
      WsdlPortType portType = portTypeItr.next();
View Full Code Here


        }
      }

      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
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

      if(wsdlBinding.getPortType().equals(servicePortType.getQName())){
        serviceBinding = wsdlBinding;
        break;
      }
    }
    WsdlBindingOperation serviceBindingOperation = serviceBinding.getOperation(node.getOperationName());
   
    //find the binding in the final wsdl
    Iterator<WsdlPortType> portTypeItr = wsdl.portTypes().iterator();
    if(portTypeItr.hasNext()){
      WsdlPortType portType = portTypeItr.next();
      Iterable<WsdlBinding> bindings = wsdl.bindings();
      for (WsdlBinding wsdlBinding : bindings) {
        if(wsdlBinding.getPortType().equals(portType.getQName())){
          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

    /**
     * @throws WsdlException
     */
    public void test() throws WsdlException {
        WsdlDefinitions definitions = WsdlResolver.getInstance().loadWsdl(
                new File(".").toURI(), new File(SAMPLE_AWSDL).toURI());
        URI dscURL = this.configuration.getDSCURL();
        logger.info("dscURL: " + dscURL);
        DSCUtil.convertToCWSDL(definitions, dscURL);

        logger.info(definitions.xmlStringPretty());

        // client
        int clientPort = 0;
        WSIFAsyncResponsesCorrelator correlator = new XsulSoapHttpWsaResponsesCorrelator(
                clientPort);
        String serverLoc = ((XsulSoapHttpWsaResponsesCorrelator) correlator)
                .getServerLocation();
        logger.finest("client is waiting at " + serverLoc);

        // LEAD Context Header
        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
                .getLeadContextHeader();
        leadContext.setWorkflowId(URI
                .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

        // ID to retrieve the workflow instance
        URI instanceID = instance.getInstanceId();
        logger.info("instanceID: " + instanceID);

        // Start the workflow instance.
        WsdlDefinitions wsdl = this.workflowClient.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
View Full Code Here

        // Instantiate the workflow template.
        GcInstance instance = client.instantiate(workflow, this.configuration
                .getDSCURL());

        // Start the workflow instance.
        WsdlDefinitions wsdl = client.start(instance);

        logger.info(wsdl.xmlStringPretty());
    }
View Full Code Here

        // ID to retrieve the workflow instance
        URI instanceID = instance.getInstanceId();
        logger.info("instanceID: " + instanceID);

        // Start the workflow instance.
        WsdlDefinitions wsdl = client.start(instance);

        // Create lead context.
        LeadContextHeaderHelper leadContextHelper = new LeadContextHeaderHelper();
        leadContextHelper.setXBayaConfiguration(this.configuration);
        LeadContextHeader leadContext = leadContextHelper
View Full Code Here

        String processString = process.xmlStringPretty();
        FileWriter writer = new FileWriter(bpelFile);
        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

    // Create the invoker
    LEADWorkflowInvoker invoker = null;
    try {
     
      WsdlDefinitions wsdl = workflow.getOdeInvokableWSDL(configuration.getDSCURL(), configuration.getODEURL());
     
      LeadContextHeader leadContext = WSDLUtil.buildLeadContextHeader(this.engine,
          monitorConfiguration, StringUtil.convertToJavaIdentifier(engine
              .getWorkflow().getName()),resourceMapping);
      ///////////////////////////////////////
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlPort

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.