`

a setup for dynamically choosing the client certificate used for SSL Authenticat

    博客分类:
  • Axis
阅读更多
// 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/mywebserviceport");
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/DynamicSSLConfig

分享到:
评论

相关推荐

    A Mapping Flow for Dynamically Reconfigurable Multi-Core System-on-Chip

    关于A Mapping Flow for Dynamically Reconfigurable Multi-Core System-on-Chip论文的介绍文档,介绍了论文中的主要内容及其关系

    ICS delphixe10源码版

    ICS - Internet Component Suite - V8 - ...buy a gift certificate at Amazon in the UK. I will then use it to buy books. Here is the direct URL at Amazon UK (nearest to my home, please don't use another): ...

    win 3.11 for workgroup tcpip支持

    address, the client will display a popup informing the user of the address conflict. Users should contact the CP server administrator when this occurs. Once the server has excluded the conflicting ...

    Dundas.Chart.for.Winform.Enterprise.v7.1.0.1812.for.VS2008

    These charts ignore the passage of time but can be used illustrate the forces of supply and demand on a security. Point and Figure Chart Type (Enterprise Edition only) - Point and Figure Chart uses ...

    JLinkARM_V482驱动最新版

    The J-Link software & documentation pack gives you the USB drivers needed for your system, a number of utilities as well as a dynamically linkable library (DLL on Windows) used by most of the IDEs and...

    A service-based architecture for dynamically reconfigurable workflows

    ### 服务化架构在动态可重构工作流中的应用 #### 引言 随着近年来业务流程管理系统(BPMS)被广泛应用于处理日益复杂的信息化系统,如何有效地管理这些系统的生命周期、协调分布式执行环境下的业务流程以及支持动态...

    FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版

    FastReport.v4.9.81 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版 delphi2010中文完美支持。 D2010安装必读 delphi2010使用者安装时,请将res\frccD14.exe更名名为frcc.exe frccD14.exe 是专门的...

    elasticsearch-py-readthedocs-io-en-7.7.1.pdf

    The library includes a mechanism called "sniffing" that allows it to dynamically discover the nodes in an Elasticsearch cluster. This is particularly useful in large clusters where nodes may be added ...

    acpi控制笔记本风扇转速

    Implemented a generic batch command mode for the AcpiExec utility (execute any AML debugger command) (Valery Podrezov). ---------------------------------------- 12 September 2006. Summary of changes ...

    Introduction to MATLAB for Engineers

    - **4.5–2 Plotting with a For Loop**: Here, plotting functions are used in conjunction with loops to visualize data dynamically. This technique is particularly useful for engineers who need to ...

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持D4-XE5

    FastReport.v4.15 for.Delphi.BCB.Full.Source企业版含ClientServer中文修正版支持Delphi 4-XE5 and C++Builder 6-XE5. D2010以上版本(D14_D19)安装必读 delphi2010以上版本(D14_D19)使用者安装时,请将res\frccD14_...

    Ajax in Action

    - Choosing the right framework for specific project requirements. ### Conclusion "Ajax in Action" is a comprehensive guide that covers everything from the basics of Ajax to advanced techniques for ...

    微软内部资料-SQL性能优化5

    A Clustered Key Is Used as the Bookmark for All Nonclustered Indexes If the table has a clustered index, all columns of the clustered key will be duplicated in the nonclustered index leaf rows, ...

    Eclipse+Rich+Client+Platform+Designing+Coding+and+Packaging+Java+Applications.chm

    Eclipse is more than a state-of-the-art IDE: its Rich Client Platform (RCP) plug-ins form an outstanding foundation for any desktop application, from chat applications to enterprise software front-...

    计算机网络英文课件:Chapter2 Application Layer.ppt

    Chapter 2 of the "Application Layer" in ...The World Wide Web (Web) is built upon the Hypertext Transfer Protocol (HTTP), which is a stateless protocol used for transferring hypertext documents like ...

    modeling algorithm

    This document provides an in-depth exploration of what Grasshopper is, how it works, and how to set up dynamically updating parameters for a free-form roof using the software. #### What is ...

    Oracle Database 10g: The Top 20 Features for DBAs

    ### Oracle Database 10g: The Top 20 Features for DBAs #### 1. Flashback Versions Query **Description:** This feature allows database administrators (DBAs) to query the history of data changes within ...

Global site tag (gtag.js) - Google Analytics