Hi,
1. yes!
Since Staff uses Axis2/C as transport, you can pass server certificate as client's option:
staff::ServiceClient tClient;
// initialize client
tClient.Init("http://localhost:9090/axis2/services/echo");
// client options
staff::Options& rOptions = tClient.GetOptions();
// set path to server's certificate
rOptions.SetProperty("SERVER_CERT", "/path/to/server.pem");
Please note, you must have Staff r857 or above. staff::Options had no SetProperty function before this commit.
2. no, as far I know, you can't setup multiple certificates for single axis2.xml file
3. no, because axis2.xml location is read from environment variable AXIS2C_HOME - which is global variable for the single process.
вторник, 17 июня 2014 г., 22:19:12 UTC+4 пользователь tkcandyh написал: