Examples of WSIFClient


Examples of xsul.xwsif_runtime.WSIFClient

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

        WSIFClient wclient = WSIFRuntime.getDefault().newClientFor(
                definitions3, "TestCMD_Example1SoapPort");
        StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
                "use-lead-header", leadContext);

        wclient.addHandler(handler);
        wclient.useAsyncMessaging(correlator);
        wclient.setAsyncResponseTimeoutInMs(33000L);

        WSIFPort port = wclient.getPort();
        WSIFOperation operation = port.createOperation("Run");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

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

        WSIFClient wclient = WSIFRuntime.newClient(wsdlLoc).addHandler(
                new StickySoapHeaderHandler("use-lead-header", leadContext))
                .useAsyncMessaging(correlator).setAsyncResponseTimeoutInMs(
                        33000L); // to simplify testing set to just few
        // seconds

        WSIFPort port = wclient.getPort();
        WSIFOperation operation = port.createOperation("generate");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

     * @return The output
     * @throws ComponentRegistryException
     */
    public WSIFMessage sendSOAPMessage(String url, Object[][] args,
            String opName) throws ComponentRegistryException {
        WSIFClient wclient = WSIFRuntime.newClient(url);
        return sendSOAPMessage(wclient, args, opName);
    }
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

            XBayaSecurity.getTrustedCertificates());
        Provider secureProvider = new Provider(secureInvoker);
        service.addLocalProvider(secureProvider);
      }
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(
          service, null);

      // to make it compatible even though some unused operation is
      // removed from the WSDL.
      client.allowMethodsUnmappedToWsdlOperations(true);
    } catch (RuntimeException e) {
      throw new MyLeadException(e);
    }
  }
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

          .getTrustedCertificates());
      Provider secureProvider = new Provider(secureInvoker);
      service.addLocalProvider(secureProvider);
    }

    WSIFClient wcl = XmlBeansWSIFRuntime.getDefault().newClientFor(service,
        null);
    wcl.addHandler(soapHeaderHandler);

    AgentPortType stub = (AgentPortType) wcl
        .generateDynamicStub(AgentPortType.class);

    return stub;

  }
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

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

            WSIFClient wclient = WSIFRuntime.newClient(wsdlLoc).addHandler(
                    new StickySoapHeaderHandler("use-lead-header", leadContext))
                    .useAsyncMessaging(correlator).setAsyncResponseTimeoutInMs(
                    33000L); // to simplify testing set to just few
            // seconds

            WSIFPort port = wclient.getPort();
            WSIFOperation operation = port.createOperation("deploy");

            WSIFMessage outputMessage = operation.createOutputMessage();
            WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

                + "?wsdl";

        System.err.println("invoking operation MyLEADClient using WSDL from "
                + wsdlLoc);

        WSIFClient wcl = XmlBeansWSIFRuntime.newClient(wsdlLoc);
        AgentPortType stub = (AgentPortType) wcl
                .generateDynamicStub(AgentPortType.class);

        // This doesn't return anything, but prints out an error message to
        // stdout.
        //TODO Fix this and uncomment
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

   * @throws XBayaException
   * @see edu.indiana.extreme.xbaya.jython.lib.invoker.Invoker#invoke()
   */
  public boolean invoke() throws XBayaException {

    WSIFClient client = invoker.getClient();
    //FIXME: Temporary fix
    if (this.leadContext == null) {
       LeadContextHeader lh = new LeadContextHeader(UUID.randomUUID().toString(), "XBaya-User");
       this.leadContext = lh;
    }
    StickySoapHeaderHandler handler = new StickySoapHeaderHandler(
        "use-lead-header", this.leadContext);
    client.addHandler(handler);

    // This handler has to be end to get the entire soap message.
    NotificationHandler notificationHandler = new NotificationHandler(
        this.leadContext);
    client.addHandler(notificationHandler);
    boolean success = this.invoker.invoke();

    // Try to shutdown the service

    if (!noShutDown) {
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

   
    // Create Invoker
    this.invoker = InvokerFactory.createInvoker(this.portTypeQName,
        definitions, this.gfacURL, this.messageBoxURL, leadContext);
    this.invoker.setup();
    WSIFClient client = this.invoker.getClient();
    client.addHandler(handler);


    WsdlResolver resolver = WsdlResolver.getInstance();
    if(-1 != this.gfacURL.toString().indexOf("https") && null != secureInvokerFroRetrivingWSDL ){
      resolver.setSecureInvoker(this.secureInvokerFroRetrivingWSDL);
View Full Code Here

Examples of xsul.xwsif_runtime.WSIFClient

        WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
        WSIFService service = factory.getService(WSDLUtil
                .wsdlDefinitions5ToWsdlDefintions3(definitions));

        WSIFClient client = WSIFRuntime.getDefault()
                .newClientFor(service, null);
        // WSIFClient client =
        // WSIFRuntime.newClient("http://129.79.240.86:7007/AdderService?wsdl");

        // null selects the first port in the first service.

        WSIFPort port = client.getPort();
        WSIFOperation operation = port.createOperation("add");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
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.