Package xsul.xwsif_runtime

Examples of xsul.xwsif_runtime.WSIFClient


import xsul.xwsif_runtime.WSIFClient;

public class AdminClient {
    private XregistryPortType proxy;
    public AdminClient(GlobalContext context,String registryServiceWsdlUrl) throws XregistryException{
        WSIFClient client = Utils.createWSIFClient(context, registryServiceWsdlUrl);
        proxy = (XregistryPortType)client.generateDynamicStub(XregistryPortType.class);
    }
View Full Code Here


   * @return xregistryStub
   * @throws XRegistryClientException
   */
  protected static IXregistryPortType createNonSecureServiceStub(String nonSecureXRegistryUrl) throws XRegistryClientException {
   
    WSIFClient client = XmlBeansWSIFRuntime.newClient(nonSecureXRegistryUrl);
    return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
   
  }
View Full Code Here

      WSIFServiceFactory wsf = WSIFServiceFactory.newInstance();
      WSIFService serv = wsf.getService(def);
      serv.addLocalProvider(new Provider(invoker));
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
      ((XsulSoapPort) client.getPort()).setInvoker(invoker);
      return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
     
    } catch (WSIFException e) {
      throw new XRegistryClientException(e);
    } catch (XsulException e) {
      throw new XRegistryClientException(e);
View Full Code Here

      WSIFServiceFactory wsf = WSIFServiceFactory.newInstance();
      WSIFService serv = wsf.getService(def);
      serv.addLocalProvider(new Provider(invoker));
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
      ((XsulSoapPort) client.getPort()).setInvoker(invoker);
      return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
     
    } catch (WSIFException e) {
      throw new XRegistryClientException(e);
    } catch (XsulException e) {
      throw new XRegistryClientException(e);
View Full Code Here

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

                .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("echo");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

                .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("add");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

                .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("add");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

                .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("approve");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
View Full Code Here

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

TOP

Related Classes of xsul.xwsif_runtime.WSIFClient

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.