Examples of WsdlDefinitions


Examples of xsul.wsdl.WsdlDefinitions

        String message = "Error in finding QName of the service in the WSDL";
        throw new XBayaException(message, e);
      }
    }

    WsdlDefinitions definitions = this.creator
        .createService(this.portTypeQName);

    //FIXME: Should pass the last argument of leadcontextheader
    this.invoker = InvokerFactory.createInvoker(this.portTypeQName,
        definitions, null, this.messageBoxURL, null);
View Full Code Here

Examples of xsul.wsdl.WsdlDefinitions

  /**
   * @see edu.indiana.extreme.xbaya.workflow.WorkflowInvoker#setup()
   */
  public void setup() throws XBayaException {
    try {
      WsdlDefinitions definitions = null;
      if (this.wsdlLocation != null && !this.wsdlLocation.equals("")) {
        WsdlResolver resolver = WsdlResolver.getInstance();
        if(-1 != this.wsdlLocation.indexOf("https") && null != secureInvokerFroRetrivingWSDL ){
          resolver.setSecureInvoker(this.secureInvokerFroRetrivingWSDL);
        }
View Full Code Here

Examples of xsul.wsdl.WsdlDefinitions

     *            The URI of the GFac service
     * @throws XBayaException
     */
    public GFacServiceCreator(URI wsdlURI) throws XBayaException {
        try {
            WsdlDefinitions definitions = WsdlResolver.getInstance().loadWsdl(
                    wsdlURI);
            WSIFService service = WSIFServiceFactory.newInstance().getService(
                    definitions);
            WSIFPort port = service.getPort();
            this.gFacOperation = port.createOperation(CREATE_SERVICE_OPERATION);
View Full Code Here

Examples of xsul.wsdl.WsdlDefinitions

            String wsdl = (String) outputMessage.getObjectPart(WSDL_PART);
            logger.finest("WSDL: " + wsdl);

            XmlElement definitionsElement = XMLUtil.stringToXmlElement3(wsdl);

            this.serviceDefinitions = new WsdlDefinitions(definitionsElement);
            return this.serviceDefinitions;
        } catch (RuntimeException e) {
            String message = "Failed to create a service";
            throw new XBayaException(message, e);
        }
View Full Code Here

Examples of xsul.wsdl.WsdlDefinitions

      throws XBayaException {
    try {
      this.secureInvoker = secureiInvoker;
      WsdlResolver wsdlResolver = WsdlResolver.getInstance();
      wsdlResolver.setSecureInvoker(secureiInvoker);
      WsdlDefinitions definitions = wsdlResolver.loadWsdl(
          wsdlURI);
      WSIFService service = WSIFServiceFactory.newInstance().getService(
          definitions);
      if (this.secureInvoker != null) {
        Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(
View Full Code Here

Examples of xsul.wsdl.WsdlDefinitions

      String wsdl = (String) outputMessage.getObjectPart(WSDL_PART);
      logger.finest("WSDL: " + wsdl);

      XmlElement definitionsElement = XMLUtil.stringToXmlElement3(wsdl);

      this.serviceDefinitions = new WsdlDefinitions(definitionsElement);
      return this.serviceDefinitions;
    } catch (RuntimeException e) {
      String message = "Failed to create a service";
      throw new XBayaException(message, e);
    }
View Full Code Here

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

Examples of xsul5.wsdl.WsdlDefinitions

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

Examples of xsul5.wsdl.WsdlDefinitions

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

Examples of xsul5.wsdl.WsdlDefinitions

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