source: TI12-security/trunk/java/DEWS/.metadata/.plugins/org.eclipse.core.resources/.history/5d/90620b5d2bb5001b17e1d3f3a43f3aed @ 2110

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/java/DEWS/.metadata/.plugins/org.eclipse.core.resources/.history/5d/90620b5d2bb5001b17e1d3f3a43f3aed@2110
Revision 2110, 38.3 KB checked in by pjkersha, 13 years ago (diff)
Line 
1/**
2 * SessionMgrBindingStub.java
3 *
4 * This file was auto-generated from WSDL
5 * by the IBM Web services WSDL2Java emitter.
6 * b0619.25 v51306165058
7 */
8
9package ndg.security.sessionMgr;
10
11public class SessionMgrBindingStub extends com.ibm.ws.webservices.engine.client.Stub implements ndg.security.sessionMgr.SessionMgr {
12    public SessionMgrBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws com.ibm.ws.webservices.engine.WebServicesFault {
13        if (service == null) {
14            super.service = new com.ibm.ws.webservices.engine.client.Service();
15        }
16        else {
17            super.service = service;
18        }
19        super.engine = ((com.ibm.ws.webservices.engine.client.Service) super.service).getEngine();
20        initTypeMapping();
21        super.cachedEndpoint = endpointURL;
22        super.connection = ((com.ibm.ws.webservices.engine.client.Service) super.service).getConnection(endpointURL);
23        super.messageContexts = new com.ibm.ws.webservices.engine.MessageContext[5];
24    }
25
26    private void initTypeMapping() {
27        javax.xml.rpc.encoding.TypeMapping tm = super.getTypeMapping(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
28        java.lang.Class javaType = null;
29        javax.xml.namespace.QName xmlType = null;
30        javax.xml.namespace.QName compQName = null;
31        javax.xml.namespace.QName compTypeQName = null;
32        com.ibm.ws.webservices.engine.encoding.SerializerFactory sf = null;
33        com.ibm.ws.webservices.engine.encoding.DeserializerFactory df = null;
34    }
35
36    private static final com.ibm.ws.webservices.engine.description.OperationDesc _addUserOperation0;
37    static {
38        com.ibm.ws.webservices.engine.description.ParameterDesc[]  _params0 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
39         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "username"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
40         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "passphrase"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
41          };
42        _params0[0].setOption("partName","string");
43        _params0[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
44        _params0[1].setOption("partName","string");
45        _params0[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
46        com.ibm.ws.webservices.engine.description.ParameterDesc  _returnDesc0 = new com.ibm.ws.webservices.engine.description.ParameterDesc(null, com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://websphere.ibm.com/webservices/", "Void"), void.class, true, false, false, false, true, true);
47        com.ibm.ws.webservices.engine.description.FaultDesc[]  _faults0 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
48          };
49        _addUserOperation0 = new com.ibm.ws.webservices.engine.description.OperationDesc("addUser", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "addUser"), _params0, _returnDesc0, _faults0, "addUser");
50        _addUserOperation0.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "addUserInputMsg"));
51        _addUserOperation0.setOption("targetNamespace","urn:ndg:security:sessionMgr");
52        _addUserOperation0.setOption("buildNum","b0619.25");
53        _addUserOperation0.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgrService"));
54        _addUserOperation0.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "addUserOutputMsg"));
55        _addUserOperation0.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgr"));
56        _addUserOperation0.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
57        _addUserOperation0.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED);
58    }
59
60    private int _addUserIndex0 = 0;
61    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getaddUserInvoke0(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault  {
62        com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_addUserIndex0];
63        if (mc == null) {
64            mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
65            mc.setOperation(SessionMgrBindingStub._addUserOperation0);
66            mc.setUseSOAPAction(true);
67            mc.setSOAPActionURI("addUser");
68            mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
69            mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
70            mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
71            super.primeMessageContext(mc);
72            super.messageContexts[_addUserIndex0] = mc;
73        }
74        try {
75            mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
76        }
77        catch (CloneNotSupportedException cnse) {
78            throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
79        }
80        return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
81    }
82
83    public void addUser(java.lang.String username, java.lang.String passphrase) throws java.rmi.RemoteException {
84        if (super.cachedEndpoint == null) {
85            throw new com.ibm.ws.webservices.engine.NoEndPointException();
86        }
87        try {
88            _getaddUserInvoke0(new java.lang.Object[] {username, passphrase}).invoke();
89
90        } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
91            Exception e = wsf.getUserException();
92            throw wsf;
93        }
94    }
95
96    private static final com.ibm.ws.webservices.engine.description.OperationDesc _connectOperation1;
97    static {
98        com.ibm.ws.webservices.engine.description.ParameterDesc[]  _params1 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
99         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "username"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
100         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "passphrase"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
101         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "createServerSess"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false, false, false, true, false),
102         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "getCookie"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false, false, false, true, false),
103         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "proxyCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
104         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "proxyPriKey"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
105         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "userCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
106         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "cookie"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
107          };
108        _params1[0].setOption("partName","string");
109        _params1[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
110        _params1[1].setOption("partName","string");
111        _params1[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
112        _params1[2].setOption("partName","boolean");
113        _params1[2].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
114        _params1[3].setOption("partName","boolean");
115        _params1[3].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
116        _params1[4].setOption("partName","string");
117        _params1[4].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
118        _params1[5].setOption("partName","string");
119        _params1[5].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
120        _params1[6].setOption("partName","string");
121        _params1[6].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
122        _params1[7].setOption("partName","string");
123        _params1[7].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
124        com.ibm.ws.webservices.engine.description.ParameterDesc  _returnDesc1 = new com.ibm.ws.webservices.engine.description.ParameterDesc(null, com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://websphere.ibm.com/webservices/", "Void"), void.class, true, false, false, false, true, true);
125        com.ibm.ws.webservices.engine.description.FaultDesc[]  _faults1 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
126          };
127        _connectOperation1 = new com.ibm.ws.webservices.engine.description.OperationDesc("connect", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "connect"), _params1, _returnDesc1, _faults1, "connect");
128        _connectOperation1.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "connectInputMsg"));
129        _connectOperation1.setOption("targetNamespace","urn:ndg:security:sessionMgr");
130        _connectOperation1.setOption("buildNum","b0619.25");
131        _connectOperation1.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgrService"));
132        _connectOperation1.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "connectOutputMsg"));
133        _connectOperation1.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgr"));
134        _connectOperation1.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
135        _connectOperation1.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED);
136    }
137
138    private int _connectIndex1 = 1;
139    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getconnectInvoke1(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault  {
140        com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_connectIndex1];
141        if (mc == null) {
142            mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
143            mc.setOperation(SessionMgrBindingStub._connectOperation1);
144            mc.setUseSOAPAction(true);
145            mc.setSOAPActionURI("connect");
146            mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
147            mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
148            mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
149            super.primeMessageContext(mc);
150            super.messageContexts[_connectIndex1] = mc;
151        }
152        try {
153            mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
154        }
155        catch (CloneNotSupportedException cnse) {
156            throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
157        }
158        return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
159    }
160
161    public void connect(java.lang.String username, java.lang.String passphrase, boolean createServerSess, boolean getCookie, javax.xml.rpc.holders.StringHolder proxyCert, javax.xml.rpc.holders.StringHolder proxyPriKey, javax.xml.rpc.holders.StringHolder userCert, javax.xml.rpc.holders.StringHolder cookie) throws java.rmi.RemoteException {
162        if (super.cachedEndpoint == null) {
163            throw new com.ibm.ws.webservices.engine.NoEndPointException();
164        }
165        java.util.Vector _resp = null;
166        try {
167            _resp = _getconnectInvoke1(new java.lang.Object[] {username, passphrase, new java.lang.Boolean(createServerSess), new java.lang.Boolean(getCookie)}).invoke();
168
169        } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
170            Exception e = wsf.getUserException();
171            throw wsf;
172        }
173        for (int _i = 0; _i < _resp.size(); ++_i) {
174            com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue _param = (com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue) _resp.get(_i);
175            if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "proxyCert").equals(_param.getQName())) {
176                try {
177                    proxyCert.value = (java.lang.String) _param.getValue();
178                } catch (java.lang.Exception _exception) {
179                    proxyCert.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
180                }
181            }
182            else if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "proxyPriKey").equals(_param.getQName())) {
183                try {
184                    proxyPriKey.value = (java.lang.String) _param.getValue();
185                } catch (java.lang.Exception _exception) {
186                    proxyPriKey.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
187                }
188            }
189            else if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "userCert").equals(_param.getQName())) {
190                try {
191                    userCert.value = (java.lang.String) _param.getValue();
192                } catch (java.lang.Exception _exception) {
193                    userCert.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
194                }
195            }
196            else if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "cookie").equals(_param.getQName())) {
197                try {
198                    cookie.value = (java.lang.String) _param.getValue();
199                } catch (java.lang.Exception _exception) {
200                    cookie.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
201                }
202            }
203        }
204    }
205
206    private static final com.ibm.ws.webservices.engine.description.OperationDesc _disconnectOperation2;
207    static {
208        com.ibm.ws.webservices.engine.description.ParameterDesc[]  _params2 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
209         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "userCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
210         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "sessID"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
211         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "encrSessionMgrURI"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
212          };
213        _params2[0].setOption("partName","string");
214        _params2[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
215        _params2[1].setOption("partName","string");
216        _params2[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
217        _params2[2].setOption("partName","string");
218        _params2[2].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
219        com.ibm.ws.webservices.engine.description.ParameterDesc  _returnDesc2 = new com.ibm.ws.webservices.engine.description.ParameterDesc(null, com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://websphere.ibm.com/webservices/", "Void"), void.class, true, false, false, false, true, true);
220        com.ibm.ws.webservices.engine.description.FaultDesc[]  _faults2 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
221          };
222        _disconnectOperation2 = new com.ibm.ws.webservices.engine.description.OperationDesc("disconnect", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "disconnect"), _params2, _returnDesc2, _faults2, "disconnect");
223        _disconnectOperation2.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "disconnectInputMsg"));
224        _disconnectOperation2.setOption("targetNamespace","urn:ndg:security:sessionMgr");
225        _disconnectOperation2.setOption("buildNum","b0619.25");
226        _disconnectOperation2.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgrService"));
227        _disconnectOperation2.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "disconnectOutputMsg"));
228        _disconnectOperation2.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgr"));
229        _disconnectOperation2.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
230        _disconnectOperation2.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED);
231    }
232
233    private int _disconnectIndex2 = 2;
234    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getdisconnectInvoke2(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault  {
235        com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_disconnectIndex2];
236        if (mc == null) {
237            mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
238            mc.setOperation(SessionMgrBindingStub._disconnectOperation2);
239            mc.setUseSOAPAction(true);
240            mc.setSOAPActionURI("disconnect");
241            mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
242            mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
243            mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
244            super.primeMessageContext(mc);
245            super.messageContexts[_disconnectIndex2] = mc;
246        }
247        try {
248            mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
249        }
250        catch (CloneNotSupportedException cnse) {
251            throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
252        }
253        return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
254    }
255
256    public void disconnect(java.lang.String userCert, java.lang.String sessID, java.lang.String encrSessionMgrURI) throws java.rmi.RemoteException {
257        if (super.cachedEndpoint == null) {
258            throw new com.ibm.ws.webservices.engine.NoEndPointException();
259        }
260        try {
261            _getdisconnectInvoke2(new java.lang.Object[] {userCert, sessID, encrSessionMgrURI}).invoke();
262
263        } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
264            Exception e = wsf.getUserException();
265            throw wsf;
266        }
267    }
268
269    private static final com.ibm.ws.webservices.engine.description.OperationDesc _getAttCertOperation3;
270    static {
271        com.ibm.ws.webservices.engine.description.ParameterDesc[]  _params3 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
272         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "userCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
273         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "sessID"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
274         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "encrSessionMgrURI"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
275         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "attAuthorityURI"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, false, true, false),
276         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "attAuthorityCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
277         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "reqRole"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
278         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "mapFromTrustedHosts"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false, false, false, true, false),
279         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "rtnExtAttCertList"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false, false, false, true, false),
280         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "extAttCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.INOUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false, false, true, false, false),
281         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "extTrustedHost"), com.ibm.ws.webservices.engine.description.ParameterDesc.IN, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String[].class, false, false, false, true, false, false),
282         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "attCert"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
283         new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "msg"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, false, false, false, true, true, false),
284          };
285        _params3[0].setOption("partName","string");
286        _params3[0].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
287        _params3[1].setOption("partName","string");
288        _params3[1].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
289        _params3[2].setOption("partName","string");
290        _params3[2].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
291        _params3[3].setOption("partName","string");
292        _params3[3].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
293        _params3[4].setOption("partName","string");
294        _params3[4].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
295        _params3[5].setOption("partName","string");
296        _params3[5].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
297        _params3[6].setOption("partName","boolean");
298        _params3[6].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
299        _params3[7].setOption("partName","boolean");
300        _params3[7].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}boolean");
301        _params3[8].setOption("partName","string[0,unbounded]");
302        _params3[8].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string[0,unbounded]");
303        _params3[9].setOption("partName","string[0,unbounded]");
304        _params3[9].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string[0,unbounded]");
305        _params3[10].setOption("partName","string");
306        _params3[10].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
307        _params3[11].setOption("partName","string");
308        _params3[11].setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
309        com.ibm.ws.webservices.engine.description.ParameterDesc  _returnDesc3 = new com.ibm.ws.webservices.engine.description.ParameterDesc(null, com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://websphere.ibm.com/webservices/", "Void"), void.class, true, false, false, false, true, true);
310        com.ibm.ws.webservices.engine.description.FaultDesc[]  _faults3 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
311          };
312        _getAttCertOperation3 = new com.ibm.ws.webservices.engine.description.OperationDesc("getAttCert", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getAttCert"), _params3, _returnDesc3, _faults3, "getAttCert");
313        _getAttCertOperation3.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getAttCertInputMsg"));
314        _getAttCertOperation3.setOption("targetNamespace","urn:ndg:security:sessionMgr");
315        _getAttCertOperation3.setOption("buildNum","b0619.25");
316        _getAttCertOperation3.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgrService"));
317        _getAttCertOperation3.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getAttCertOutputMsg"));
318        _getAttCertOperation3.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgr"));
319        _getAttCertOperation3.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
320        _getAttCertOperation3.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED);
321    }
322
323    private int _getAttCertIndex3 = 3;
324    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getgetAttCertInvoke3(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault  {
325        com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_getAttCertIndex3];
326        if (mc == null) {
327            mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
328            mc.setOperation(SessionMgrBindingStub._getAttCertOperation3);
329            mc.setUseSOAPAction(true);
330            mc.setSOAPActionURI("getAttCert");
331            mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
332            mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
333            mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
334            super.primeMessageContext(mc);
335            super.messageContexts[_getAttCertIndex3] = mc;
336        }
337        try {
338            mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
339        }
340        catch (CloneNotSupportedException cnse) {
341            throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
342        }
343        return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
344    }
345
346    public void getAttCert(java.lang.String userCert, java.lang.String sessID, java.lang.String encrSessionMgrURI, java.lang.String attAuthorityURI, java.lang.String attAuthorityCert, java.lang.String reqRole, boolean mapFromTrustedHosts, boolean rtnExtAttCertList, ndg.security.sessionMgr.holders.StringArrayHolder extAttCert, java.lang.String[] extTrustedHost, javax.xml.rpc.holders.StringHolder attCert, javax.xml.rpc.holders.StringHolder msg) throws java.rmi.RemoteException {
347        if (super.cachedEndpoint == null) {
348            throw new com.ibm.ws.webservices.engine.NoEndPointException();
349        }
350        java.util.Vector _resp = null;
351        try {
352            _resp = _getgetAttCertInvoke3(new java.lang.Object[] {userCert, sessID, encrSessionMgrURI, attAuthorityURI, attAuthorityCert, reqRole, new java.lang.Boolean(mapFromTrustedHosts), new java.lang.Boolean(rtnExtAttCertList), extAttCert.value, extTrustedHost}).invoke();
353
354        } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
355            Exception e = wsf.getUserException();
356            throw wsf;
357        }
358        for (int _i = 0; _i < _resp.size(); ++_i) {
359            com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue _param = (com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue) _resp.get(_i);
360            if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "extAttCert").equals(_param.getQName())) {
361                try {
362                    extAttCert.value = (java.lang.String[]) _param.getValue();
363                } catch (java.lang.Exception _exception) {
364                    extAttCert.value = (java.lang.String[]) super.convert(_param.getValue(), java.lang.String[].class);
365                }
366            }
367            else if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "attCert").equals(_param.getQName())) {
368                try {
369                    attCert.value = (java.lang.String) _param.getValue();
370                } catch (java.lang.Exception _exception) {
371                    attCert.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
372                }
373            }
374            else if (com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "msg").equals(_param.getQName())) {
375                try {
376                    msg.value = (java.lang.String) _param.getValue();
377                } catch (java.lang.Exception _exception) {
378                    msg.value = (java.lang.String) super.convert(_param.getValue(), java.lang.String.class);
379                }
380            }
381        }
382    }
383
384    private static final com.ibm.ws.webservices.engine.description.OperationDesc _getX509CertOperation4;
385    static {
386        com.ibm.ws.webservices.engine.description.ParameterDesc[]  _params4 = new com.ibm.ws.webservices.engine.description.ParameterDesc[] {
387          };
388        com.ibm.ws.webservices.engine.description.ParameterDesc  _returnDesc4 = new com.ibm.ws.webservices.engine.description.ParameterDesc(com.ibm.ws.webservices.engine.utils.QNameTable.createQName("", "x509Cert"), com.ibm.ws.webservices.engine.description.ParameterDesc.OUT, com.ibm.ws.webservices.engine.utils.QNameTable.createQName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, true, false, false, false, true, false);
389        _returnDesc4.setOption("partName","string");
390        _returnDesc4.setOption("partQNameString","{http://www.w3.org/2001/XMLSchema}string");
391        com.ibm.ws.webservices.engine.description.FaultDesc[]  _faults4 = new com.ibm.ws.webservices.engine.description.FaultDesc[] {
392          };
393        _getX509CertOperation4 = new com.ibm.ws.webservices.engine.description.OperationDesc("getX509Cert", com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getX509Cert"), _params4, _returnDesc4, _faults4, "getX509Cert");
394        _getX509CertOperation4.setOption("inputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getX509CertInputMsg"));
395        _getX509CertOperation4.setOption("targetNamespace","urn:ndg:security:sessionMgr");
396        _getX509CertOperation4.setOption("buildNum","b0619.25");
397        _getX509CertOperation4.setOption("ServiceQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgrService"));
398        _getX509CertOperation4.setOption("outputMessageQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "getX509CertOutputMsg"));
399        _getX509CertOperation4.setOption("portTypeQName",com.ibm.ws.webservices.engine.utils.QNameTable.createQName("urn:ndg:security:sessionMgr", "SessionMgr"));
400        _getX509CertOperation4.setUse(com.ibm.ws.webservices.engine.enumtype.Use.LITERAL);
401        _getX509CertOperation4.setStyle(com.ibm.ws.webservices.engine.enumtype.Style.WRAPPED);
402    }
403
404    private int _getX509CertIndex4 = 4;
405    private synchronized com.ibm.ws.webservices.engine.client.Stub.Invoke _getgetX509CertInvoke4(Object[] parameters) throws com.ibm.ws.webservices.engine.WebServicesFault  {
406        com.ibm.ws.webservices.engine.MessageContext mc = super.messageContexts[_getX509CertIndex4];
407        if (mc == null) {
408            mc = new com.ibm.ws.webservices.engine.MessageContext(super.engine);
409            mc.setOperation(SessionMgrBindingStub._getX509CertOperation4);
410            mc.setUseSOAPAction(true);
411            mc.setSOAPActionURI("getX509Cert");
412            mc.setEncodingStyle(com.ibm.ws.webservices.engine.Constants.URI_LITERAL_ENC);
413            mc.setProperty(com.ibm.ws.webservices.engine.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
414            mc.setProperty(com.ibm.ws.webservices.engine.WebServicesEngine.PROP_DOMULTIREFS, Boolean.FALSE);
415            super.primeMessageContext(mc);
416            super.messageContexts[_getX509CertIndex4] = mc;
417        }
418        try {
419            mc = (com.ibm.ws.webservices.engine.MessageContext) mc.clone();
420        }
421        catch (CloneNotSupportedException cnse) {
422            throw com.ibm.ws.webservices.engine.WebServicesFault.makeFault(cnse);
423        }
424        return new com.ibm.ws.webservices.engine.client.Stub.Invoke(connection, mc, parameters);
425    }
426
427    public java.lang.String getX509Cert() throws java.rmi.RemoteException {
428        if (super.cachedEndpoint == null) {
429            throw new com.ibm.ws.webservices.engine.NoEndPointException();
430        }
431        java.util.Vector _resp = null;
432        try {
433            _resp = _getgetX509CertInvoke4(new java.lang.Object[] {}).invoke();
434
435        } catch (com.ibm.ws.webservices.engine.WebServicesFault wsf) {
436            Exception e = wsf.getUserException();
437            throw wsf;
438        }
439        try {
440            return (java.lang.String) ((com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue) _resp.get(0)).getValue();
441        } catch (java.lang.Exception _exception) {
442            return (java.lang.String) super.convert(((com.ibm.ws.webservices.engine.xmlsoap.ext.ParamValue) _resp.get(0)).getValue(), java.lang.String.class);
443        }
444    }
445
446}
Note: See TracBrowser for help on using the repository browser.