Package xsul.invoker.soap_over_http

Examples of xsul.invoker.soap_over_http.SoapHttpDynamicInfosetInvoker


           
            String trustedCertFile = context.getCredentials().getTrustedCertsFile();
            GSSCredential credential = context.getGssCredential();
           
           
            SoapHttpDynamicInfosetInvoker invoker;
            if(credential != null){
                if(context.getCredentials().getTrustedCertsFile() != null){
                    X509Certificate[] certs = null;
                    certs = CertUtil.loadCertificates(trustedCertFile);
                    invoker = new GsiInvoker(credential,certs);
View Full Code Here


   
    public static WSIFClient createWSIFClient(ApplicationGlobalContext globalConfiguration,
            String serviceURL,GSSCredential sessionCredentail) throws GfacException {
        WSIFClient client;
        if (serviceURL.startsWith("https")) {
            SoapHttpDynamicInfosetInvoker invoker = createSecureInvoker(globalConfiguration);
            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();
View Full Code Here

                if (globalConfiguration == null) {
                    throw new XregistryException(
                            "To make Secure WSIF client Global configuration must nor be Null");
                }
                SoapHttpDynamicInfosetInvoker invoker = createSecureInvoker(globalConfiguration,
                        useHostKey);
                String wsdlAsStr = invoker.invokeHttpGet(serviceURL);
                // System.out.println(wsdlAsStr);
                XmlElement el = XmlConstants.BUILDER
                        .parseFragmentFromReader(new StringReader(wsdlAsStr));
                WsdlDefinitions def = new WsdlDefinitions(el);
               
View Full Code Here

            GlobalContext globalConfiguration, boolean useHostKey) throws GeneralSecurityException,
            FileNotFoundException, IOException, XregistryException, GSSException {
        String certFile = globalConfiguration.getTrustedCertsFile();
        String keyfile = globalConfiguration.getHostcertsKeyFile();

        SoapHttpDynamicInfosetInvoker invoker;
        if(useHostKey && globalConfiguration.getTrustedCertificates() != null && keyfile != null){
            PureTLSContext ctx = new PureTLSContext();
            ctx.setTrustedCertificates(globalConfiguration.getTrustedCertificates());
            ctx.loadEAYKeyFile(keyfile, "");
            SSLPolicyInt policy = new SSLPolicyInt();
View Full Code Here

   * @throws XRegistryClientException
   */
  protected static IXregistryPortType createGSISecureServiceStub(GSSCredential gssCredential, X509Certificate[] trustedCerts,
      String xregistryServiceWsdlUrl) throws XRegistryClientException {
    try {
      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);
View Full Code Here

                  if(ele instanceof SOAPAddress){
                      String serviceUrl = null;
                      try {
                          serviceUrl = ((SOAPAddress)ele).getLocationURI();
                          System.out.println("Service Url for service "+serviceName + " is "+serviceUrl);
                          SoapHttpDynamicInfosetInvoker invoker;
                         
                          if(serviceUrl.startsWith("https")){
                    //          invoker = gloablContext.createSecureInvoker();
                          }else{
                              invoker = new SoapHttpDynamicInfosetInvoker();
                          }
             //             invoker.invokeHttpGet(serviceUrl);
                      } catch (Exception e) {
                          //thsi will avoid finding outservice is down at last moment
                          throw new GfacException("Could not connect to the service "+serviceName + " at "+ serviceUrl,e,FaultCode.ErrorAtDependentService);
View Full Code Here

      ctx.loadEAYKeyFile(hostkeyPath, "");
      SSLPolicyInt policy = new SSLPolicyInt();
      policy.requireClientAuth(true);
      policy.setAcceptNoClientCert(true);
      ctx.setPolicy(policy);
      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);
View Full Code Here

TOP

Related Classes of xsul.invoker.soap_over_http.SoapHttpDynamicInfosetInvoker

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.