new features or newly shown group features are placed at top of feature stack
[jalview.git] / src / ext / vamsas / RegistryServiceSoapBindingStub.java
1 /**
2  * RegistryServiceSoapBindingStub.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
6  */
7
8 package ext.vamsas;
9
10 public class RegistryServiceSoapBindingStub
11     extends org.apache.axis.client.Stub implements ext.vamsas.IRegistry
12 {
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();
17
18   static org.apache.axis.description.OperationDesc[] _operations;
19
20   static
21   {
22     _operations = new org.apache.axis.description.OperationDesc[1];
23     _initOperationDesc1();
24   }
25
26   private static void _initOperationDesc1()
27   {
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",
32         "ServiceHandles"));
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;
38
39   }
40
41   public RegistryServiceSoapBindingStub()
42       throws org.apache.axis.AxisFault
43   {
44     this(null);
45   }
46
47   public RegistryServiceSoapBindingStub(java.net.URL endpointURL,
48                                         javax.xml.rpc.Service service)
49       throws org.apache.axis.AxisFault
50   {
51     this(service);
52     super.cachedEndpoint = endpointURL;
53   }
54
55   public RegistryServiceSoapBindingStub(javax.xml.rpc.Service service)
56       throws org.apache.axis.AxisFault
57   {
58     if (service == null)
59     {
60       super.service = new org.apache.axis.client.Service();
61     }
62     else
63     {
64       super.service = service;
65     }
66     java.lang.Class cls;
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);
88
89     qName = new javax.xml.namespace.QName("registry.objects.vamsas",
90                                           "ServiceHandles");
91     cachedSerQNames.add(qName);
92     cls = ext.vamsas.ServiceHandles.class;
93     cachedSerClasses.add(cls);
94     cachedSerFactories.add(beansf);
95     cachedDeserFactories.add(beandf);
96
97     qName = new javax.xml.namespace.QName("registry.objects.vamsas",
98                                           "ServiceHandle");
99     cachedSerQNames.add(qName);
100     cls = ext.vamsas.ServiceHandle.class;
101     cachedSerClasses.add(cls);
102     cachedSerFactories.add(beansf);
103     cachedDeserFactories.add(beandf);
104
105   }
106
107   protected org.apache.axis.client.Call createCall()
108       throws java.rmi.RemoteException
109   {
110     try
111     {
112       org.apache.axis.client.Call _call =
113           (org.apache.axis.client.Call)super.service.createCall();
114       if (super.maintainSessionSet)
115       {
116         _call.setMaintainSession(super.maintainSession);
117       }
118       if (super.cachedUsername != null)
119       {
120         _call.setUsername(super.cachedUsername);
121       }
122       if (super.cachedPassword != null)
123       {
124         _call.setPassword(super.cachedPassword);
125       }
126       if (super.cachedEndpoint != null)
127       {
128         _call.setTargetEndpointAddress(super.cachedEndpoint);
129       }
130       if (super.cachedTimeout != null)
131       {
132         _call.setTimeout(super.cachedTimeout);
133       }
134       if (super.cachedPortName != null)
135       {
136         _call.setPortName(super.cachedPortName);
137       }
138       java.util.Enumeration keys = super.cachedProperties.keys();
139       while (keys.hasMoreElements())
140       {
141         java.lang.String key = (java.lang.String) keys.nextElement();
142         _call.setProperty(key, super.cachedProperties.get(key));
143       }
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.
149       synchronized (this)
150       {
151         if (firstCall())
152         {
153           // must set encoding style before registering serializers
154           _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.
155                                SOAP11_CONSTANTS);
156           _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
157           for (int i = 0; i < cachedSerFactories.size(); ++i)
158           {
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);
167           }
168         }
169       }
170       return _call;
171     }
172     catch (java.lang.Throwable _t)
173     {
174       throw new org.apache.axis.AxisFault(
175           "Failure trying to get the Call object", _t);
176     }
177   }
178
179   public ext.vamsas.ServiceHandles getServices()
180       throws java.rmi.RemoteException
181   {
182     if (super.cachedEndpoint == null)
183     {
184       throw new org.apache.axis.NoEndPointException();
185     }
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",
192         "getServices"));
193
194     setRequestHeaders(_call);
195     setAttachments(_call);
196     java.lang.Object _resp = _call.invoke(new java.lang.Object[]
197                                           {});
198
199     if (_resp instanceof java.rmi.RemoteException)
200     {
201       throw (java.rmi.RemoteException) _resp;
202     }
203     else
204     {
205       extractAttachments(_call);
206       try
207       {
208         return (ext.vamsas.ServiceHandles) _resp;
209       }
210       catch (java.lang.Exception _exception)
211       {
212         return (ext.vamsas.ServiceHandles) org.apache.axis.utils.JavaUtils.
213             convert(_resp, ext.vamsas.ServiceHandles.class);
214       }
215     }
216   }
217
218 }