Package xsul5.wsdl

Examples of xsul5.wsdl.WsdlDefinitions


    /**
     * @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

     * @throws ComponentException
     */
    public static List<WSComponent> createComponents(XmlElement componentElement)
            throws ComponentException {
        try {
            WsdlDefinitions definitions = new WsdlDefinitions(componentElement);
            return createComponents(definitions);
        } catch (RuntimeException e) {
            throw new ComponentException(ErrorMessages.COMPONENT_FORMAT_ERROR,
                    e);
        }
View Full Code Here

    Map<WsdlDefinitions, String> ids = new HashMap<WsdlDefinitions, String>();
    // Use LinkedHashMap to preserve the order of WSDLs, which is useful for
    // some unit tests.

    for (WSNode node : GraphUtil.getNodes(this.graph, WSNode.class)) {
      WsdlDefinitions wsdl = node.getComponent().getWSDL();
      if (wsdls.containsValue(wsdl)) {
        String id = ids.get(wsdl);
        node.setWSDLID(id);
      } else {
        // Assign unique key
View Full Code Here

    workflowElement.addElement(this.graph.toXML());

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

    // This map is to avoid creating multiple instances for the a component
    Map<WSComponentKey, WSComponent> components = new HashMap<WSComponentKey, WSComponent>();
    for (WSNode node : GraphUtil.getWSNodes(this.graph)) {
      String id = node.getWSDLID();
      logger.finest("id: " + id);
      WsdlDefinitions wsdl = this.wsdlMap.get(id);

      if (wsdl == null) {
        // XXX This happens while loading a workflow that is created by
        // the version 2.2.6_2 or below from GPEL.
        // Need to look for wsdl manually.
View Full Code Here

TOP

Related Classes of xsul5.wsdl.WsdlDefinitions

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.