Package xsul.xwsif_runtime

Examples of xsul.xwsif_runtime.WSIFClient.addHandler()


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


      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

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

    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

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

    leadContextHeader.setUserDn(dn);
    StickySoapHeaderHandler soapHeaderHandler = new StickySoapHeaderHandler(
        "use-lead-header", leadContextHeader);

    WSIFClient wcl = XmlBeansWSIFRuntime.newClient(wsdlLoc);
    wcl.addHandler(soapHeaderHandler);

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

    return stub;
View Full Code Here

        this.invoker = InvokerFactory.createInvoker(this.portTypeQName, definitions, this.gfacURL, this.messageBoxURL,
                builder, true);
        this.invoker.setup();

        WSIFClient client = this.invoker.getClient();
        client.addHandler(handler);

        WsdlResolver resolver = WsdlResolver.getInstance();
        // Get the concrete WSDL from invoker.setup() and set it to the
        // notifier.
View Full Code Here

        this.invoker = InvokerFactory.createInvoker(this.portTypeQName, definitions, this.gfacURL, this.messageBoxURL,
                builder, true);
        this.invoker.setup();

        WSIFClient client = this.invoker.getClient();
        client.addHandler(handler);

        WsdlResolver resolver = WsdlResolver.getInstance();
        // Get the concrete WSDL from invoker.setup() and set it to the
        // notifier.
View Full Code Here

        // 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.builder);
        client.addHandler(notificationHandler);
        return this.invoker.invoke();
    }

    /**
     * @see org.apache.airavata.xbaya.invoker.Invoker#getOutputs()
View Full Code Here

        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");
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.