Package xsul.wsif

Examples of xsul.wsif.WSIFServiceFactory


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


  public MyLeadAgentStub(URI url, GSSCredential proxy) throws MyLeadException {
    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());
View Full Code Here

    leadContextHeader = new LeadContextHeader("NEI", dn);
    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);
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);
View Full Code Here

        .loadWsdl(
            new URI(
                "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

            String wsdlAsStr = invoker.invokeHttpGet(serviceURL);
            // 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);
View Full Code Here

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

      SoapHttpDynamicInfosetInvoker invoker = new GsiInvoker(gssCredential, trustedCerts);
      String wsdlAsStr = invoker.invokeHttpGet(xregistryServiceWsdlUrl);
      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));
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
      ((XsulSoapPort) client.getPort()).setInvoker(invoker);
      return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
View Full Code Here

      SoapHttpDynamicInfosetInvoker invoker = new PuretlsInvoker(ctx);
      String wsdlAsStr = invoker.invokeHttpGet(xregistryServiceWsdlUrl);
      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));
     
      WSIFClient client = XmlBeansWSIFRuntime.getDefault().newClientFor(serv.getPort());
      ((XsulSoapPort) client.getPort()).setInvoker(invoker);
      return (IXregistryPortType)client.generateDynamicStub(IXregistryPortType.class);
View Full Code Here

     */
    private void init() throws ComponentException {
        logger.info("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);
        }
View Full Code Here

TOP

Related Classes of xsul.wsif.WSIFServiceFactory

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.