Package xsul.wsif

Examples of xsul.wsif.WSIFService


    private void init() throws ComponentException {
        logger.debug("wsdl: " + this.definitions.xmlStringPretty());
        this.component = WSComponentFactory.createComponent(this.definitions);

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

        if (this.secureInvoker != null) {
            Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(this.secureInvoker);
            service.addLocalProvider(secureProvider);
        }

        this.client = WSIFRuntime.getDefault().newClientFor(service, null);
        // null selects the first port in the first service.
View Full Code Here


   
//    WsdlResolver wsdlResolver = WsdlResolver.getInstance();
//    wsdlResolver.setSecureInvoker(secureInvoker);
//    WsdlDefinitions definitions = wsdlResolver.loadWsdl(
//        wsdlURI);
    WSIFService service = WSIFServiceFactory.newInstance().getService(
        definitions);
    if (this.secureInvoker != null) {
      Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(
          this.secureInvoker);
      service.addLocalProvider(secureProvider);
    }
    this.port = service.getPort();
    this.operation = port.createOperation(this.operationName);
    this.inputMessage = this.operation.createInputMessage();
    this.outputMessage = this.operation
        .createOutputMessage();
    this.faultMessage = this.operation.createFaultMessage();
View Full Code Here

    this.url = url;
    this.wsdlLoc = url.toString();
    this.proxy = proxy;
    try {
      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service = factory.getService(WSDLUtil.appendWSDLQuary(
          url).toString(), null, null, null, null);

      if (SecurityUtil.isSecureService(url)) {
        PuretlsInvoker secureInvoker = new GsiInvoker(proxy,
            XBayaSecurity.getTrustedCertificates());
        Provider secureProvider = new Provider(secureInvoker);
        service.addLocalProvider(secureProvider);
      }
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(
          service, null);
View Full Code Here

    leadContextHeader.setUserDn(dn);

    StickySoapHeaderHandler soapHeaderHandler = new StickySoapHeaderHandler(
        "use-lead-header", leadContextHeader);
    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
    WSIFService service = factory.getService(WSDLUtil
        .appendWSDLQuary(wsdlLoc), null, null, null, null);
    if (this.proxy != null) {
      PuretlsInvoker secureInvoker = new GsiInvoker(proxy, XBayaSecurity
          .getTrustedCertificates());
      Provider secureProvider = new Provider(secureInvoker);
      service.addLocalProvider(secureProvider);
    }

    WSIFClient wcl = XmlBeansWSIFRuntime.getDefault().newClientFor(service,
        null);
    wcl.addHandler(soapHeaderHandler);
View Full Code Here

      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(
            this.secureInvoker);
        service.addLocalProvider(secureProvider);
      }
      WSIFPort port = service.getPort();
      this.gFacOperation = port.createOperation(CREATE_SERVICE_OPERATION);

    } catch (RuntimeException e) {
      String message = "Failed to connect to the Generic Factory: "
          + wsdlURI;
View Full Code Here

   * Shutdowns the service created.
   *
   * @throws XBayaException
   */
  public void shutdownService() throws XBayaException {
    WSIFService service = WSIFServiceFactory.newInstance().getService(
        this.serviceDefinitions);
    WSIFPort port = service.getPort();
    WSIFOperation operation = port.createOperation(SHUTDOWN_OPERATION);

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

    private void init() throws ComponentException {
        logger.finest("wsdl: " + this.definitions.xmlStringPretty());
        this.component = WSComponentFactory.createComponent(this.definitions);

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

        if (this.secureInvoker != null) {
            Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(
                    this.secureInvoker);
            service.addLocalProvider(secureProvider);
        }

        this.client = WSIFRuntime.getDefault().newClientFor(service, null);
        // null selects the first port in the first service.
View Full Code Here

        .loadWsdl(
            new URI(
                "http://pagodatree.cs.indiana.edu:9999/axis2/services/StreamEngine?wsdl"));
    WSDLCleaner.cleanWSDL(streamEngine);

    WSIFService service = WSIFServiceFactory.newInstance().getService(
        WSDLUtil.wsdlDefinitions5ToWsdlDefintions3(streamEngine));
    WSIFPort port = service.getPort();
    WSIFClient client = WSIFRuntime.getDefault().newClientFor(port);

    String operationName = "registerQuery";
    WSIFOperation operation = port.createOperation(operationName);
    WSIFMessage inputMessage = operation.createInputMessage();
View Full Code Here

                "http://pagodatree.cs.indiana.edu:9999/axis2/services/StreamEngine?wsdl"));
    WSDLCleaner.cleanWSDL(streamEngine);

    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();

    WSIFService service = factory.getService(WSDLUtil
        .wsdlDefinitions5ToWsdlDefintions3(streamEngine));
    WSIFClient client = WSIFRuntime.getDefault()
        .newClientFor(service, null);
    WSIFPort port = client.getPort();
    String operationName = "registerQuery";
View Full Code Here

            // System.out.println(wsdlAsStr);
            XmlElement el = XmlConstants.BUILDER
                    .parseFragmentFromReader(new StringReader(wsdlAsStr));
            WsdlDefinitions def = new WsdlDefinitions(el);
            WSIFServiceFactory wsf = WSIFServiceFactory.newInstance();
            WSIFService serv = wsf.getService(def);
            serv.addLocalProvider(new Provider(invoker));
            client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
            ((XsulSoapPort) client.getPort()).setInvoker(invoker);
        } else {
            client = XmlBeansWSIFRuntime.newClient(serviceURL);
        }
        return client;
View Full Code Here

TOP

Related Classes of xsul.wsif.WSIFService

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.