windchill刻制中 代码中实现:HTTP遠程訪問鑒權,RMI遠程訪問鑒權,WebService客戶端測試訪問
1.HTTP遠程訪問鑒權RemoteMethodServer rms = RemoteMethodServer.getDefault();GatewayAuthenticator auth = new GatewayAuthenticator();auth.setRemoteUser("wcadmin");rms.setAuthenticator(auth)
·
1. HTTP遠程訪問鑒權
RemoteMethodServer rms = RemoteMethodServer.getDefault();
GatewayAuthenticator auth = new GatewayAuthenticator();
auth.setRemoteUser("wcadmin");
rms.setAuthenticator(auth);
2. RMI遠程訪問鑒權
RemoteMethodServer rms = RemoteMethodServer.getDefault();
rms.setUserName("wcadmin"); rms.setPassword("wcadmin");
3. WebService客戶端測試訪問
IEServiceProxy s = new IEServiceProxy();
SoapBindingStub stub = (SoapBindingStub)s.getIEService();
stub.setUsername("wcadmin");
stub.setPassword("wcadmin");
更多推荐
已为社区贡献1条内容
所有评论(0)