2 * RegistryServiceSoapBindingStub.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
10 public class RegistryServiceSoapBindingStub
11 extends org.apache.axis.client.Stub implements ext.vamsas.IRegistry
13 private java.util.Vector cachedSerClasses = new java.util.Vector();
14 private java.util.Vector cachedSerQNames = new java.util.Vector();
15 private java.util.Vector cachedSerFactories = new java.util.Vector();
16 private java.util.Vector cachedDeserFactories = new java.util.Vector();
18 static org.apache.axis.description.OperationDesc[] _operations;
22 _operations = new org.apache.axis.description.OperationDesc[1];
23 _initOperationDesc1();
26 private static void _initOperationDesc1()
28 org.apache.axis.description.OperationDesc oper;
29 oper = new org.apache.axis.description.OperationDesc();
30 oper.setName("getServices");
31 oper.setReturnType(new javax.xml.namespace.QName("registry.objects.vamsas",
33 oper.setReturnClass(ext.vamsas.ServiceHandles.class);
34 oper.setReturnQName(new javax.xml.namespace.QName("", "getServicesReturn"));
35 oper.setStyle(org.apache.axis.constants.Style.RPC);
36 oper.setUse(org.apache.axis.constants.Use.ENCODED);
37 _operations[0] = oper;
41 public RegistryServiceSoapBindingStub()
42 throws org.apache.axis.AxisFault
47 public RegistryServiceSoapBindingStub(java.net.URL endpointURL,
48 javax.xml.rpc.Service service)
49 throws org.apache.axis.AxisFault
52 super.cachedEndpoint = endpointURL;
55 public RegistryServiceSoapBindingStub(javax.xml.rpc.Service service)
56 throws org.apache.axis.AxisFault
60 super.service = new org.apache.axis.client.Service();
64 super.service = service;
67 javax.xml.namespace.QName qName;
68 java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
69 java.lang.Class beandf = org.apache.axis.encoding.ser.
70 BeanDeserializerFactory.class;
71 //java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
72 //java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
73 java.lang.Class arraysf = org.apache.axis.encoding.ser.
74 ArraySerializerFactory.class;
75 java.lang.Class arraydf = org.apache.axis.encoding.ser.
76 ArrayDeserializerFactory.class;
77 //java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
78 //java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
79 //java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
80 //java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
81 qName = new javax.xml.namespace.QName("vamsas",
82 "ArrayOf_tns1_ServiceHandle");
83 cachedSerQNames.add(qName);
84 cls = ext.vamsas.ServiceHandle[].class;
85 cachedSerClasses.add(cls);
86 cachedSerFactories.add(arraysf);
87 cachedDeserFactories.add(arraydf);
89 qName = new javax.xml.namespace.QName("registry.objects.vamsas",
91 cachedSerQNames.add(qName);
92 cls = ext.vamsas.ServiceHandles.class;
93 cachedSerClasses.add(cls);
94 cachedSerFactories.add(beansf);
95 cachedDeserFactories.add(beandf);
97 qName = new javax.xml.namespace.QName("registry.objects.vamsas",
99 cachedSerQNames.add(qName);
100 cls = ext.vamsas.ServiceHandle.class;
101 cachedSerClasses.add(cls);
102 cachedSerFactories.add(beansf);
103 cachedDeserFactories.add(beandf);
107 protected org.apache.axis.client.Call createCall()
108 throws java.rmi.RemoteException
112 org.apache.axis.client.Call _call =
113 (org.apache.axis.client.Call)super.service.createCall();
114 if (super.maintainSessionSet)
116 _call.setMaintainSession(super.maintainSession);
118 if (super.cachedUsername != null)
120 _call.setUsername(super.cachedUsername);
122 if (super.cachedPassword != null)
124 _call.setPassword(super.cachedPassword);
126 if (super.cachedEndpoint != null)
128 _call.setTargetEndpointAddress(super.cachedEndpoint);
130 if (super.cachedTimeout != null)
132 _call.setTimeout(super.cachedTimeout);
134 if (super.cachedPortName != null)
136 _call.setPortName(super.cachedPortName);
138 java.util.Enumeration keys = super.cachedProperties.keys();
139 while (keys.hasMoreElements())
141 java.lang.String key = (java.lang.String) keys.nextElement();
142 _call.setProperty(key, super.cachedProperties.get(key));
144 // All the type mapping information is registered
145 // when the first call is made.
146 // The type mapping information is actually registered in
147 // the TypeMappingRegistry of the service, which
148 // is the reason why registration is only needed for the first call.
153 // must set encoding style before registering serializers
154 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.
156 _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
157 for (int i = 0; i < cachedSerFactories.size(); ++i)
159 java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
160 javax.xml.namespace.QName qName =
161 (javax.xml.namespace.QName) cachedSerQNames.get(i);
162 java.lang.Class sf = (java.lang.Class)
163 cachedSerFactories.get(i);
164 java.lang.Class df = (java.lang.Class)
165 cachedDeserFactories.get(i);
166 _call.registerTypeMapping(cls, qName, sf, df, false);
172 catch (java.lang.Throwable _t)
174 throw new org.apache.axis.AxisFault(
175 "Failure trying to get the Call object", _t);
179 public ext.vamsas.ServiceHandles getServices()
180 throws java.rmi.RemoteException
182 if (super.cachedEndpoint == null)
184 throw new org.apache.axis.NoEndPointException();
186 org.apache.axis.client.Call _call = createCall();
187 _call.setOperation(_operations[0]);
188 _call.setUseSOAPAction(true);
189 _call.setSOAPActionURI("");
190 _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
191 _call.setOperationName(new javax.xml.namespace.QName("vamsas",
194 setRequestHeaders(_call);
195 setAttachments(_call);
196 java.lang.Object _resp = _call.invoke(new java.lang.Object[]
199 if (_resp instanceof java.rmi.RemoteException)
201 throw (java.rmi.RemoteException) _resp;
205 extractAttachments(_call);
208 return (ext.vamsas.ServiceHandles) _resp;
210 catch (java.lang.Exception _exception)
212 return (ext.vamsas.ServiceHandles) org.apache.axis.utils.JavaUtils.
213 convert(_resp, ext.vamsas.ServiceHandles.class);