`
vfl40vfl
  • 浏览: 17151 次
社区版块
存档分类
最新评论

a setup for dynamically choosing the client certificate used for ssl authenticat--iteye技术网站

 
阅读更多

a setup for dynamically choosing the client certificate used for ssl authenticat--iteye技术网站
2011年06月01日
  // create config boolean logging = false; // no logging SSLClientAxisEngineConfig axisConfig = new SSLClientAxisEngineConfig(); axisConfig.setKeystore("/path/to/clientkey.p12"); axisConfig.setKeystoreType("PKCS12"); axisConfig.setKeystorePassword("changeit"); axisConfig.setTruststore("/path/to/truststore.jks" ); axisConfig.setTruststoreType("JKS"); axisConfig.setTruststorePassword("changeit"); if (logging) axisConfig.setDebugBaseDir("/path/to/logs"); axisConfig.initialize(logging); // initialize service URL soapURL = new URL("https://myserver.com/myapp/services/mywebserv iceport"); MyWebServiceServiceLocator locator = new MyServiceLocator(axisConfig); MyWebServicePort port = locator.getMyWebServicePort(soapURL); MyWebServiceBindingStub stub = (MyWebServiceBindingStub) port; // make a call to the webservice (assume no params for this operation) MyResultType result = stub.myoperation1(); 
  http://wiki.apache.org/ws/FrontPage/Axis/DynamicSS LConfig
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics