01: package org.objectweb.salome_tmf.soap;
02:
03: import java.security.NoSuchAlgorithmException;
04:
05: import javax.xml.rpc.ServiceException;
06:
07: import org.objectweb.salome_tmf.api.Api;
08: import org.objectweb.salome_tmf.api.MD5paswd;
09: import org.objectweb.salome_tmf.api.Util;
10:
11: public class StubClient extends org.apache.axis.client.Stub {
12:
13: public org.apache.axis.client.Call _createCall()
14: throws ServiceException {
15: org.apache.axis.client.Call _call = super ._createCall();
16:
17: String username = Api.getStrUsername();
18: String password = Api.getStrMD5Password();
19: Util.log("[SOAP Authentification] username : " + username
20: + ", password : " + password);
21:
22: if (username == null) {
23: username = "LoginSalome";
24: try {
25: password = MD5paswd.getEncodedPassword("LoginSalome");
26: } catch (NoSuchAlgorithmException e) {
27: }
28: }
29:
30: _call.setUsername(username);
31: _call.setPassword(password);
32:
33: return _call;
34: }
35:
36: }
|