View Javadoc

1   /***
2    * ResultsListenerServiceSoapBindingStub.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis WSDL2Java emitter.
6    */
7   
8   package org.astrogrid.jes.service.v1.cearesults;
9   
10  public class ResultsListenerServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.astrogrid.jes.service.v1.cearesults.ResultsListener {
11      private java.util.Vector cachedSerClasses = new java.util.Vector();
12      private java.util.Vector cachedSerQNames = new java.util.Vector();
13      private java.util.Vector cachedSerFactories = new java.util.Vector();
14      private java.util.Vector cachedDeserFactories = new java.util.Vector();
15  
16      static org.apache.axis.description.OperationDesc [] _operations;
17  
18      static {
19          _operations = new org.apache.axis.description.OperationDesc[1];
20          org.apache.axis.description.OperationDesc oper;
21          oper = new org.apache.axis.description.OperationDesc();
22          oper.setName("putResults");
23          oper.addParameter(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier-type"), org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType.class, org.apache.axis.description.ParameterDesc.IN, false, false);
24          oper.addParameter(new javax.xml.namespace.QName("", "result-list"), new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "result-list-type"), org.astrogrid.jes.types.v1.cea.axis.ResultListType.class, org.apache.axis.description.ParameterDesc.IN, false, false);
25          oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
26          oper.setStyle(org.apache.axis.enum.Style.WRAPPED);
27          oper.setUse(org.apache.axis.enum.Use.LITERAL);
28          _operations[0] = oper;
29  
30      }
31  
32      public ResultsListenerServiceSoapBindingStub() throws org.apache.axis.AxisFault {
33           this(null);
34      }
35  
36      public ResultsListenerServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
37           this(service);
38           super.cachedEndpoint = endpointURL;
39      }
40  
41      public ResultsListenerServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
42          if (service == null) {
43              super.service = new org.apache.axis.client.Service();
44          } else {
45              super.service = service;
46          }
47              java.lang.Class cls;
48              javax.xml.namespace.QName qName;
49              java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
50              java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
51              java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
52              java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
53              java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
54              java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
55              java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
56              java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
57              qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "job-identifier-type");
58              cachedSerQNames.add(qName);
59              cls = org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType.class;
60              cachedSerClasses.add(cls);
61              cachedSerFactories.add(simplesf);
62              cachedDeserFactories.add(simpledf);
63  
64              qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "result-list-type");
65              cachedSerQNames.add(qName);
66              cls = org.astrogrid.jes.types.v1.cea.axis.ResultListType.class;
67              cachedSerClasses.add(cls);
68              cachedSerFactories.add(beansf);
69              cachedDeserFactories.add(beandf);
70  
71              qName = new javax.xml.namespace.QName("http://www.astrogrid.org/schema/AGParameterDefinition/v1", "parameterValue");
72              cachedSerQNames.add(qName);
73              cls = org.astrogrid.applications.beans.v1.axis.ceaparameters.ParameterValue.class;
74              cachedSerClasses.add(cls);
75              cachedSerFactories.add(beansf);
76              cachedDeserFactories.add(beandf);
77  
78      }
79  
80      private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
81          try {
82              org.apache.axis.client.Call _call =
83                      (org.apache.axis.client.Call) super.service.createCall();
84              if (super.maintainSessionSet) {
85                  _call.setMaintainSession(super.maintainSession);
86              }
87              if (super.cachedUsername != null) {
88                  _call.setUsername(super.cachedUsername);
89              }
90              if (super.cachedPassword != null) {
91                  _call.setPassword(super.cachedPassword);
92              }
93              if (super.cachedEndpoint != null) {
94                  _call.setTargetEndpointAddress(super.cachedEndpoint);
95              }
96              if (super.cachedTimeout != null) {
97                  _call.setTimeout(super.cachedTimeout);
98              }
99              if (super.cachedPortName != null) {
100                 _call.setPortName(super.cachedPortName);
101             }
102             java.util.Enumeration keys = super.cachedProperties.keys();
103             while (keys.hasMoreElements()) {
104                 java.lang.String key = (java.lang.String) keys.nextElement();
105                 _call.setProperty(key, super.cachedProperties.get(key));
106             }
107             // All the type mapping information is registered
108             // when the first call is made.
109             // The type mapping information is actually registered in
110             // the TypeMappingRegistry of the service, which
111             // is the reason why registration is only needed for the first call.
112             synchronized (this) {
113                 if (firstCall()) {
114                     // must set encoding style before registering serializers
115                     _call.setEncodingStyle(null);
116                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
117                         java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
118                         javax.xml.namespace.QName qName =
119                                 (javax.xml.namespace.QName) cachedSerQNames.get(i);
120                         java.lang.Class sf = (java.lang.Class)
121                                  cachedSerFactories.get(i);
122                         java.lang.Class df = (java.lang.Class)
123                                  cachedDeserFactories.get(i);
124                         _call.registerTypeMapping(cls, qName, sf, df, false);
125                     }
126                 }
127             }
128             return _call;
129         }
130         catch (java.lang.Throwable t) {
131             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
132         }
133     }
134 
135     public void putResults(org.astrogrid.jes.types.v1.cea.axis.JobIdentifierType jobIdentifier, org.astrogrid.jes.types.v1.cea.axis.ResultListType resultList) throws java.rmi.RemoteException {
136         if (super.cachedEndpoint == null) {
137             throw new org.apache.axis.NoEndPointException();
138         }
139         org.apache.axis.client.Call _call = createCall();
140         _call.setOperation(_operations[0]);
141         _call.setUseSOAPAction(true);
142         _call.setSOAPActionURI("putResults");
143         _call.setEncodingStyle(null);
144         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
145         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
146         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
147         _call.setOperationName(new javax.xml.namespace.QName("urn:cea/resultslistener-wrapper/v1", "putResults"));
148 
149         setRequestHeaders(_call);
150         setAttachments(_call);
151         _call.invokeOneWay(new java.lang.Object[] {jobIdentifier, resultList});
152 
153     }
154 
155 }