~ubuntu-core-dev/ubuntu/maverick/eucalyptus/devel

« back to all changes in this revision

Viewing changes to cluster/generated/axis2_stub_EucalyptusCC.c

  • Committer: Dustin Kirkland
  • Date: 2010-07-22 08:41:57 UTC
  • mfrom: (1050.1.19 ubuntu)
  • Revision ID: kirkland@x200-20100722084157-zh2p8dkawznvxxpn
Approving Dave Walker's merge of new upstream Eucalyptus 2.0 release.

Dustin Kirkland <kirkland@canonical.com>

* New major upstream version merge, 2.0 (r1211).
  - 01-wsdl-stubs.patch, debian/wsdl.md5sums: wsdl stubs updated.
  - 11-state-cleanup-memleakfix.patch: Removed, fixed upstream.
  - 21-eucalyptus-1.7-with-gwt-1.6.4.patch: New patch, allows 
    eucalyptus-1.7 to be built against gwt 1.6.4. Based on patch courtesy 
    of Dmitrii Zagorodnov, upstream. (LP: #597330)
* debian/eucalyptus-java-common.links: 
  - Changed symlink for groovy, point to groovy.all.jar, making compatiable 
    with groovy versions >1.7. (LP: #595421)
  - Added ant.jar & jetty-rewrite-handler.jar as they are now required.
* debian/control
  - & debian/build-jars: Added libjavassist-java and libjetty-extra-java as 
    build dependencies.
  - Added libjetty-extra-java as a dependency of eucalyptus-java-common
* The binary resulting jar's have been renamed from eucalyptus-*-1.6.2.jar
  to eucalyptus-*-main.jar:    
  - debian/eucalyptus-cc.upstart
  - debian/eucalyptus-cloud.install
  - debian/eucalyptus-common.eucalyptus.upstart
  - debian/eucalyptus-java-common.install
  - debian/eucalyptus-network.upstart
  - debian/eucalyptus-sc.install
  - debian/eucalyptus-walrus.install
* debian/eucalyptus-java-common.install: New upstream jars that have been
  installed:
  - eucalyptus-db-hsqldb-ext-main.jar
  - eucalyptus-component-main.jar
* debian/control:
  - Updated Standards Version to 3.8.4 (no change)
  - Updated the upstream Homepage to: http://open.eucalyptus.com/
  - Changed Vcs-Bzr to reflect new location of Ubuntu hosted development branch.
  - Made the Build Dependency of groovy and the binary eucalyptus-java-common
    package depend on version >=1.7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
2
 
 
3
 
      /**
4
 
       * axis2_stub_EucalyptusCC.c
5
 
       *
6
 
       * This file was auto-generated from WSDL for "EucalyptusCC|http://eucalyptus.ucsb.edu/" service
7
 
       * by the Apache Axis2/Java version: 1.4  Built on : Apr 26, 2008 (06:24:30 EDT)
8
 
       */
9
 
 
10
 
      #include "axis2_stub_EucalyptusCC.h"
11
 
      #include <axis2_msg.h>
12
 
 
13
 
      /**
14
 
       * axis2_stub_EucalyptusCC C implementation
15
 
       */
16
 
 
17
 
      axis2_stub_t*
18
 
      axis2_stub_create_EucalyptusCC(const axutil_env_t *env,
19
 
                                      axis2_char_t *client_home,
20
 
                                      axis2_char_t *endpoint_uri)
21
 
      {
22
 
         axis2_stub_t *stub = NULL;
23
 
         axis2_endpoint_ref_t *endpoint_ref = NULL;
24
 
         AXIS2_FUNC_PARAM_CHECK (client_home, env, NULL)
25
 
 
26
 
         if (NULL == endpoint_uri)
27
 
         {
28
 
            endpoint_uri = axis2_stub_get_endpoint_uri_of_EucalyptusCC(env);
29
 
         }
30
 
 
31
 
         endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri);
32
 
 
33
 
         stub = axis2_stub_create_with_endpoint_ref_and_client_home (env, endpoint_ref, client_home);
34
 
 
35
 
         if (NULL == stub)
36
 
         {
37
 
            if(NULL != endpoint_ref)
38
 
            {
39
 
                axis2_endpoint_ref_free(endpoint_ref, env);
40
 
            }
41
 
            return NULL;
42
 
         }
43
 
 
44
 
 
45
 
         axis2_stub_populate_services_for_EucalyptusCC(stub, env);
46
 
         return stub;
47
 
      }
48
 
 
49
 
 
50
 
      void
51
 
      axis2_stub_populate_services_for_EucalyptusCC(axis2_stub_t *stub, const axutil_env_t *env)
52
 
      {
53
 
         axis2_svc_client_t *svc_client = NULL;
54
 
         axutil_qname_t *svc_qname =  NULL;
55
 
         axutil_qname_t *op_qname =  NULL;
56
 
         axis2_svc_t *svc = NULL;
57
 
         axis2_op_t *op = NULL;
58
 
         axis2_op_t *annon_op = NULL;
59
 
         axis2_msg_t *msg_out = NULL;
60
 
         axis2_msg_t *msg_in = NULL;
61
 
         axis2_msg_t *msg_out_fault = NULL;
62
 
         axis2_msg_t *msg_in_fault = NULL;
63
 
 
64
 
 
65
 
         /* Modifying the Service */
66
 
         svc_client = axis2_stub_get_svc_client (stub, env );
67
 
         svc = (axis2_svc_t*)axis2_svc_client_get_svc( svc_client, env );
68
 
 
69
 
         annon_op = axis2_svc_get_op_with_name(svc, env, AXIS2_ANON_OUT_IN_OP);
70
 
         msg_out = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT);
71
 
         msg_in = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN);
72
 
         msg_out_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_OUT_FAULT);
73
 
         msg_in_fault = axis2_op_get_msg(annon_op, env, AXIS2_MSG_IN_FAULT);
74
 
 
75
 
         svc_qname = axutil_qname_create(env,"EucalyptusCC" ,NULL, NULL);
76
 
         axis2_svc_set_qname (svc, env, svc_qname);
77
 
 
78
 
         /* creating the operations*/
79
 
 
80
 
 
81
 
           op_qname = axutil_qname_create(env,
82
 
                                         "DescribeInstances" ,
83
 
                                         "http://eucalyptus.ucsb.edu/",
84
 
                                         NULL);
85
 
           op = axis2_op_create_with_qname(env, op_qname);
86
 
 
87
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
88
 
 
89
 
           axis2_msg_increment_ref(msg_out, env);
90
 
           axis2_msg_increment_ref(msg_in, env);
91
 
           axis2_msg_increment_ref(msg_out_fault, env);
92
 
           axis2_msg_increment_ref(msg_in_fault, env);
93
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
94
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
95
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
96
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
97
 
 
98
 
           axis2_svc_add_op(svc, env, op);
99
 
 
100
 
 
101
 
           op_qname = axutil_qname_create(env,
102
 
                                         "ConfigureNetwork" ,
103
 
                                         "http://eucalyptus.ucsb.edu/",
104
 
                                         NULL);
105
 
           op = axis2_op_create_with_qname(env, op_qname);
106
 
 
107
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
108
 
 
109
 
           axis2_msg_increment_ref(msg_out, env);
110
 
           axis2_msg_increment_ref(msg_in, env);
111
 
           axis2_msg_increment_ref(msg_out_fault, env);
112
 
           axis2_msg_increment_ref(msg_in_fault, env);
113
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
114
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
115
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
116
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
117
 
 
118
 
           axis2_svc_add_op(svc, env, op);
119
 
 
120
 
 
121
 
           op_qname = axutil_qname_create(env,
122
 
                                         "DescribeResources" ,
123
 
                                         "http://eucalyptus.ucsb.edu/",
124
 
                                         NULL);
125
 
           op = axis2_op_create_with_qname(env, op_qname);
126
 
 
127
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
128
 
 
129
 
           axis2_msg_increment_ref(msg_out, env);
130
 
           axis2_msg_increment_ref(msg_in, env);
131
 
           axis2_msg_increment_ref(msg_out_fault, env);
132
 
           axis2_msg_increment_ref(msg_in_fault, env);
133
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
134
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
135
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
136
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
137
 
 
138
 
           axis2_svc_add_op(svc, env, op);
139
 
 
140
 
 
141
 
           op_qname = axutil_qname_create(env,
142
 
                                         "StartNetwork" ,
143
 
                                         "http://eucalyptus.ucsb.edu/",
144
 
                                         NULL);
145
 
           op = axis2_op_create_with_qname(env, op_qname);
146
 
 
147
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
148
 
 
149
 
           axis2_msg_increment_ref(msg_out, env);
150
 
           axis2_msg_increment_ref(msg_in, env);
151
 
           axis2_msg_increment_ref(msg_out_fault, env);
152
 
           axis2_msg_increment_ref(msg_in_fault, env);
153
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
154
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
155
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
156
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
157
 
 
158
 
           axis2_svc_add_op(svc, env, op);
159
 
 
160
 
 
161
 
           op_qname = axutil_qname_create(env,
162
 
                                         "StopNetwork" ,
163
 
                                         "http://eucalyptus.ucsb.edu/",
164
 
                                         NULL);
165
 
           op = axis2_op_create_with_qname(env, op_qname);
166
 
 
167
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
168
 
 
169
 
           axis2_msg_increment_ref(msg_out, env);
170
 
           axis2_msg_increment_ref(msg_in, env);
171
 
           axis2_msg_increment_ref(msg_out_fault, env);
172
 
           axis2_msg_increment_ref(msg_in_fault, env);
173
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
174
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
175
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
176
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
177
 
 
178
 
           axis2_svc_add_op(svc, env, op);
179
 
 
180
 
 
181
 
           op_qname = axutil_qname_create(env,
182
 
                                         "DescribeNetworks" ,
183
 
                                         "http://eucalyptus.ucsb.edu/",
184
 
                                         NULL);
185
 
           op = axis2_op_create_with_qname(env, op_qname);
186
 
 
187
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
188
 
 
189
 
           axis2_msg_increment_ref(msg_out, env);
190
 
           axis2_msg_increment_ref(msg_in, env);
191
 
           axis2_msg_increment_ref(msg_out_fault, env);
192
 
           axis2_msg_increment_ref(msg_in_fault, env);
193
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
194
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
195
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
196
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
197
 
 
198
 
           axis2_svc_add_op(svc, env, op);
199
 
 
200
 
 
201
 
           op_qname = axutil_qname_create(env,
202
 
                                         "AssignAddress" ,
203
 
                                         "http://eucalyptus.ucsb.edu/",
204
 
                                         NULL);
205
 
           op = axis2_op_create_with_qname(env, op_qname);
206
 
 
207
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
208
 
 
209
 
           axis2_msg_increment_ref(msg_out, env);
210
 
           axis2_msg_increment_ref(msg_in, env);
211
 
           axis2_msg_increment_ref(msg_out_fault, env);
212
 
           axis2_msg_increment_ref(msg_in_fault, env);
213
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
214
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
215
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
216
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
217
 
 
218
 
           axis2_svc_add_op(svc, env, op);
219
 
 
220
 
 
221
 
           op_qname = axutil_qname_create(env,
222
 
                                         "DescribePublicAddresses" ,
223
 
                                         "http://eucalyptus.ucsb.edu/",
224
 
                                         NULL);
225
 
           op = axis2_op_create_with_qname(env, op_qname);
226
 
 
227
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
228
 
 
229
 
           axis2_msg_increment_ref(msg_out, env);
230
 
           axis2_msg_increment_ref(msg_in, env);
231
 
           axis2_msg_increment_ref(msg_out_fault, env);
232
 
           axis2_msg_increment_ref(msg_in_fault, env);
233
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
234
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
235
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
236
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
237
 
 
238
 
           axis2_svc_add_op(svc, env, op);
239
 
 
240
 
 
241
 
           op_qname = axutil_qname_create(env,
242
 
                                         "RebootInstances" ,
243
 
                                         "http://eucalyptus.ucsb.edu/",
244
 
                                         NULL);
245
 
           op = axis2_op_create_with_qname(env, op_qname);
246
 
 
247
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
248
 
 
249
 
           axis2_msg_increment_ref(msg_out, env);
250
 
           axis2_msg_increment_ref(msg_in, env);
251
 
           axis2_msg_increment_ref(msg_out_fault, env);
252
 
           axis2_msg_increment_ref(msg_in_fault, env);
253
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
254
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
255
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
256
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
257
 
 
258
 
           axis2_svc_add_op(svc, env, op);
259
 
 
260
 
 
261
 
           op_qname = axutil_qname_create(env,
262
 
                                         "GetConsoleOutput" ,
263
 
                                         "http://eucalyptus.ucsb.edu/",
264
 
                                         NULL);
265
 
           op = axis2_op_create_with_qname(env, op_qname);
266
 
 
267
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
268
 
 
269
 
           axis2_msg_increment_ref(msg_out, env);
270
 
           axis2_msg_increment_ref(msg_in, env);
271
 
           axis2_msg_increment_ref(msg_out_fault, env);
272
 
           axis2_msg_increment_ref(msg_in_fault, env);
273
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
274
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
275
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
276
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
277
 
 
278
 
           axis2_svc_add_op(svc, env, op);
279
 
 
280
 
 
281
 
           op_qname = axutil_qname_create(env,
282
 
                                         "UnassignAddress" ,
283
 
                                         "http://eucalyptus.ucsb.edu/",
284
 
                                         NULL);
285
 
           op = axis2_op_create_with_qname(env, op_qname);
286
 
 
287
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
288
 
 
289
 
           axis2_msg_increment_ref(msg_out, env);
290
 
           axis2_msg_increment_ref(msg_in, env);
291
 
           axis2_msg_increment_ref(msg_out_fault, env);
292
 
           axis2_msg_increment_ref(msg_in_fault, env);
293
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
294
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
295
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
296
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
297
 
 
298
 
           axis2_svc_add_op(svc, env, op);
299
 
 
300
 
 
301
 
           op_qname = axutil_qname_create(env,
302
 
                                         "TerminateInstances" ,
303
 
                                         "http://eucalyptus.ucsb.edu/",
304
 
                                         NULL);
305
 
           op = axis2_op_create_with_qname(env, op_qname);
306
 
 
307
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
308
 
 
309
 
           axis2_msg_increment_ref(msg_out, env);
310
 
           axis2_msg_increment_ref(msg_in, env);
311
 
           axis2_msg_increment_ref(msg_out_fault, env);
312
 
           axis2_msg_increment_ref(msg_in_fault, env);
313
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
314
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
315
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
316
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
317
 
 
318
 
           axis2_svc_add_op(svc, env, op);
319
 
 
320
 
 
321
 
           op_qname = axutil_qname_create(env,
322
 
                                         "DetachVolume" ,
323
 
                                         "http://eucalyptus.ucsb.edu/",
324
 
                                         NULL);
325
 
           op = axis2_op_create_with_qname(env, op_qname);
326
 
 
327
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
328
 
 
329
 
           axis2_msg_increment_ref(msg_out, env);
330
 
           axis2_msg_increment_ref(msg_in, env);
331
 
           axis2_msg_increment_ref(msg_out_fault, env);
332
 
           axis2_msg_increment_ref(msg_in_fault, env);
333
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
334
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
335
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
336
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
337
 
 
338
 
           axis2_svc_add_op(svc, env, op);
339
 
 
340
 
 
341
 
           op_qname = axutil_qname_create(env,
342
 
                                         "AttachVolume" ,
343
 
                                         "http://eucalyptus.ucsb.edu/",
344
 
                                         NULL);
345
 
           op = axis2_op_create_with_qname(env, op_qname);
346
 
 
347
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
348
 
 
349
 
           axis2_msg_increment_ref(msg_out, env);
350
 
           axis2_msg_increment_ref(msg_in, env);
351
 
           axis2_msg_increment_ref(msg_out_fault, env);
352
 
           axis2_msg_increment_ref(msg_in_fault, env);
353
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
354
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
355
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
356
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
357
 
 
358
 
           axis2_svc_add_op(svc, env, op);
359
 
 
360
 
 
361
 
           op_qname = axutil_qname_create(env,
362
 
                                         "RunInstances" ,
363
 
                                         "http://eucalyptus.ucsb.edu/",
364
 
                                         NULL);
365
 
           op = axis2_op_create_with_qname(env, op_qname);
366
 
 
367
 
               axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_OUT_IN);
368
 
 
369
 
           axis2_msg_increment_ref(msg_out, env);
370
 
           axis2_msg_increment_ref(msg_in, env);
371
 
           axis2_msg_increment_ref(msg_out_fault, env);
372
 
           axis2_msg_increment_ref(msg_in_fault, env);
373
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT, msg_out);
374
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN, msg_in);
375
 
           axis2_op_add_msg(op, env, AXIS2_MSG_OUT_FAULT, msg_out_fault);
376
 
           axis2_op_add_msg(op, env, AXIS2_MSG_IN_FAULT, msg_in_fault);
377
 
 
378
 
           axis2_svc_add_op(svc, env, op);
379
 
 
380
 
 
381
 
      }
382
 
 
383
 
      /**
384
 
       *return end point picked from wsdl
385
 
       */
386
 
      axis2_char_t*
387
 
      axis2_stub_get_endpoint_uri_of_EucalyptusCC( const axutil_env_t *env )
388
 
      {
389
 
        axis2_char_t *endpoint_uri = NULL;
390
 
        /* set the address from here */
391
 
 
392
 
              endpoint_uri = "http://cc:9090/axis2/services/EucalyptusCC";
393
 
 
394
 
        return endpoint_uri;
395
 
      }
396
 
 
397
 
 
398
 
 
399
 
         /**
400
 
          * auto generated method signature
401
 
          * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation.
402
 
          *
403
 
          * @param _describeInstances
404
 
          *
405
 
          * @return adb_DescribeInstancesResponse_t*
406
 
          */
407
 
         adb_DescribeInstancesResponse_t*
408
 
         axis2_stub_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env,
409
 
                                              adb_DescribeInstances_t* _describeInstances)
410
 
         {
411
 
            axis2_svc_client_t *svc_client = NULL;
412
 
            axis2_options_t *options = NULL;
413
 
            axiom_node_t *ret_node = NULL;
414
 
 
415
 
            const axis2_char_t *soap_action = NULL;
416
 
            axutil_qname_t *op_qname =  NULL;
417
 
            axiom_node_t *payload = NULL;
418
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
419
 
 
420
 
            axutil_string_t *soap_act = NULL;
421
 
            adb_DescribeInstancesResponse_t* ret_val = NULL;
422
 
 
423
 
                       payload = adb_DescribeInstances_serialize(_describeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
424
 
 
425
 
            svc_client = axis2_stub_get_svc_client(stub, env );
426
 
 
427
 
 
428
 
 
429
 
 
430
 
 
431
 
            options = axis2_stub_get_options( stub, env);
432
 
            if (NULL == options)
433
 
            {
434
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
435
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
436
 
                return NULL;
437
 
            }
438
 
            soap_action = axis2_options_get_action( options, env );
439
 
            if (NULL == soap_action)
440
 
            {
441
 
              is_soap_act_set = AXIS2_FALSE;
442
 
              soap_action = "EucalyptusCC#DescribeInstances";
443
 
 
444
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeInstances");
445
 
              axis2_options_set_soap_action(options, env, soap_act);
446
 
 
447
 
              axis2_options_set_action( options, env, soap_action );
448
 
            }
449
 
 
450
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
451
 
 
452
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
453
 
 
454
 
            if (!is_soap_act_set)
455
 
            {
456
 
 
457
 
              axis2_options_set_soap_action(options, env, NULL);
458
 
 
459
 
              axis2_options_set_action( options, env, NULL);
460
 
            }
461
 
 
462
 
 
463
 
 
464
 
                    if ( NULL == ret_node )
465
 
                    {
466
 
                        return NULL;
467
 
                    }
468
 
                    ret_val = adb_DescribeInstancesResponse_create(env);
469
 
 
470
 
                    if(adb_DescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
471
 
                    {
472
 
                        if(ret_val != NULL)
473
 
                        {
474
 
                            adb_DescribeInstancesResponse_free(ret_val, env);
475
 
                        }
476
 
 
477
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeInstancesResponse_deserialize: "
478
 
                                                                "This should be due to an invalid XML");
479
 
                        return NULL;
480
 
                    }
481
 
                    return ret_val;
482
 
 
483
 
        }
484
 
 
485
 
         /**
486
 
          * auto generated method signature
487
 
          * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation.
488
 
          *
489
 
          * @param _configureNetwork
490
 
          *
491
 
          * @return adb_ConfigureNetworkResponse_t*
492
 
          */
493
 
         adb_ConfigureNetworkResponse_t*
494
 
         axis2_stub_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env,
495
 
                                              adb_ConfigureNetwork_t* _configureNetwork)
496
 
         {
497
 
            axis2_svc_client_t *svc_client = NULL;
498
 
            axis2_options_t *options = NULL;
499
 
            axiom_node_t *ret_node = NULL;
500
 
 
501
 
            const axis2_char_t *soap_action = NULL;
502
 
            axutil_qname_t *op_qname =  NULL;
503
 
            axiom_node_t *payload = NULL;
504
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
505
 
 
506
 
            axutil_string_t *soap_act = NULL;
507
 
            adb_ConfigureNetworkResponse_t* ret_val = NULL;
508
 
 
509
 
                       payload = adb_ConfigureNetwork_serialize(_configureNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
510
 
 
511
 
            svc_client = axis2_stub_get_svc_client(stub, env );
512
 
 
513
 
 
514
 
 
515
 
 
516
 
 
517
 
            options = axis2_stub_get_options( stub, env);
518
 
            if (NULL == options)
519
 
            {
520
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
521
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
522
 
                return NULL;
523
 
            }
524
 
            soap_action = axis2_options_get_action( options, env );
525
 
            if (NULL == soap_action)
526
 
            {
527
 
              is_soap_act_set = AXIS2_FALSE;
528
 
              soap_action = "EucalyptusCC#ConfigureNetwork";
529
 
 
530
 
              soap_act = axutil_string_create(env, "EucalyptusCC#ConfigureNetwork");
531
 
              axis2_options_set_soap_action(options, env, soap_act);
532
 
 
533
 
              axis2_options_set_action( options, env, soap_action );
534
 
            }
535
 
 
536
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
537
 
 
538
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
539
 
 
540
 
            if (!is_soap_act_set)
541
 
            {
542
 
 
543
 
              axis2_options_set_soap_action(options, env, NULL);
544
 
 
545
 
              axis2_options_set_action( options, env, NULL);
546
 
            }
547
 
 
548
 
 
549
 
 
550
 
                    if ( NULL == ret_node )
551
 
                    {
552
 
                        return NULL;
553
 
                    }
554
 
                    ret_val = adb_ConfigureNetworkResponse_create(env);
555
 
 
556
 
                    if(adb_ConfigureNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
557
 
                    {
558
 
                        if(ret_val != NULL)
559
 
                        {
560
 
                            adb_ConfigureNetworkResponse_free(ret_val, env);
561
 
                        }
562
 
 
563
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the ConfigureNetworkResponse_deserialize: "
564
 
                                                                "This should be due to an invalid XML");
565
 
                        return NULL;
566
 
                    }
567
 
                    return ret_val;
568
 
 
569
 
        }
570
 
 
571
 
         /**
572
 
          * auto generated method signature
573
 
          * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation.
574
 
          *
575
 
          * @param _describeResources
576
 
          *
577
 
          * @return adb_DescribeResourcesResponse_t*
578
 
          */
579
 
         adb_DescribeResourcesResponse_t*
580
 
         axis2_stub_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env,
581
 
                                              adb_DescribeResources_t* _describeResources)
582
 
         {
583
 
            axis2_svc_client_t *svc_client = NULL;
584
 
            axis2_options_t *options = NULL;
585
 
            axiom_node_t *ret_node = NULL;
586
 
 
587
 
            const axis2_char_t *soap_action = NULL;
588
 
            axutil_qname_t *op_qname =  NULL;
589
 
            axiom_node_t *payload = NULL;
590
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
591
 
 
592
 
            axutil_string_t *soap_act = NULL;
593
 
            adb_DescribeResourcesResponse_t* ret_val = NULL;
594
 
 
595
 
                       payload = adb_DescribeResources_serialize(_describeResources, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
596
 
 
597
 
            svc_client = axis2_stub_get_svc_client(stub, env );
598
 
 
599
 
 
600
 
 
601
 
 
602
 
 
603
 
            options = axis2_stub_get_options( stub, env);
604
 
            if (NULL == options)
605
 
            {
606
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
607
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
608
 
                return NULL;
609
 
            }
610
 
            soap_action = axis2_options_get_action( options, env );
611
 
            if (NULL == soap_action)
612
 
            {
613
 
              is_soap_act_set = AXIS2_FALSE;
614
 
              soap_action = "EucalyptusCC#DescribeResources";
615
 
 
616
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeResources");
617
 
              axis2_options_set_soap_action(options, env, soap_act);
618
 
 
619
 
              axis2_options_set_action( options, env, soap_action );
620
 
            }
621
 
 
622
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
623
 
 
624
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
625
 
 
626
 
            if (!is_soap_act_set)
627
 
            {
628
 
 
629
 
              axis2_options_set_soap_action(options, env, NULL);
630
 
 
631
 
              axis2_options_set_action( options, env, NULL);
632
 
            }
633
 
 
634
 
 
635
 
 
636
 
                    if ( NULL == ret_node )
637
 
                    {
638
 
                        return NULL;
639
 
                    }
640
 
                    ret_val = adb_DescribeResourcesResponse_create(env);
641
 
 
642
 
                    if(adb_DescribeResourcesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
643
 
                    {
644
 
                        if(ret_val != NULL)
645
 
                        {
646
 
                            adb_DescribeResourcesResponse_free(ret_val, env);
647
 
                        }
648
 
 
649
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeResourcesResponse_deserialize: "
650
 
                                                                "This should be due to an invalid XML");
651
 
                        return NULL;
652
 
                    }
653
 
                    return ret_val;
654
 
 
655
 
        }
656
 
 
657
 
         /**
658
 
          * auto generated method signature
659
 
          * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation.
660
 
          *
661
 
          * @param _startNetwork
662
 
          *
663
 
          * @return adb_StartNetworkResponse_t*
664
 
          */
665
 
         adb_StartNetworkResponse_t*
666
 
         axis2_stub_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env,
667
 
                                              adb_StartNetwork_t* _startNetwork)
668
 
         {
669
 
            axis2_svc_client_t *svc_client = NULL;
670
 
            axis2_options_t *options = NULL;
671
 
            axiom_node_t *ret_node = NULL;
672
 
 
673
 
            const axis2_char_t *soap_action = NULL;
674
 
            axutil_qname_t *op_qname =  NULL;
675
 
            axiom_node_t *payload = NULL;
676
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
677
 
 
678
 
            axutil_string_t *soap_act = NULL;
679
 
            adb_StartNetworkResponse_t* ret_val = NULL;
680
 
 
681
 
                       payload = adb_StartNetwork_serialize(_startNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
682
 
 
683
 
            svc_client = axis2_stub_get_svc_client(stub, env );
684
 
 
685
 
 
686
 
 
687
 
 
688
 
 
689
 
            options = axis2_stub_get_options( stub, env);
690
 
            if (NULL == options)
691
 
            {
692
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
693
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
694
 
                return NULL;
695
 
            }
696
 
            soap_action = axis2_options_get_action( options, env );
697
 
            if (NULL == soap_action)
698
 
            {
699
 
              is_soap_act_set = AXIS2_FALSE;
700
 
              soap_action = "EucalyptusCC#StartNetwork";
701
 
 
702
 
              soap_act = axutil_string_create(env, "EucalyptusCC#StartNetwork");
703
 
              axis2_options_set_soap_action(options, env, soap_act);
704
 
 
705
 
              axis2_options_set_action( options, env, soap_action );
706
 
            }
707
 
 
708
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
709
 
 
710
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
711
 
 
712
 
            if (!is_soap_act_set)
713
 
            {
714
 
 
715
 
              axis2_options_set_soap_action(options, env, NULL);
716
 
 
717
 
              axis2_options_set_action( options, env, NULL);
718
 
            }
719
 
 
720
 
 
721
 
 
722
 
                    if ( NULL == ret_node )
723
 
                    {
724
 
                        return NULL;
725
 
                    }
726
 
                    ret_val = adb_StartNetworkResponse_create(env);
727
 
 
728
 
                    if(adb_StartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
729
 
                    {
730
 
                        if(ret_val != NULL)
731
 
                        {
732
 
                            adb_StartNetworkResponse_free(ret_val, env);
733
 
                        }
734
 
 
735
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StartNetworkResponse_deserialize: "
736
 
                                                                "This should be due to an invalid XML");
737
 
                        return NULL;
738
 
                    }
739
 
                    return ret_val;
740
 
 
741
 
        }
742
 
 
743
 
         /**
744
 
          * auto generated method signature
745
 
          * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation.
746
 
          *
747
 
          * @param _stopNetwork
748
 
          *
749
 
          * @return adb_StopNetworkResponse_t*
750
 
          */
751
 
         adb_StopNetworkResponse_t*
752
 
         axis2_stub_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env,
753
 
                                              adb_StopNetwork_t* _stopNetwork)
754
 
         {
755
 
            axis2_svc_client_t *svc_client = NULL;
756
 
            axis2_options_t *options = NULL;
757
 
            axiom_node_t *ret_node = NULL;
758
 
 
759
 
            const axis2_char_t *soap_action = NULL;
760
 
            axutil_qname_t *op_qname =  NULL;
761
 
            axiom_node_t *payload = NULL;
762
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
763
 
 
764
 
            axutil_string_t *soap_act = NULL;
765
 
            adb_StopNetworkResponse_t* ret_val = NULL;
766
 
 
767
 
                       payload = adb_StopNetwork_serialize(_stopNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
768
 
 
769
 
            svc_client = axis2_stub_get_svc_client(stub, env );
770
 
 
771
 
 
772
 
 
773
 
 
774
 
 
775
 
            options = axis2_stub_get_options( stub, env);
776
 
            if (NULL == options)
777
 
            {
778
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
779
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
780
 
                return NULL;
781
 
            }
782
 
            soap_action = axis2_options_get_action( options, env );
783
 
            if (NULL == soap_action)
784
 
            {
785
 
              is_soap_act_set = AXIS2_FALSE;
786
 
              soap_action = "EucalyptusCC#StopNetwork";
787
 
 
788
 
              soap_act = axutil_string_create(env, "EucalyptusCC#StopNetwork");
789
 
              axis2_options_set_soap_action(options, env, soap_act);
790
 
 
791
 
              axis2_options_set_action( options, env, soap_action );
792
 
            }
793
 
 
794
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
795
 
 
796
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
797
 
 
798
 
            if (!is_soap_act_set)
799
 
            {
800
 
 
801
 
              axis2_options_set_soap_action(options, env, NULL);
802
 
 
803
 
              axis2_options_set_action( options, env, NULL);
804
 
            }
805
 
 
806
 
 
807
 
 
808
 
                    if ( NULL == ret_node )
809
 
                    {
810
 
                        return NULL;
811
 
                    }
812
 
                    ret_val = adb_StopNetworkResponse_create(env);
813
 
 
814
 
                    if(adb_StopNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
815
 
                    {
816
 
                        if(ret_val != NULL)
817
 
                        {
818
 
                            adb_StopNetworkResponse_free(ret_val, env);
819
 
                        }
820
 
 
821
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the StopNetworkResponse_deserialize: "
822
 
                                                                "This should be due to an invalid XML");
823
 
                        return NULL;
824
 
                    }
825
 
                    return ret_val;
826
 
 
827
 
        }
828
 
 
829
 
         /**
830
 
          * auto generated method signature
831
 
          * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation.
832
 
          *
833
 
          * @param _describeNetworks
834
 
          *
835
 
          * @return adb_DescribeNetworksResponse_t*
836
 
          */
837
 
         adb_DescribeNetworksResponse_t*
838
 
         axis2_stub_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env,
839
 
                                              adb_DescribeNetworks_t* _describeNetworks)
840
 
         {
841
 
            axis2_svc_client_t *svc_client = NULL;
842
 
            axis2_options_t *options = NULL;
843
 
            axiom_node_t *ret_node = NULL;
844
 
 
845
 
            const axis2_char_t *soap_action = NULL;
846
 
            axutil_qname_t *op_qname =  NULL;
847
 
            axiom_node_t *payload = NULL;
848
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
849
 
 
850
 
            axutil_string_t *soap_act = NULL;
851
 
            adb_DescribeNetworksResponse_t* ret_val = NULL;
852
 
 
853
 
                       payload = adb_DescribeNetworks_serialize(_describeNetworks, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
854
 
 
855
 
            svc_client = axis2_stub_get_svc_client(stub, env );
856
 
 
857
 
 
858
 
 
859
 
 
860
 
 
861
 
            options = axis2_stub_get_options( stub, env);
862
 
            if (NULL == options)
863
 
            {
864
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
865
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
866
 
                return NULL;
867
 
            }
868
 
            soap_action = axis2_options_get_action( options, env );
869
 
            if (NULL == soap_action)
870
 
            {
871
 
              is_soap_act_set = AXIS2_FALSE;
872
 
              soap_action = "EucalyptusCC#DescribeNetworks";
873
 
 
874
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeNetworks");
875
 
              axis2_options_set_soap_action(options, env, soap_act);
876
 
 
877
 
              axis2_options_set_action( options, env, soap_action );
878
 
            }
879
 
 
880
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
881
 
 
882
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
883
 
 
884
 
            if (!is_soap_act_set)
885
 
            {
886
 
 
887
 
              axis2_options_set_soap_action(options, env, NULL);
888
 
 
889
 
              axis2_options_set_action( options, env, NULL);
890
 
            }
891
 
 
892
 
 
893
 
 
894
 
                    if ( NULL == ret_node )
895
 
                    {
896
 
                        return NULL;
897
 
                    }
898
 
                    ret_val = adb_DescribeNetworksResponse_create(env);
899
 
 
900
 
                    if(adb_DescribeNetworksResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
901
 
                    {
902
 
                        if(ret_val != NULL)
903
 
                        {
904
 
                            adb_DescribeNetworksResponse_free(ret_val, env);
905
 
                        }
906
 
 
907
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribeNetworksResponse_deserialize: "
908
 
                                                                "This should be due to an invalid XML");
909
 
                        return NULL;
910
 
                    }
911
 
                    return ret_val;
912
 
 
913
 
        }
914
 
 
915
 
         /**
916
 
          * auto generated method signature
917
 
          * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation.
918
 
          *
919
 
          * @param _assignAddress
920
 
          *
921
 
          * @return adb_AssignAddressResponse_t*
922
 
          */
923
 
         adb_AssignAddressResponse_t*
924
 
         axis2_stub_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env,
925
 
                                              adb_AssignAddress_t* _assignAddress)
926
 
         {
927
 
            axis2_svc_client_t *svc_client = NULL;
928
 
            axis2_options_t *options = NULL;
929
 
            axiom_node_t *ret_node = NULL;
930
 
 
931
 
            const axis2_char_t *soap_action = NULL;
932
 
            axutil_qname_t *op_qname =  NULL;
933
 
            axiom_node_t *payload = NULL;
934
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
935
 
 
936
 
            axutil_string_t *soap_act = NULL;
937
 
            adb_AssignAddressResponse_t* ret_val = NULL;
938
 
 
939
 
                       payload = adb_AssignAddress_serialize(_assignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
940
 
 
941
 
            svc_client = axis2_stub_get_svc_client(stub, env );
942
 
 
943
 
 
944
 
 
945
 
 
946
 
 
947
 
            options = axis2_stub_get_options( stub, env);
948
 
            if (NULL == options)
949
 
            {
950
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
951
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
952
 
                return NULL;
953
 
            }
954
 
            soap_action = axis2_options_get_action( options, env );
955
 
            if (NULL == soap_action)
956
 
            {
957
 
              is_soap_act_set = AXIS2_FALSE;
958
 
              soap_action = "EucalyptusCC#AssignAddress";
959
 
 
960
 
              soap_act = axutil_string_create(env, "EucalyptusCC#AssignAddress");
961
 
              axis2_options_set_soap_action(options, env, soap_act);
962
 
 
963
 
              axis2_options_set_action( options, env, soap_action );
964
 
            }
965
 
 
966
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
967
 
 
968
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
969
 
 
970
 
            if (!is_soap_act_set)
971
 
            {
972
 
 
973
 
              axis2_options_set_soap_action(options, env, NULL);
974
 
 
975
 
              axis2_options_set_action( options, env, NULL);
976
 
            }
977
 
 
978
 
 
979
 
 
980
 
                    if ( NULL == ret_node )
981
 
                    {
982
 
                        return NULL;
983
 
                    }
984
 
                    ret_val = adb_AssignAddressResponse_create(env);
985
 
 
986
 
                    if(adb_AssignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
987
 
                    {
988
 
                        if(ret_val != NULL)
989
 
                        {
990
 
                            adb_AssignAddressResponse_free(ret_val, env);
991
 
                        }
992
 
 
993
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AssignAddressResponse_deserialize: "
994
 
                                                                "This should be due to an invalid XML");
995
 
                        return NULL;
996
 
                    }
997
 
                    return ret_val;
998
 
 
999
 
        }
1000
 
 
1001
 
         /**
1002
 
          * auto generated method signature
1003
 
          * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation.
1004
 
          *
1005
 
          * @param _describePublicAddresses
1006
 
          *
1007
 
          * @return adb_DescribePublicAddressesResponse_t*
1008
 
          */
1009
 
         adb_DescribePublicAddressesResponse_t*
1010
 
         axis2_stub_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env,
1011
 
                                              adb_DescribePublicAddresses_t* _describePublicAddresses)
1012
 
         {
1013
 
            axis2_svc_client_t *svc_client = NULL;
1014
 
            axis2_options_t *options = NULL;
1015
 
            axiom_node_t *ret_node = NULL;
1016
 
 
1017
 
            const axis2_char_t *soap_action = NULL;
1018
 
            axutil_qname_t *op_qname =  NULL;
1019
 
            axiom_node_t *payload = NULL;
1020
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1021
 
 
1022
 
            axutil_string_t *soap_act = NULL;
1023
 
            adb_DescribePublicAddressesResponse_t* ret_val = NULL;
1024
 
 
1025
 
                       payload = adb_DescribePublicAddresses_serialize(_describePublicAddresses, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1026
 
 
1027
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1028
 
 
1029
 
 
1030
 
 
1031
 
 
1032
 
 
1033
 
            options = axis2_stub_get_options( stub, env);
1034
 
            if (NULL == options)
1035
 
            {
1036
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1037
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1038
 
                return NULL;
1039
 
            }
1040
 
            soap_action = axis2_options_get_action( options, env );
1041
 
            if (NULL == soap_action)
1042
 
            {
1043
 
              is_soap_act_set = AXIS2_FALSE;
1044
 
              soap_action = "EucalyptusCC#DescribePublicAddresses";
1045
 
 
1046
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribePublicAddresses");
1047
 
              axis2_options_set_soap_action(options, env, soap_act);
1048
 
 
1049
 
              axis2_options_set_action( options, env, soap_action );
1050
 
            }
1051
 
 
1052
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1053
 
 
1054
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1055
 
 
1056
 
            if (!is_soap_act_set)
1057
 
            {
1058
 
 
1059
 
              axis2_options_set_soap_action(options, env, NULL);
1060
 
 
1061
 
              axis2_options_set_action( options, env, NULL);
1062
 
            }
1063
 
 
1064
 
 
1065
 
 
1066
 
                    if ( NULL == ret_node )
1067
 
                    {
1068
 
                        return NULL;
1069
 
                    }
1070
 
                    ret_val = adb_DescribePublicAddressesResponse_create(env);
1071
 
 
1072
 
                    if(adb_DescribePublicAddressesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1073
 
                    {
1074
 
                        if(ret_val != NULL)
1075
 
                        {
1076
 
                            adb_DescribePublicAddressesResponse_free(ret_val, env);
1077
 
                        }
1078
 
 
1079
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DescribePublicAddressesResponse_deserialize: "
1080
 
                                                                "This should be due to an invalid XML");
1081
 
                        return NULL;
1082
 
                    }
1083
 
                    return ret_val;
1084
 
 
1085
 
        }
1086
 
 
1087
 
         /**
1088
 
          * auto generated method signature
1089
 
          * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation.
1090
 
          *
1091
 
          * @param _rebootInstances
1092
 
          *
1093
 
          * @return adb_RebootInstancesResponse_t*
1094
 
          */
1095
 
         adb_RebootInstancesResponse_t*
1096
 
         axis2_stub_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env,
1097
 
                                              adb_RebootInstances_t* _rebootInstances)
1098
 
         {
1099
 
            axis2_svc_client_t *svc_client = NULL;
1100
 
            axis2_options_t *options = NULL;
1101
 
            axiom_node_t *ret_node = NULL;
1102
 
 
1103
 
            const axis2_char_t *soap_action = NULL;
1104
 
            axutil_qname_t *op_qname =  NULL;
1105
 
            axiom_node_t *payload = NULL;
1106
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1107
 
 
1108
 
            axutil_string_t *soap_act = NULL;
1109
 
            adb_RebootInstancesResponse_t* ret_val = NULL;
1110
 
 
1111
 
                       payload = adb_RebootInstances_serialize(_rebootInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1112
 
 
1113
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1114
 
 
1115
 
 
1116
 
 
1117
 
 
1118
 
 
1119
 
            options = axis2_stub_get_options( stub, env);
1120
 
            if (NULL == options)
1121
 
            {
1122
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1123
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1124
 
                return NULL;
1125
 
            }
1126
 
            soap_action = axis2_options_get_action( options, env );
1127
 
            if (NULL == soap_action)
1128
 
            {
1129
 
              is_soap_act_set = AXIS2_FALSE;
1130
 
              soap_action = "EucalyptusCC#RebootInstances";
1131
 
 
1132
 
              soap_act = axutil_string_create(env, "EucalyptusCC#RebootInstances");
1133
 
              axis2_options_set_soap_action(options, env, soap_act);
1134
 
 
1135
 
              axis2_options_set_action( options, env, soap_action );
1136
 
            }
1137
 
 
1138
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1139
 
 
1140
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1141
 
 
1142
 
            if (!is_soap_act_set)
1143
 
            {
1144
 
 
1145
 
              axis2_options_set_soap_action(options, env, NULL);
1146
 
 
1147
 
              axis2_options_set_action( options, env, NULL);
1148
 
            }
1149
 
 
1150
 
 
1151
 
 
1152
 
                    if ( NULL == ret_node )
1153
 
                    {
1154
 
                        return NULL;
1155
 
                    }
1156
 
                    ret_val = adb_RebootInstancesResponse_create(env);
1157
 
 
1158
 
                    if(adb_RebootInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1159
 
                    {
1160
 
                        if(ret_val != NULL)
1161
 
                        {
1162
 
                            adb_RebootInstancesResponse_free(ret_val, env);
1163
 
                        }
1164
 
 
1165
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RebootInstancesResponse_deserialize: "
1166
 
                                                                "This should be due to an invalid XML");
1167
 
                        return NULL;
1168
 
                    }
1169
 
                    return ret_val;
1170
 
 
1171
 
        }
1172
 
 
1173
 
         /**
1174
 
          * auto generated method signature
1175
 
          * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation.
1176
 
          *
1177
 
          * @param _getConsoleOutput
1178
 
          *
1179
 
          * @return adb_GetConsoleOutputResponse_t*
1180
 
          */
1181
 
         adb_GetConsoleOutputResponse_t*
1182
 
         axis2_stub_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env,
1183
 
                                              adb_GetConsoleOutput_t* _getConsoleOutput)
1184
 
         {
1185
 
            axis2_svc_client_t *svc_client = NULL;
1186
 
            axis2_options_t *options = NULL;
1187
 
            axiom_node_t *ret_node = NULL;
1188
 
 
1189
 
            const axis2_char_t *soap_action = NULL;
1190
 
            axutil_qname_t *op_qname =  NULL;
1191
 
            axiom_node_t *payload = NULL;
1192
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1193
 
 
1194
 
            axutil_string_t *soap_act = NULL;
1195
 
            adb_GetConsoleOutputResponse_t* ret_val = NULL;
1196
 
 
1197
 
                       payload = adb_GetConsoleOutput_serialize(_getConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1198
 
 
1199
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1200
 
 
1201
 
 
1202
 
 
1203
 
 
1204
 
 
1205
 
            options = axis2_stub_get_options( stub, env);
1206
 
            if (NULL == options)
1207
 
            {
1208
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1209
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1210
 
                return NULL;
1211
 
            }
1212
 
            soap_action = axis2_options_get_action( options, env );
1213
 
            if (NULL == soap_action)
1214
 
            {
1215
 
              is_soap_act_set = AXIS2_FALSE;
1216
 
              soap_action = "EucalyptusCC#GetConsoleOutput";
1217
 
 
1218
 
              soap_act = axutil_string_create(env, "EucalyptusCC#GetConsoleOutput");
1219
 
              axis2_options_set_soap_action(options, env, soap_act);
1220
 
 
1221
 
              axis2_options_set_action( options, env, soap_action );
1222
 
            }
1223
 
 
1224
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1225
 
 
1226
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1227
 
 
1228
 
            if (!is_soap_act_set)
1229
 
            {
1230
 
 
1231
 
              axis2_options_set_soap_action(options, env, NULL);
1232
 
 
1233
 
              axis2_options_set_action( options, env, NULL);
1234
 
            }
1235
 
 
1236
 
 
1237
 
 
1238
 
                    if ( NULL == ret_node )
1239
 
                    {
1240
 
                        return NULL;
1241
 
                    }
1242
 
                    ret_val = adb_GetConsoleOutputResponse_create(env);
1243
 
 
1244
 
                    if(adb_GetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1245
 
                    {
1246
 
                        if(ret_val != NULL)
1247
 
                        {
1248
 
                            adb_GetConsoleOutputResponse_free(ret_val, env);
1249
 
                        }
1250
 
 
1251
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the GetConsoleOutputResponse_deserialize: "
1252
 
                                                                "This should be due to an invalid XML");
1253
 
                        return NULL;
1254
 
                    }
1255
 
                    return ret_val;
1256
 
 
1257
 
        }
1258
 
 
1259
 
         /**
1260
 
          * auto generated method signature
1261
 
          * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation.
1262
 
          *
1263
 
          * @param _unassignAddress
1264
 
          *
1265
 
          * @return adb_UnassignAddressResponse_t*
1266
 
          */
1267
 
         adb_UnassignAddressResponse_t*
1268
 
         axis2_stub_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env,
1269
 
                                              adb_UnassignAddress_t* _unassignAddress)
1270
 
         {
1271
 
            axis2_svc_client_t *svc_client = NULL;
1272
 
            axis2_options_t *options = NULL;
1273
 
            axiom_node_t *ret_node = NULL;
1274
 
 
1275
 
            const axis2_char_t *soap_action = NULL;
1276
 
            axutil_qname_t *op_qname =  NULL;
1277
 
            axiom_node_t *payload = NULL;
1278
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1279
 
 
1280
 
            axutil_string_t *soap_act = NULL;
1281
 
            adb_UnassignAddressResponse_t* ret_val = NULL;
1282
 
 
1283
 
                       payload = adb_UnassignAddress_serialize(_unassignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1284
 
 
1285
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1286
 
 
1287
 
 
1288
 
 
1289
 
 
1290
 
 
1291
 
            options = axis2_stub_get_options( stub, env);
1292
 
            if (NULL == options)
1293
 
            {
1294
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1295
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1296
 
                return NULL;
1297
 
            }
1298
 
            soap_action = axis2_options_get_action( options, env );
1299
 
            if (NULL == soap_action)
1300
 
            {
1301
 
              is_soap_act_set = AXIS2_FALSE;
1302
 
              soap_action = "EucalyptusCC#UnassignAddress";
1303
 
 
1304
 
              soap_act = axutil_string_create(env, "EucalyptusCC#UnassignAddress");
1305
 
              axis2_options_set_soap_action(options, env, soap_act);
1306
 
 
1307
 
              axis2_options_set_action( options, env, soap_action );
1308
 
            }
1309
 
 
1310
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1311
 
 
1312
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1313
 
 
1314
 
            if (!is_soap_act_set)
1315
 
            {
1316
 
 
1317
 
              axis2_options_set_soap_action(options, env, NULL);
1318
 
 
1319
 
              axis2_options_set_action( options, env, NULL);
1320
 
            }
1321
 
 
1322
 
 
1323
 
 
1324
 
                    if ( NULL == ret_node )
1325
 
                    {
1326
 
                        return NULL;
1327
 
                    }
1328
 
                    ret_val = adb_UnassignAddressResponse_create(env);
1329
 
 
1330
 
                    if(adb_UnassignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1331
 
                    {
1332
 
                        if(ret_val != NULL)
1333
 
                        {
1334
 
                            adb_UnassignAddressResponse_free(ret_val, env);
1335
 
                        }
1336
 
 
1337
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the UnassignAddressResponse_deserialize: "
1338
 
                                                                "This should be due to an invalid XML");
1339
 
                        return NULL;
1340
 
                    }
1341
 
                    return ret_val;
1342
 
 
1343
 
        }
1344
 
 
1345
 
         /**
1346
 
          * auto generated method signature
1347
 
          * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation.
1348
 
          *
1349
 
          * @param _terminateInstances
1350
 
          *
1351
 
          * @return adb_TerminateInstancesResponse_t*
1352
 
          */
1353
 
         adb_TerminateInstancesResponse_t*
1354
 
         axis2_stub_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env,
1355
 
                                              adb_TerminateInstances_t* _terminateInstances)
1356
 
         {
1357
 
            axis2_svc_client_t *svc_client = NULL;
1358
 
            axis2_options_t *options = NULL;
1359
 
            axiom_node_t *ret_node = NULL;
1360
 
 
1361
 
            const axis2_char_t *soap_action = NULL;
1362
 
            axutil_qname_t *op_qname =  NULL;
1363
 
            axiom_node_t *payload = NULL;
1364
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1365
 
 
1366
 
            axutil_string_t *soap_act = NULL;
1367
 
            adb_TerminateInstancesResponse_t* ret_val = NULL;
1368
 
 
1369
 
                       payload = adb_TerminateInstances_serialize(_terminateInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1370
 
 
1371
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1372
 
 
1373
 
 
1374
 
 
1375
 
 
1376
 
 
1377
 
            options = axis2_stub_get_options( stub, env);
1378
 
            if (NULL == options)
1379
 
            {
1380
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1381
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1382
 
                return NULL;
1383
 
            }
1384
 
            soap_action = axis2_options_get_action( options, env );
1385
 
            if (NULL == soap_action)
1386
 
            {
1387
 
              is_soap_act_set = AXIS2_FALSE;
1388
 
              soap_action = "EucalyptusCC#TerminateInstances";
1389
 
 
1390
 
              soap_act = axutil_string_create(env, "EucalyptusCC#TerminateInstances");
1391
 
              axis2_options_set_soap_action(options, env, soap_act);
1392
 
 
1393
 
              axis2_options_set_action( options, env, soap_action );
1394
 
            }
1395
 
 
1396
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1397
 
 
1398
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1399
 
 
1400
 
            if (!is_soap_act_set)
1401
 
            {
1402
 
 
1403
 
              axis2_options_set_soap_action(options, env, NULL);
1404
 
 
1405
 
              axis2_options_set_action( options, env, NULL);
1406
 
            }
1407
 
 
1408
 
 
1409
 
 
1410
 
                    if ( NULL == ret_node )
1411
 
                    {
1412
 
                        return NULL;
1413
 
                    }
1414
 
                    ret_val = adb_TerminateInstancesResponse_create(env);
1415
 
 
1416
 
                    if(adb_TerminateInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1417
 
                    {
1418
 
                        if(ret_val != NULL)
1419
 
                        {
1420
 
                            adb_TerminateInstancesResponse_free(ret_val, env);
1421
 
                        }
1422
 
 
1423
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the TerminateInstancesResponse_deserialize: "
1424
 
                                                                "This should be due to an invalid XML");
1425
 
                        return NULL;
1426
 
                    }
1427
 
                    return ret_val;
1428
 
 
1429
 
        }
1430
 
 
1431
 
         /**
1432
 
          * auto generated method signature
1433
 
          * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation.
1434
 
          *
1435
 
          * @param _detachVolume
1436
 
          *
1437
 
          * @return adb_DetachVolumeResponse_t*
1438
 
          */
1439
 
         adb_DetachVolumeResponse_t*
1440
 
         axis2_stub_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env,
1441
 
                                              adb_DetachVolume_t* _detachVolume)
1442
 
         {
1443
 
            axis2_svc_client_t *svc_client = NULL;
1444
 
            axis2_options_t *options = NULL;
1445
 
            axiom_node_t *ret_node = NULL;
1446
 
 
1447
 
            const axis2_char_t *soap_action = NULL;
1448
 
            axutil_qname_t *op_qname =  NULL;
1449
 
            axiom_node_t *payload = NULL;
1450
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1451
 
 
1452
 
            axutil_string_t *soap_act = NULL;
1453
 
            adb_DetachVolumeResponse_t* ret_val = NULL;
1454
 
 
1455
 
                       payload = adb_DetachVolume_serialize(_detachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1456
 
 
1457
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
 
 
1463
 
            options = axis2_stub_get_options( stub, env);
1464
 
            if (NULL == options)
1465
 
            {
1466
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1467
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1468
 
                return NULL;
1469
 
            }
1470
 
            soap_action = axis2_options_get_action( options, env );
1471
 
            if (NULL == soap_action)
1472
 
            {
1473
 
              is_soap_act_set = AXIS2_FALSE;
1474
 
              soap_action = "EucalyptusCC#DetachVolume";
1475
 
 
1476
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DetachVolume");
1477
 
              axis2_options_set_soap_action(options, env, soap_act);
1478
 
 
1479
 
              axis2_options_set_action( options, env, soap_action );
1480
 
            }
1481
 
 
1482
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1483
 
 
1484
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1485
 
 
1486
 
            if (!is_soap_act_set)
1487
 
            {
1488
 
 
1489
 
              axis2_options_set_soap_action(options, env, NULL);
1490
 
 
1491
 
              axis2_options_set_action( options, env, NULL);
1492
 
            }
1493
 
 
1494
 
 
1495
 
 
1496
 
                    if ( NULL == ret_node )
1497
 
                    {
1498
 
                        return NULL;
1499
 
                    }
1500
 
                    ret_val = adb_DetachVolumeResponse_create(env);
1501
 
 
1502
 
                    if(adb_DetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1503
 
                    {
1504
 
                        if(ret_val != NULL)
1505
 
                        {
1506
 
                            adb_DetachVolumeResponse_free(ret_val, env);
1507
 
                        }
1508
 
 
1509
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the DetachVolumeResponse_deserialize: "
1510
 
                                                                "This should be due to an invalid XML");
1511
 
                        return NULL;
1512
 
                    }
1513
 
                    return ret_val;
1514
 
 
1515
 
        }
1516
 
 
1517
 
         /**
1518
 
          * auto generated method signature
1519
 
          * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation.
1520
 
          *
1521
 
          * @param _attachVolume
1522
 
          *
1523
 
          * @return adb_AttachVolumeResponse_t*
1524
 
          */
1525
 
         adb_AttachVolumeResponse_t*
1526
 
         axis2_stub_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env,
1527
 
                                              adb_AttachVolume_t* _attachVolume)
1528
 
         {
1529
 
            axis2_svc_client_t *svc_client = NULL;
1530
 
            axis2_options_t *options = NULL;
1531
 
            axiom_node_t *ret_node = NULL;
1532
 
 
1533
 
            const axis2_char_t *soap_action = NULL;
1534
 
            axutil_qname_t *op_qname =  NULL;
1535
 
            axiom_node_t *payload = NULL;
1536
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1537
 
 
1538
 
            axutil_string_t *soap_act = NULL;
1539
 
            adb_AttachVolumeResponse_t* ret_val = NULL;
1540
 
 
1541
 
                       payload = adb_AttachVolume_serialize(_attachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1542
 
 
1543
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1544
 
 
1545
 
 
1546
 
 
1547
 
 
1548
 
 
1549
 
            options = axis2_stub_get_options( stub, env);
1550
 
            if (NULL == options)
1551
 
            {
1552
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1553
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1554
 
                return NULL;
1555
 
            }
1556
 
            soap_action = axis2_options_get_action( options, env );
1557
 
            if (NULL == soap_action)
1558
 
            {
1559
 
              is_soap_act_set = AXIS2_FALSE;
1560
 
              soap_action = "EucalyptusCC#AttachVolume";
1561
 
 
1562
 
              soap_act = axutil_string_create(env, "EucalyptusCC#AttachVolume");
1563
 
              axis2_options_set_soap_action(options, env, soap_act);
1564
 
 
1565
 
              axis2_options_set_action( options, env, soap_action );
1566
 
            }
1567
 
 
1568
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1569
 
 
1570
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1571
 
 
1572
 
            if (!is_soap_act_set)
1573
 
            {
1574
 
 
1575
 
              axis2_options_set_soap_action(options, env, NULL);
1576
 
 
1577
 
              axis2_options_set_action( options, env, NULL);
1578
 
            }
1579
 
 
1580
 
 
1581
 
 
1582
 
                    if ( NULL == ret_node )
1583
 
                    {
1584
 
                        return NULL;
1585
 
                    }
1586
 
                    ret_val = adb_AttachVolumeResponse_create(env);
1587
 
 
1588
 
                    if(adb_AttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1589
 
                    {
1590
 
                        if(ret_val != NULL)
1591
 
                        {
1592
 
                            adb_AttachVolumeResponse_free(ret_val, env);
1593
 
                        }
1594
 
 
1595
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the AttachVolumeResponse_deserialize: "
1596
 
                                                                "This should be due to an invalid XML");
1597
 
                        return NULL;
1598
 
                    }
1599
 
                    return ret_val;
1600
 
 
1601
 
        }
1602
 
 
1603
 
         /**
1604
 
          * auto generated method signature
1605
 
          * for "RunInstances|http://eucalyptus.ucsb.edu/" operation.
1606
 
          *
1607
 
          * @param _runInstances
1608
 
          *
1609
 
          * @return adb_RunInstancesResponse_t*
1610
 
          */
1611
 
         adb_RunInstancesResponse_t*
1612
 
         axis2_stub_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env,
1613
 
                                              adb_RunInstances_t* _runInstances)
1614
 
         {
1615
 
            axis2_svc_client_t *svc_client = NULL;
1616
 
            axis2_options_t *options = NULL;
1617
 
            axiom_node_t *ret_node = NULL;
1618
 
 
1619
 
            const axis2_char_t *soap_action = NULL;
1620
 
            axutil_qname_t *op_qname =  NULL;
1621
 
            axiom_node_t *payload = NULL;
1622
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1623
 
 
1624
 
            axutil_string_t *soap_act = NULL;
1625
 
            adb_RunInstancesResponse_t* ret_val = NULL;
1626
 
 
1627
 
                       payload = adb_RunInstances_serialize(_runInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1628
 
 
1629
 
            svc_client = axis2_stub_get_svc_client(stub, env );
1630
 
 
1631
 
 
1632
 
 
1633
 
 
1634
 
 
1635
 
            options = axis2_stub_get_options( stub, env);
1636
 
            if (NULL == options)
1637
 
            {
1638
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1639
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "options is null in stub");
1640
 
                return NULL;
1641
 
            }
1642
 
            soap_action = axis2_options_get_action( options, env );
1643
 
            if (NULL == soap_action)
1644
 
            {
1645
 
              is_soap_act_set = AXIS2_FALSE;
1646
 
              soap_action = "EucalyptusCC#RunInstances";
1647
 
 
1648
 
              soap_act = axutil_string_create(env, "EucalyptusCC#RunInstances");
1649
 
              axis2_options_set_soap_action(options, env, soap_act);
1650
 
 
1651
 
              axis2_options_set_action( options, env, soap_action );
1652
 
            }
1653
 
 
1654
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11 );
1655
 
 
1656
 
            ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, op_qname, payload);
1657
 
 
1658
 
            if (!is_soap_act_set)
1659
 
            {
1660
 
 
1661
 
              axis2_options_set_soap_action(options, env, NULL);
1662
 
 
1663
 
              axis2_options_set_action( options, env, NULL);
1664
 
            }
1665
 
 
1666
 
 
1667
 
 
1668
 
                    if ( NULL == ret_node )
1669
 
                    {
1670
 
                        return NULL;
1671
 
                    }
1672
 
                    ret_val = adb_RunInstancesResponse_create(env);
1673
 
 
1674
 
                    if(adb_RunInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1675
 
                    {
1676
 
                        if(ret_val != NULL)
1677
 
                        {
1678
 
                            adb_RunInstancesResponse_free(ret_val, env);
1679
 
                        }
1680
 
 
1681
 
                        AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the RunInstancesResponse_deserialize: "
1682
 
                                                                "This should be due to an invalid XML");
1683
 
                        return NULL;
1684
 
                    }
1685
 
                    return ret_val;
1686
 
 
1687
 
        }
1688
 
 
1689
 
 
1690
 
        struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data
1691
 
        {
1692
 
            void *data;
1693
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data);
1694
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
1695
 
        };
1696
 
 
1697
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception)
1698
 
        {
1699
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
1700
 
            struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data* callback_data = NULL;
1701
 
            void *user_data = NULL;
1702
 
 
1703
 
            axis2_status_t status;
1704
 
 
1705
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*)axis2_callback_get_data(callback);
1706
 
 
1707
 
            user_data = callback_data->data;
1708
 
            on_error = callback_data->on_error;
1709
 
 
1710
 
            status = on_error(env, exception, user_data);
1711
 
 
1712
 
            if(callback_data)
1713
 
            {
1714
 
                AXIS2_FREE(env->allocator, callback_data);
1715
 
            }
1716
 
            return status;
1717
 
        }
1718
 
 
1719
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeInstances(axis2_callback_t *callback, const axutil_env_t *env)
1720
 
        {
1721
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data);
1722
 
            struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data* callback_data = NULL;
1723
 
            void *user_data = NULL;
1724
 
            axis2_status_t status = AXIS2_SUCCESS;
1725
 
 
1726
 
            adb_DescribeInstancesResponse_t* ret_val = NULL;
1727
 
 
1728
 
 
1729
 
            axiom_node_t *ret_node = NULL;
1730
 
            axiom_soap_envelope_t *soap_envelope = NULL;
1731
 
 
1732
 
 
1733
 
 
1734
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*)axis2_callback_get_data(callback);
1735
 
 
1736
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
1737
 
            if(soap_envelope)
1738
 
            {
1739
 
                axiom_soap_body_t *soap_body;
1740
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
1741
 
                if(soap_body)
1742
 
                {
1743
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
1744
 
                    if(body_node)
1745
 
                    {
1746
 
                        ret_node = axiom_node_get_first_child(body_node, env);
1747
 
                    }
1748
 
                }
1749
 
 
1750
 
 
1751
 
            }
1752
 
 
1753
 
            user_data = callback_data->data;
1754
 
            on_complete = callback_data->on_complete;
1755
 
 
1756
 
 
1757
 
                    if(ret_node != NULL)
1758
 
                    {
1759
 
                        ret_val = adb_DescribeInstancesResponse_create(env);
1760
 
 
1761
 
                        if(adb_DescribeInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1762
 
                        {
1763
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
1764
 
                                                                    "This should be due to an invalid XML");
1765
 
                            adb_DescribeInstancesResponse_free(ret_val, env);
1766
 
                            ret_val = NULL;
1767
 
                        }
1768
 
                     }
1769
 
                     else
1770
 
                     {
1771
 
                         ret_val = NULL;
1772
 
                     }
1773
 
                     status = on_complete(env, ret_val, user_data);
1774
 
 
1775
 
 
1776
 
            if(callback_data)
1777
 
            {
1778
 
                AXIS2_FREE(env->allocator, callback_data);
1779
 
            }
1780
 
            return status;
1781
 
        }
1782
 
 
1783
 
        /**
1784
 
          * auto generated method signature for asynchronous invocations
1785
 
          * for "DescribeInstances|http://eucalyptus.ucsb.edu/" operation.
1786
 
 
1787
 
          *
1788
 
          * @param _describeInstances
1789
 
          * @param on_complete callback to handle on complete
1790
 
          * @param on_error callback to handle on error
1791
 
          */
1792
 
         void axis2_stub_start_op_EucalyptusCC_DescribeInstances( axis2_stub_t *stub, const axutil_env_t *env,
1793
 
                                                    adb_DescribeInstances_t* _describeInstances,
1794
 
                                                  void *user_data,
1795
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeInstancesResponse_t* _describeInstancesResponse, void *data) ,
1796
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
1797
 
         {
1798
 
 
1799
 
            axis2_callback_t *callback = NULL;
1800
 
 
1801
 
            axis2_svc_client_t *svc_client = NULL;
1802
 
            axis2_options_t *options = NULL;
1803
 
 
1804
 
            const axis2_char_t *soap_action = NULL;
1805
 
            axiom_node_t *payload = NULL;
1806
 
 
1807
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1808
 
 
1809
 
            axutil_string_t *soap_act = NULL;
1810
 
 
1811
 
 
1812
 
            struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data *callback_data;
1813
 
 
1814
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data*) AXIS2_MALLOC(env->allocator,
1815
 
                                    sizeof(struct axis2_stub_EucalyptusCC_DescribeInstances_callback_data));
1816
 
            if(NULL == callback_data)
1817
 
            {
1818
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
1819
 
                return;
1820
 
            }
1821
 
 
1822
 
 
1823
 
                       payload = adb_DescribeInstances_serialize(_describeInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
1824
 
 
1825
 
 
1826
 
 
1827
 
 
1828
 
            options = axis2_stub_get_options( stub, env);
1829
 
            if (NULL == options)
1830
 
            {
1831
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
1832
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
1833
 
              return;
1834
 
            }
1835
 
            svc_client = axis2_stub_get_svc_client (stub, env);
1836
 
            soap_action =axis2_options_get_action (options, env);
1837
 
            if (NULL == soap_action)
1838
 
            {
1839
 
              is_soap_act_set = AXIS2_FALSE;
1840
 
              soap_action = "EucalyptusCC#DescribeInstances";
1841
 
 
1842
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeInstances");
1843
 
              axis2_options_set_soap_action(options, env, soap_act);
1844
 
 
1845
 
              axis2_options_set_action( options, env, soap_action);
1846
 
            }
1847
 
 
1848
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
1849
 
 
1850
 
 
1851
 
            callback = axis2_callback_create(env);
1852
 
            /* Set our on_complete fucntion pointer to the callback object */
1853
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeInstances);
1854
 
            /* Set our on_error function pointer to the callback object */
1855
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeInstances);
1856
 
 
1857
 
            callback_data-> data = user_data;
1858
 
            callback_data-> on_complete = on_complete;
1859
 
            callback_data-> on_error = on_error;
1860
 
 
1861
 
            axis2_callback_set_data(callback, (void*)callback_data);
1862
 
 
1863
 
            /* Send request */
1864
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
1865
 
 
1866
 
            if (!is_soap_act_set)
1867
 
            {
1868
 
 
1869
 
              axis2_options_set_soap_action(options, env, NULL);
1870
 
 
1871
 
              axis2_options_set_action(options, env, NULL);
1872
 
            }
1873
 
         }
1874
 
 
1875
 
 
1876
 
 
1877
 
        struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data
1878
 
        {
1879
 
            void *data;
1880
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data);
1881
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
1882
 
        };
1883
 
 
1884
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_ConfigureNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception)
1885
 
        {
1886
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
1887
 
            struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data* callback_data = NULL;
1888
 
            void *user_data = NULL;
1889
 
 
1890
 
            axis2_status_t status;
1891
 
 
1892
 
            callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*)axis2_callback_get_data(callback);
1893
 
 
1894
 
            user_data = callback_data->data;
1895
 
            on_error = callback_data->on_error;
1896
 
 
1897
 
            status = on_error(env, exception, user_data);
1898
 
 
1899
 
            if(callback_data)
1900
 
            {
1901
 
                AXIS2_FREE(env->allocator, callback_data);
1902
 
            }
1903
 
            return status;
1904
 
        }
1905
 
 
1906
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_ConfigureNetwork(axis2_callback_t *callback, const axutil_env_t *env)
1907
 
        {
1908
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data);
1909
 
            struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data* callback_data = NULL;
1910
 
            void *user_data = NULL;
1911
 
            axis2_status_t status = AXIS2_SUCCESS;
1912
 
 
1913
 
            adb_ConfigureNetworkResponse_t* ret_val = NULL;
1914
 
 
1915
 
 
1916
 
            axiom_node_t *ret_node = NULL;
1917
 
            axiom_soap_envelope_t *soap_envelope = NULL;
1918
 
 
1919
 
 
1920
 
 
1921
 
            callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*)axis2_callback_get_data(callback);
1922
 
 
1923
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
1924
 
            if(soap_envelope)
1925
 
            {
1926
 
                axiom_soap_body_t *soap_body;
1927
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
1928
 
                if(soap_body)
1929
 
                {
1930
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
1931
 
                    if(body_node)
1932
 
                    {
1933
 
                        ret_node = axiom_node_get_first_child(body_node, env);
1934
 
                    }
1935
 
                }
1936
 
 
1937
 
 
1938
 
            }
1939
 
 
1940
 
            user_data = callback_data->data;
1941
 
            on_complete = callback_data->on_complete;
1942
 
 
1943
 
 
1944
 
                    if(ret_node != NULL)
1945
 
                    {
1946
 
                        ret_val = adb_ConfigureNetworkResponse_create(env);
1947
 
 
1948
 
                        if(adb_ConfigureNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
1949
 
                        {
1950
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
1951
 
                                                                    "This should be due to an invalid XML");
1952
 
                            adb_ConfigureNetworkResponse_free(ret_val, env);
1953
 
                            ret_val = NULL;
1954
 
                        }
1955
 
                     }
1956
 
                     else
1957
 
                     {
1958
 
                         ret_val = NULL;
1959
 
                     }
1960
 
                     status = on_complete(env, ret_val, user_data);
1961
 
 
1962
 
 
1963
 
            if(callback_data)
1964
 
            {
1965
 
                AXIS2_FREE(env->allocator, callback_data);
1966
 
            }
1967
 
            return status;
1968
 
        }
1969
 
 
1970
 
        /**
1971
 
          * auto generated method signature for asynchronous invocations
1972
 
          * for "ConfigureNetwork|http://eucalyptus.ucsb.edu/" operation.
1973
 
 
1974
 
          *
1975
 
          * @param _configureNetwork
1976
 
          * @param on_complete callback to handle on complete
1977
 
          * @param on_error callback to handle on error
1978
 
          */
1979
 
         void axis2_stub_start_op_EucalyptusCC_ConfigureNetwork( axis2_stub_t *stub, const axutil_env_t *env,
1980
 
                                                    adb_ConfigureNetwork_t* _configureNetwork,
1981
 
                                                  void *user_data,
1982
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_ConfigureNetworkResponse_t* _configureNetworkResponse, void *data) ,
1983
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
1984
 
         {
1985
 
 
1986
 
            axis2_callback_t *callback = NULL;
1987
 
 
1988
 
            axis2_svc_client_t *svc_client = NULL;
1989
 
            axis2_options_t *options = NULL;
1990
 
 
1991
 
            const axis2_char_t *soap_action = NULL;
1992
 
            axiom_node_t *payload = NULL;
1993
 
 
1994
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
1995
 
 
1996
 
            axutil_string_t *soap_act = NULL;
1997
 
 
1998
 
 
1999
 
            struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data *callback_data;
2000
 
 
2001
 
            callback_data = (struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data*) AXIS2_MALLOC(env->allocator,
2002
 
                                    sizeof(struct axis2_stub_EucalyptusCC_ConfigureNetwork_callback_data));
2003
 
            if(NULL == callback_data)
2004
 
            {
2005
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2006
 
                return;
2007
 
            }
2008
 
 
2009
 
 
2010
 
                       payload = adb_ConfigureNetwork_serialize(_configureNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2011
 
 
2012
 
 
2013
 
 
2014
 
 
2015
 
            options = axis2_stub_get_options( stub, env);
2016
 
            if (NULL == options)
2017
 
            {
2018
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2019
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2020
 
              return;
2021
 
            }
2022
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2023
 
            soap_action =axis2_options_get_action (options, env);
2024
 
            if (NULL == soap_action)
2025
 
            {
2026
 
              is_soap_act_set = AXIS2_FALSE;
2027
 
              soap_action = "EucalyptusCC#ConfigureNetwork";
2028
 
 
2029
 
              soap_act = axutil_string_create(env, "EucalyptusCC#ConfigureNetwork");
2030
 
              axis2_options_set_soap_action(options, env, soap_act);
2031
 
 
2032
 
              axis2_options_set_action( options, env, soap_action);
2033
 
            }
2034
 
 
2035
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2036
 
 
2037
 
 
2038
 
            callback = axis2_callback_create(env);
2039
 
            /* Set our on_complete fucntion pointer to the callback object */
2040
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_ConfigureNetwork);
2041
 
            /* Set our on_error function pointer to the callback object */
2042
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_ConfigureNetwork);
2043
 
 
2044
 
            callback_data-> data = user_data;
2045
 
            callback_data-> on_complete = on_complete;
2046
 
            callback_data-> on_error = on_error;
2047
 
 
2048
 
            axis2_callback_set_data(callback, (void*)callback_data);
2049
 
 
2050
 
            /* Send request */
2051
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2052
 
 
2053
 
            if (!is_soap_act_set)
2054
 
            {
2055
 
 
2056
 
              axis2_options_set_soap_action(options, env, NULL);
2057
 
 
2058
 
              axis2_options_set_action(options, env, NULL);
2059
 
            }
2060
 
         }
2061
 
 
2062
 
 
2063
 
 
2064
 
        struct axis2_stub_EucalyptusCC_DescribeResources_callback_data
2065
 
        {
2066
 
            void *data;
2067
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data);
2068
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
2069
 
        };
2070
 
 
2071
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeResources(axis2_callback_t *callback, const axutil_env_t *env, int exception)
2072
 
        {
2073
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
2074
 
            struct axis2_stub_EucalyptusCC_DescribeResources_callback_data* callback_data = NULL;
2075
 
            void *user_data = NULL;
2076
 
 
2077
 
            axis2_status_t status;
2078
 
 
2079
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*)axis2_callback_get_data(callback);
2080
 
 
2081
 
            user_data = callback_data->data;
2082
 
            on_error = callback_data->on_error;
2083
 
 
2084
 
            status = on_error(env, exception, user_data);
2085
 
 
2086
 
            if(callback_data)
2087
 
            {
2088
 
                AXIS2_FREE(env->allocator, callback_data);
2089
 
            }
2090
 
            return status;
2091
 
        }
2092
 
 
2093
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeResources(axis2_callback_t *callback, const axutil_env_t *env)
2094
 
        {
2095
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data);
2096
 
            struct axis2_stub_EucalyptusCC_DescribeResources_callback_data* callback_data = NULL;
2097
 
            void *user_data = NULL;
2098
 
            axis2_status_t status = AXIS2_SUCCESS;
2099
 
 
2100
 
            adb_DescribeResourcesResponse_t* ret_val = NULL;
2101
 
 
2102
 
 
2103
 
            axiom_node_t *ret_node = NULL;
2104
 
            axiom_soap_envelope_t *soap_envelope = NULL;
2105
 
 
2106
 
 
2107
 
 
2108
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*)axis2_callback_get_data(callback);
2109
 
 
2110
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
2111
 
            if(soap_envelope)
2112
 
            {
2113
 
                axiom_soap_body_t *soap_body;
2114
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
2115
 
                if(soap_body)
2116
 
                {
2117
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
2118
 
                    if(body_node)
2119
 
                    {
2120
 
                        ret_node = axiom_node_get_first_child(body_node, env);
2121
 
                    }
2122
 
                }
2123
 
 
2124
 
 
2125
 
            }
2126
 
 
2127
 
            user_data = callback_data->data;
2128
 
            on_complete = callback_data->on_complete;
2129
 
 
2130
 
 
2131
 
                    if(ret_node != NULL)
2132
 
                    {
2133
 
                        ret_val = adb_DescribeResourcesResponse_create(env);
2134
 
 
2135
 
                        if(adb_DescribeResourcesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
2136
 
                        {
2137
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
2138
 
                                                                    "This should be due to an invalid XML");
2139
 
                            adb_DescribeResourcesResponse_free(ret_val, env);
2140
 
                            ret_val = NULL;
2141
 
                        }
2142
 
                     }
2143
 
                     else
2144
 
                     {
2145
 
                         ret_val = NULL;
2146
 
                     }
2147
 
                     status = on_complete(env, ret_val, user_data);
2148
 
 
2149
 
 
2150
 
            if(callback_data)
2151
 
            {
2152
 
                AXIS2_FREE(env->allocator, callback_data);
2153
 
            }
2154
 
            return status;
2155
 
        }
2156
 
 
2157
 
        /**
2158
 
          * auto generated method signature for asynchronous invocations
2159
 
          * for "DescribeResources|http://eucalyptus.ucsb.edu/" operation.
2160
 
 
2161
 
          *
2162
 
          * @param _describeResources
2163
 
          * @param on_complete callback to handle on complete
2164
 
          * @param on_error callback to handle on error
2165
 
          */
2166
 
         void axis2_stub_start_op_EucalyptusCC_DescribeResources( axis2_stub_t *stub, const axutil_env_t *env,
2167
 
                                                    adb_DescribeResources_t* _describeResources,
2168
 
                                                  void *user_data,
2169
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeResourcesResponse_t* _describeResourcesResponse, void *data) ,
2170
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
2171
 
         {
2172
 
 
2173
 
            axis2_callback_t *callback = NULL;
2174
 
 
2175
 
            axis2_svc_client_t *svc_client = NULL;
2176
 
            axis2_options_t *options = NULL;
2177
 
 
2178
 
            const axis2_char_t *soap_action = NULL;
2179
 
            axiom_node_t *payload = NULL;
2180
 
 
2181
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
2182
 
 
2183
 
            axutil_string_t *soap_act = NULL;
2184
 
 
2185
 
 
2186
 
            struct axis2_stub_EucalyptusCC_DescribeResources_callback_data *callback_data;
2187
 
 
2188
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeResources_callback_data*) AXIS2_MALLOC(env->allocator,
2189
 
                                    sizeof(struct axis2_stub_EucalyptusCC_DescribeResources_callback_data));
2190
 
            if(NULL == callback_data)
2191
 
            {
2192
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2193
 
                return;
2194
 
            }
2195
 
 
2196
 
 
2197
 
                       payload = adb_DescribeResources_serialize(_describeResources, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2198
 
 
2199
 
 
2200
 
 
2201
 
 
2202
 
            options = axis2_stub_get_options( stub, env);
2203
 
            if (NULL == options)
2204
 
            {
2205
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2206
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2207
 
              return;
2208
 
            }
2209
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2210
 
            soap_action =axis2_options_get_action (options, env);
2211
 
            if (NULL == soap_action)
2212
 
            {
2213
 
              is_soap_act_set = AXIS2_FALSE;
2214
 
              soap_action = "EucalyptusCC#DescribeResources";
2215
 
 
2216
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeResources");
2217
 
              axis2_options_set_soap_action(options, env, soap_act);
2218
 
 
2219
 
              axis2_options_set_action( options, env, soap_action);
2220
 
            }
2221
 
 
2222
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2223
 
 
2224
 
 
2225
 
            callback = axis2_callback_create(env);
2226
 
            /* Set our on_complete fucntion pointer to the callback object */
2227
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeResources);
2228
 
            /* Set our on_error function pointer to the callback object */
2229
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeResources);
2230
 
 
2231
 
            callback_data-> data = user_data;
2232
 
            callback_data-> on_complete = on_complete;
2233
 
            callback_data-> on_error = on_error;
2234
 
 
2235
 
            axis2_callback_set_data(callback, (void*)callback_data);
2236
 
 
2237
 
            /* Send request */
2238
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2239
 
 
2240
 
            if (!is_soap_act_set)
2241
 
            {
2242
 
 
2243
 
              axis2_options_set_soap_action(options, env, NULL);
2244
 
 
2245
 
              axis2_options_set_action(options, env, NULL);
2246
 
            }
2247
 
         }
2248
 
 
2249
 
 
2250
 
 
2251
 
        struct axis2_stub_EucalyptusCC_StartNetwork_callback_data
2252
 
        {
2253
 
            void *data;
2254
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data);
2255
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
2256
 
        };
2257
 
 
2258
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_StartNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception)
2259
 
        {
2260
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
2261
 
            struct axis2_stub_EucalyptusCC_StartNetwork_callback_data* callback_data = NULL;
2262
 
            void *user_data = NULL;
2263
 
 
2264
 
            axis2_status_t status;
2265
 
 
2266
 
            callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*)axis2_callback_get_data(callback);
2267
 
 
2268
 
            user_data = callback_data->data;
2269
 
            on_error = callback_data->on_error;
2270
 
 
2271
 
            status = on_error(env, exception, user_data);
2272
 
 
2273
 
            if(callback_data)
2274
 
            {
2275
 
                AXIS2_FREE(env->allocator, callback_data);
2276
 
            }
2277
 
            return status;
2278
 
        }
2279
 
 
2280
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_StartNetwork(axis2_callback_t *callback, const axutil_env_t *env)
2281
 
        {
2282
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data);
2283
 
            struct axis2_stub_EucalyptusCC_StartNetwork_callback_data* callback_data = NULL;
2284
 
            void *user_data = NULL;
2285
 
            axis2_status_t status = AXIS2_SUCCESS;
2286
 
 
2287
 
            adb_StartNetworkResponse_t* ret_val = NULL;
2288
 
 
2289
 
 
2290
 
            axiom_node_t *ret_node = NULL;
2291
 
            axiom_soap_envelope_t *soap_envelope = NULL;
2292
 
 
2293
 
 
2294
 
 
2295
 
            callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*)axis2_callback_get_data(callback);
2296
 
 
2297
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
2298
 
            if(soap_envelope)
2299
 
            {
2300
 
                axiom_soap_body_t *soap_body;
2301
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
2302
 
                if(soap_body)
2303
 
                {
2304
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
2305
 
                    if(body_node)
2306
 
                    {
2307
 
                        ret_node = axiom_node_get_first_child(body_node, env);
2308
 
                    }
2309
 
                }
2310
 
 
2311
 
 
2312
 
            }
2313
 
 
2314
 
            user_data = callback_data->data;
2315
 
            on_complete = callback_data->on_complete;
2316
 
 
2317
 
 
2318
 
                    if(ret_node != NULL)
2319
 
                    {
2320
 
                        ret_val = adb_StartNetworkResponse_create(env);
2321
 
 
2322
 
                        if(adb_StartNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
2323
 
                        {
2324
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
2325
 
                                                                    "This should be due to an invalid XML");
2326
 
                            adb_StartNetworkResponse_free(ret_val, env);
2327
 
                            ret_val = NULL;
2328
 
                        }
2329
 
                     }
2330
 
                     else
2331
 
                     {
2332
 
                         ret_val = NULL;
2333
 
                     }
2334
 
                     status = on_complete(env, ret_val, user_data);
2335
 
 
2336
 
 
2337
 
            if(callback_data)
2338
 
            {
2339
 
                AXIS2_FREE(env->allocator, callback_data);
2340
 
            }
2341
 
            return status;
2342
 
        }
2343
 
 
2344
 
        /**
2345
 
          * auto generated method signature for asynchronous invocations
2346
 
          * for "StartNetwork|http://eucalyptus.ucsb.edu/" operation.
2347
 
 
2348
 
          *
2349
 
          * @param _startNetwork
2350
 
          * @param on_complete callback to handle on complete
2351
 
          * @param on_error callback to handle on error
2352
 
          */
2353
 
         void axis2_stub_start_op_EucalyptusCC_StartNetwork( axis2_stub_t *stub, const axutil_env_t *env,
2354
 
                                                    adb_StartNetwork_t* _startNetwork,
2355
 
                                                  void *user_data,
2356
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StartNetworkResponse_t* _startNetworkResponse, void *data) ,
2357
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
2358
 
         {
2359
 
 
2360
 
            axis2_callback_t *callback = NULL;
2361
 
 
2362
 
            axis2_svc_client_t *svc_client = NULL;
2363
 
            axis2_options_t *options = NULL;
2364
 
 
2365
 
            const axis2_char_t *soap_action = NULL;
2366
 
            axiom_node_t *payload = NULL;
2367
 
 
2368
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
2369
 
 
2370
 
            axutil_string_t *soap_act = NULL;
2371
 
 
2372
 
 
2373
 
            struct axis2_stub_EucalyptusCC_StartNetwork_callback_data *callback_data;
2374
 
 
2375
 
            callback_data = (struct axis2_stub_EucalyptusCC_StartNetwork_callback_data*) AXIS2_MALLOC(env->allocator,
2376
 
                                    sizeof(struct axis2_stub_EucalyptusCC_StartNetwork_callback_data));
2377
 
            if(NULL == callback_data)
2378
 
            {
2379
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2380
 
                return;
2381
 
            }
2382
 
 
2383
 
 
2384
 
                       payload = adb_StartNetwork_serialize(_startNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2385
 
 
2386
 
 
2387
 
 
2388
 
 
2389
 
            options = axis2_stub_get_options( stub, env);
2390
 
            if (NULL == options)
2391
 
            {
2392
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2393
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2394
 
              return;
2395
 
            }
2396
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2397
 
            soap_action =axis2_options_get_action (options, env);
2398
 
            if (NULL == soap_action)
2399
 
            {
2400
 
              is_soap_act_set = AXIS2_FALSE;
2401
 
              soap_action = "EucalyptusCC#StartNetwork";
2402
 
 
2403
 
              soap_act = axutil_string_create(env, "EucalyptusCC#StartNetwork");
2404
 
              axis2_options_set_soap_action(options, env, soap_act);
2405
 
 
2406
 
              axis2_options_set_action( options, env, soap_action);
2407
 
            }
2408
 
 
2409
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2410
 
 
2411
 
 
2412
 
            callback = axis2_callback_create(env);
2413
 
            /* Set our on_complete fucntion pointer to the callback object */
2414
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_StartNetwork);
2415
 
            /* Set our on_error function pointer to the callback object */
2416
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_StartNetwork);
2417
 
 
2418
 
            callback_data-> data = user_data;
2419
 
            callback_data-> on_complete = on_complete;
2420
 
            callback_data-> on_error = on_error;
2421
 
 
2422
 
            axis2_callback_set_data(callback, (void*)callback_data);
2423
 
 
2424
 
            /* Send request */
2425
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2426
 
 
2427
 
            if (!is_soap_act_set)
2428
 
            {
2429
 
 
2430
 
              axis2_options_set_soap_action(options, env, NULL);
2431
 
 
2432
 
              axis2_options_set_action(options, env, NULL);
2433
 
            }
2434
 
         }
2435
 
 
2436
 
 
2437
 
 
2438
 
        struct axis2_stub_EucalyptusCC_StopNetwork_callback_data
2439
 
        {
2440
 
            void *data;
2441
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data);
2442
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
2443
 
        };
2444
 
 
2445
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_StopNetwork(axis2_callback_t *callback, const axutil_env_t *env, int exception)
2446
 
        {
2447
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
2448
 
            struct axis2_stub_EucalyptusCC_StopNetwork_callback_data* callback_data = NULL;
2449
 
            void *user_data = NULL;
2450
 
 
2451
 
            axis2_status_t status;
2452
 
 
2453
 
            callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*)axis2_callback_get_data(callback);
2454
 
 
2455
 
            user_data = callback_data->data;
2456
 
            on_error = callback_data->on_error;
2457
 
 
2458
 
            status = on_error(env, exception, user_data);
2459
 
 
2460
 
            if(callback_data)
2461
 
            {
2462
 
                AXIS2_FREE(env->allocator, callback_data);
2463
 
            }
2464
 
            return status;
2465
 
        }
2466
 
 
2467
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_StopNetwork(axis2_callback_t *callback, const axutil_env_t *env)
2468
 
        {
2469
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data);
2470
 
            struct axis2_stub_EucalyptusCC_StopNetwork_callback_data* callback_data = NULL;
2471
 
            void *user_data = NULL;
2472
 
            axis2_status_t status = AXIS2_SUCCESS;
2473
 
 
2474
 
            adb_StopNetworkResponse_t* ret_val = NULL;
2475
 
 
2476
 
 
2477
 
            axiom_node_t *ret_node = NULL;
2478
 
            axiom_soap_envelope_t *soap_envelope = NULL;
2479
 
 
2480
 
 
2481
 
 
2482
 
            callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*)axis2_callback_get_data(callback);
2483
 
 
2484
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
2485
 
            if(soap_envelope)
2486
 
            {
2487
 
                axiom_soap_body_t *soap_body;
2488
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
2489
 
                if(soap_body)
2490
 
                {
2491
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
2492
 
                    if(body_node)
2493
 
                    {
2494
 
                        ret_node = axiom_node_get_first_child(body_node, env);
2495
 
                    }
2496
 
                }
2497
 
 
2498
 
 
2499
 
            }
2500
 
 
2501
 
            user_data = callback_data->data;
2502
 
            on_complete = callback_data->on_complete;
2503
 
 
2504
 
 
2505
 
                    if(ret_node != NULL)
2506
 
                    {
2507
 
                        ret_val = adb_StopNetworkResponse_create(env);
2508
 
 
2509
 
                        if(adb_StopNetworkResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
2510
 
                        {
2511
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
2512
 
                                                                    "This should be due to an invalid XML");
2513
 
                            adb_StopNetworkResponse_free(ret_val, env);
2514
 
                            ret_val = NULL;
2515
 
                        }
2516
 
                     }
2517
 
                     else
2518
 
                     {
2519
 
                         ret_val = NULL;
2520
 
                     }
2521
 
                     status = on_complete(env, ret_val, user_data);
2522
 
 
2523
 
 
2524
 
            if(callback_data)
2525
 
            {
2526
 
                AXIS2_FREE(env->allocator, callback_data);
2527
 
            }
2528
 
            return status;
2529
 
        }
2530
 
 
2531
 
        /**
2532
 
          * auto generated method signature for asynchronous invocations
2533
 
          * for "StopNetwork|http://eucalyptus.ucsb.edu/" operation.
2534
 
 
2535
 
          *
2536
 
          * @param _stopNetwork
2537
 
          * @param on_complete callback to handle on complete
2538
 
          * @param on_error callback to handle on error
2539
 
          */
2540
 
         void axis2_stub_start_op_EucalyptusCC_StopNetwork( axis2_stub_t *stub, const axutil_env_t *env,
2541
 
                                                    adb_StopNetwork_t* _stopNetwork,
2542
 
                                                  void *user_data,
2543
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_StopNetworkResponse_t* _stopNetworkResponse, void *data) ,
2544
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
2545
 
         {
2546
 
 
2547
 
            axis2_callback_t *callback = NULL;
2548
 
 
2549
 
            axis2_svc_client_t *svc_client = NULL;
2550
 
            axis2_options_t *options = NULL;
2551
 
 
2552
 
            const axis2_char_t *soap_action = NULL;
2553
 
            axiom_node_t *payload = NULL;
2554
 
 
2555
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
2556
 
 
2557
 
            axutil_string_t *soap_act = NULL;
2558
 
 
2559
 
 
2560
 
            struct axis2_stub_EucalyptusCC_StopNetwork_callback_data *callback_data;
2561
 
 
2562
 
            callback_data = (struct axis2_stub_EucalyptusCC_StopNetwork_callback_data*) AXIS2_MALLOC(env->allocator,
2563
 
                                    sizeof(struct axis2_stub_EucalyptusCC_StopNetwork_callback_data));
2564
 
            if(NULL == callback_data)
2565
 
            {
2566
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2567
 
                return;
2568
 
            }
2569
 
 
2570
 
 
2571
 
                       payload = adb_StopNetwork_serialize(_stopNetwork, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
 
            options = axis2_stub_get_options( stub, env);
2577
 
            if (NULL == options)
2578
 
            {
2579
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2580
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2581
 
              return;
2582
 
            }
2583
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2584
 
            soap_action =axis2_options_get_action (options, env);
2585
 
            if (NULL == soap_action)
2586
 
            {
2587
 
              is_soap_act_set = AXIS2_FALSE;
2588
 
              soap_action = "EucalyptusCC#StopNetwork";
2589
 
 
2590
 
              soap_act = axutil_string_create(env, "EucalyptusCC#StopNetwork");
2591
 
              axis2_options_set_soap_action(options, env, soap_act);
2592
 
 
2593
 
              axis2_options_set_action( options, env, soap_action);
2594
 
            }
2595
 
 
2596
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2597
 
 
2598
 
 
2599
 
            callback = axis2_callback_create(env);
2600
 
            /* Set our on_complete fucntion pointer to the callback object */
2601
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_StopNetwork);
2602
 
            /* Set our on_error function pointer to the callback object */
2603
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_StopNetwork);
2604
 
 
2605
 
            callback_data-> data = user_data;
2606
 
            callback_data-> on_complete = on_complete;
2607
 
            callback_data-> on_error = on_error;
2608
 
 
2609
 
            axis2_callback_set_data(callback, (void*)callback_data);
2610
 
 
2611
 
            /* Send request */
2612
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2613
 
 
2614
 
            if (!is_soap_act_set)
2615
 
            {
2616
 
 
2617
 
              axis2_options_set_soap_action(options, env, NULL);
2618
 
 
2619
 
              axis2_options_set_action(options, env, NULL);
2620
 
            }
2621
 
         }
2622
 
 
2623
 
 
2624
 
 
2625
 
        struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data
2626
 
        {
2627
 
            void *data;
2628
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data);
2629
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
2630
 
        };
2631
 
 
2632
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribeNetworks(axis2_callback_t *callback, const axutil_env_t *env, int exception)
2633
 
        {
2634
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
2635
 
            struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data* callback_data = NULL;
2636
 
            void *user_data = NULL;
2637
 
 
2638
 
            axis2_status_t status;
2639
 
 
2640
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*)axis2_callback_get_data(callback);
2641
 
 
2642
 
            user_data = callback_data->data;
2643
 
            on_error = callback_data->on_error;
2644
 
 
2645
 
            status = on_error(env, exception, user_data);
2646
 
 
2647
 
            if(callback_data)
2648
 
            {
2649
 
                AXIS2_FREE(env->allocator, callback_data);
2650
 
            }
2651
 
            return status;
2652
 
        }
2653
 
 
2654
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribeNetworks(axis2_callback_t *callback, const axutil_env_t *env)
2655
 
        {
2656
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data);
2657
 
            struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data* callback_data = NULL;
2658
 
            void *user_data = NULL;
2659
 
            axis2_status_t status = AXIS2_SUCCESS;
2660
 
 
2661
 
            adb_DescribeNetworksResponse_t* ret_val = NULL;
2662
 
 
2663
 
 
2664
 
            axiom_node_t *ret_node = NULL;
2665
 
            axiom_soap_envelope_t *soap_envelope = NULL;
2666
 
 
2667
 
 
2668
 
 
2669
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*)axis2_callback_get_data(callback);
2670
 
 
2671
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
2672
 
            if(soap_envelope)
2673
 
            {
2674
 
                axiom_soap_body_t *soap_body;
2675
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
2676
 
                if(soap_body)
2677
 
                {
2678
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
2679
 
                    if(body_node)
2680
 
                    {
2681
 
                        ret_node = axiom_node_get_first_child(body_node, env);
2682
 
                    }
2683
 
                }
2684
 
 
2685
 
 
2686
 
            }
2687
 
 
2688
 
            user_data = callback_data->data;
2689
 
            on_complete = callback_data->on_complete;
2690
 
 
2691
 
 
2692
 
                    if(ret_node != NULL)
2693
 
                    {
2694
 
                        ret_val = adb_DescribeNetworksResponse_create(env);
2695
 
 
2696
 
                        if(adb_DescribeNetworksResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
2697
 
                        {
2698
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
2699
 
                                                                    "This should be due to an invalid XML");
2700
 
                            adb_DescribeNetworksResponse_free(ret_val, env);
2701
 
                            ret_val = NULL;
2702
 
                        }
2703
 
                     }
2704
 
                     else
2705
 
                     {
2706
 
                         ret_val = NULL;
2707
 
                     }
2708
 
                     status = on_complete(env, ret_val, user_data);
2709
 
 
2710
 
 
2711
 
            if(callback_data)
2712
 
            {
2713
 
                AXIS2_FREE(env->allocator, callback_data);
2714
 
            }
2715
 
            return status;
2716
 
        }
2717
 
 
2718
 
        /**
2719
 
          * auto generated method signature for asynchronous invocations
2720
 
          * for "DescribeNetworks|http://eucalyptus.ucsb.edu/" operation.
2721
 
 
2722
 
          *
2723
 
          * @param _describeNetworks
2724
 
          * @param on_complete callback to handle on complete
2725
 
          * @param on_error callback to handle on error
2726
 
          */
2727
 
         void axis2_stub_start_op_EucalyptusCC_DescribeNetworks( axis2_stub_t *stub, const axutil_env_t *env,
2728
 
                                                    adb_DescribeNetworks_t* _describeNetworks,
2729
 
                                                  void *user_data,
2730
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribeNetworksResponse_t* _describeNetworksResponse, void *data) ,
2731
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
2732
 
         {
2733
 
 
2734
 
            axis2_callback_t *callback = NULL;
2735
 
 
2736
 
            axis2_svc_client_t *svc_client = NULL;
2737
 
            axis2_options_t *options = NULL;
2738
 
 
2739
 
            const axis2_char_t *soap_action = NULL;
2740
 
            axiom_node_t *payload = NULL;
2741
 
 
2742
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
2743
 
 
2744
 
            axutil_string_t *soap_act = NULL;
2745
 
 
2746
 
 
2747
 
            struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data *callback_data;
2748
 
 
2749
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data*) AXIS2_MALLOC(env->allocator,
2750
 
                                    sizeof(struct axis2_stub_EucalyptusCC_DescribeNetworks_callback_data));
2751
 
            if(NULL == callback_data)
2752
 
            {
2753
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2754
 
                return;
2755
 
            }
2756
 
 
2757
 
 
2758
 
                       payload = adb_DescribeNetworks_serialize(_describeNetworks, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2759
 
 
2760
 
 
2761
 
 
2762
 
 
2763
 
            options = axis2_stub_get_options( stub, env);
2764
 
            if (NULL == options)
2765
 
            {
2766
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2767
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2768
 
              return;
2769
 
            }
2770
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2771
 
            soap_action =axis2_options_get_action (options, env);
2772
 
            if (NULL == soap_action)
2773
 
            {
2774
 
              is_soap_act_set = AXIS2_FALSE;
2775
 
              soap_action = "EucalyptusCC#DescribeNetworks";
2776
 
 
2777
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribeNetworks");
2778
 
              axis2_options_set_soap_action(options, env, soap_act);
2779
 
 
2780
 
              axis2_options_set_action( options, env, soap_action);
2781
 
            }
2782
 
 
2783
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2784
 
 
2785
 
 
2786
 
            callback = axis2_callback_create(env);
2787
 
            /* Set our on_complete fucntion pointer to the callback object */
2788
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribeNetworks);
2789
 
            /* Set our on_error function pointer to the callback object */
2790
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribeNetworks);
2791
 
 
2792
 
            callback_data-> data = user_data;
2793
 
            callback_data-> on_complete = on_complete;
2794
 
            callback_data-> on_error = on_error;
2795
 
 
2796
 
            axis2_callback_set_data(callback, (void*)callback_data);
2797
 
 
2798
 
            /* Send request */
2799
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2800
 
 
2801
 
            if (!is_soap_act_set)
2802
 
            {
2803
 
 
2804
 
              axis2_options_set_soap_action(options, env, NULL);
2805
 
 
2806
 
              axis2_options_set_action(options, env, NULL);
2807
 
            }
2808
 
         }
2809
 
 
2810
 
 
2811
 
 
2812
 
        struct axis2_stub_EucalyptusCC_AssignAddress_callback_data
2813
 
        {
2814
 
            void *data;
2815
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data);
2816
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
2817
 
        };
2818
 
 
2819
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_AssignAddress(axis2_callback_t *callback, const axutil_env_t *env, int exception)
2820
 
        {
2821
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
2822
 
            struct axis2_stub_EucalyptusCC_AssignAddress_callback_data* callback_data = NULL;
2823
 
            void *user_data = NULL;
2824
 
 
2825
 
            axis2_status_t status;
2826
 
 
2827
 
            callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*)axis2_callback_get_data(callback);
2828
 
 
2829
 
            user_data = callback_data->data;
2830
 
            on_error = callback_data->on_error;
2831
 
 
2832
 
            status = on_error(env, exception, user_data);
2833
 
 
2834
 
            if(callback_data)
2835
 
            {
2836
 
                AXIS2_FREE(env->allocator, callback_data);
2837
 
            }
2838
 
            return status;
2839
 
        }
2840
 
 
2841
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_AssignAddress(axis2_callback_t *callback, const axutil_env_t *env)
2842
 
        {
2843
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data);
2844
 
            struct axis2_stub_EucalyptusCC_AssignAddress_callback_data* callback_data = NULL;
2845
 
            void *user_data = NULL;
2846
 
            axis2_status_t status = AXIS2_SUCCESS;
2847
 
 
2848
 
            adb_AssignAddressResponse_t* ret_val = NULL;
2849
 
 
2850
 
 
2851
 
            axiom_node_t *ret_node = NULL;
2852
 
            axiom_soap_envelope_t *soap_envelope = NULL;
2853
 
 
2854
 
 
2855
 
 
2856
 
            callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*)axis2_callback_get_data(callback);
2857
 
 
2858
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
2859
 
            if(soap_envelope)
2860
 
            {
2861
 
                axiom_soap_body_t *soap_body;
2862
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
2863
 
                if(soap_body)
2864
 
                {
2865
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
2866
 
                    if(body_node)
2867
 
                    {
2868
 
                        ret_node = axiom_node_get_first_child(body_node, env);
2869
 
                    }
2870
 
                }
2871
 
 
2872
 
 
2873
 
            }
2874
 
 
2875
 
            user_data = callback_data->data;
2876
 
            on_complete = callback_data->on_complete;
2877
 
 
2878
 
 
2879
 
                    if(ret_node != NULL)
2880
 
                    {
2881
 
                        ret_val = adb_AssignAddressResponse_create(env);
2882
 
 
2883
 
                        if(adb_AssignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
2884
 
                        {
2885
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
2886
 
                                                                    "This should be due to an invalid XML");
2887
 
                            adb_AssignAddressResponse_free(ret_val, env);
2888
 
                            ret_val = NULL;
2889
 
                        }
2890
 
                     }
2891
 
                     else
2892
 
                     {
2893
 
                         ret_val = NULL;
2894
 
                     }
2895
 
                     status = on_complete(env, ret_val, user_data);
2896
 
 
2897
 
 
2898
 
            if(callback_data)
2899
 
            {
2900
 
                AXIS2_FREE(env->allocator, callback_data);
2901
 
            }
2902
 
            return status;
2903
 
        }
2904
 
 
2905
 
        /**
2906
 
          * auto generated method signature for asynchronous invocations
2907
 
          * for "AssignAddress|http://eucalyptus.ucsb.edu/" operation.
2908
 
 
2909
 
          *
2910
 
          * @param _assignAddress
2911
 
          * @param on_complete callback to handle on complete
2912
 
          * @param on_error callback to handle on error
2913
 
          */
2914
 
         void axis2_stub_start_op_EucalyptusCC_AssignAddress( axis2_stub_t *stub, const axutil_env_t *env,
2915
 
                                                    adb_AssignAddress_t* _assignAddress,
2916
 
                                                  void *user_data,
2917
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AssignAddressResponse_t* _assignAddressResponse, void *data) ,
2918
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
2919
 
         {
2920
 
 
2921
 
            axis2_callback_t *callback = NULL;
2922
 
 
2923
 
            axis2_svc_client_t *svc_client = NULL;
2924
 
            axis2_options_t *options = NULL;
2925
 
 
2926
 
            const axis2_char_t *soap_action = NULL;
2927
 
            axiom_node_t *payload = NULL;
2928
 
 
2929
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
2930
 
 
2931
 
            axutil_string_t *soap_act = NULL;
2932
 
 
2933
 
 
2934
 
            struct axis2_stub_EucalyptusCC_AssignAddress_callback_data *callback_data;
2935
 
 
2936
 
            callback_data = (struct axis2_stub_EucalyptusCC_AssignAddress_callback_data*) AXIS2_MALLOC(env->allocator,
2937
 
                                    sizeof(struct axis2_stub_EucalyptusCC_AssignAddress_callback_data));
2938
 
            if(NULL == callback_data)
2939
 
            {
2940
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
2941
 
                return;
2942
 
            }
2943
 
 
2944
 
 
2945
 
                       payload = adb_AssignAddress_serialize(_assignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
2946
 
 
2947
 
 
2948
 
 
2949
 
 
2950
 
            options = axis2_stub_get_options( stub, env);
2951
 
            if (NULL == options)
2952
 
            {
2953
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
2954
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
2955
 
              return;
2956
 
            }
2957
 
            svc_client = axis2_stub_get_svc_client (stub, env);
2958
 
            soap_action =axis2_options_get_action (options, env);
2959
 
            if (NULL == soap_action)
2960
 
            {
2961
 
              is_soap_act_set = AXIS2_FALSE;
2962
 
              soap_action = "EucalyptusCC#AssignAddress";
2963
 
 
2964
 
              soap_act = axutil_string_create(env, "EucalyptusCC#AssignAddress");
2965
 
              axis2_options_set_soap_action(options, env, soap_act);
2966
 
 
2967
 
              axis2_options_set_action( options, env, soap_action);
2968
 
            }
2969
 
 
2970
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
2971
 
 
2972
 
 
2973
 
            callback = axis2_callback_create(env);
2974
 
            /* Set our on_complete fucntion pointer to the callback object */
2975
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_AssignAddress);
2976
 
            /* Set our on_error function pointer to the callback object */
2977
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_AssignAddress);
2978
 
 
2979
 
            callback_data-> data = user_data;
2980
 
            callback_data-> on_complete = on_complete;
2981
 
            callback_data-> on_error = on_error;
2982
 
 
2983
 
            axis2_callback_set_data(callback, (void*)callback_data);
2984
 
 
2985
 
            /* Send request */
2986
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
2987
 
 
2988
 
            if (!is_soap_act_set)
2989
 
            {
2990
 
 
2991
 
              axis2_options_set_soap_action(options, env, NULL);
2992
 
 
2993
 
              axis2_options_set_action(options, env, NULL);
2994
 
            }
2995
 
         }
2996
 
 
2997
 
 
2998
 
 
2999
 
        struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data
3000
 
        {
3001
 
            void *data;
3002
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data);
3003
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3004
 
        };
3005
 
 
3006
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DescribePublicAddresses(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3007
 
        {
3008
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3009
 
            struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data* callback_data = NULL;
3010
 
            void *user_data = NULL;
3011
 
 
3012
 
            axis2_status_t status;
3013
 
 
3014
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*)axis2_callback_get_data(callback);
3015
 
 
3016
 
            user_data = callback_data->data;
3017
 
            on_error = callback_data->on_error;
3018
 
 
3019
 
            status = on_error(env, exception, user_data);
3020
 
 
3021
 
            if(callback_data)
3022
 
            {
3023
 
                AXIS2_FREE(env->allocator, callback_data);
3024
 
            }
3025
 
            return status;
3026
 
        }
3027
 
 
3028
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DescribePublicAddresses(axis2_callback_t *callback, const axutil_env_t *env)
3029
 
        {
3030
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data);
3031
 
            struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data* callback_data = NULL;
3032
 
            void *user_data = NULL;
3033
 
            axis2_status_t status = AXIS2_SUCCESS;
3034
 
 
3035
 
            adb_DescribePublicAddressesResponse_t* ret_val = NULL;
3036
 
 
3037
 
 
3038
 
            axiom_node_t *ret_node = NULL;
3039
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3040
 
 
3041
 
 
3042
 
 
3043
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*)axis2_callback_get_data(callback);
3044
 
 
3045
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3046
 
            if(soap_envelope)
3047
 
            {
3048
 
                axiom_soap_body_t *soap_body;
3049
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3050
 
                if(soap_body)
3051
 
                {
3052
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3053
 
                    if(body_node)
3054
 
                    {
3055
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3056
 
                    }
3057
 
                }
3058
 
 
3059
 
 
3060
 
            }
3061
 
 
3062
 
            user_data = callback_data->data;
3063
 
            on_complete = callback_data->on_complete;
3064
 
 
3065
 
 
3066
 
                    if(ret_node != NULL)
3067
 
                    {
3068
 
                        ret_val = adb_DescribePublicAddressesResponse_create(env);
3069
 
 
3070
 
                        if(adb_DescribePublicAddressesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
3071
 
                        {
3072
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
3073
 
                                                                    "This should be due to an invalid XML");
3074
 
                            adb_DescribePublicAddressesResponse_free(ret_val, env);
3075
 
                            ret_val = NULL;
3076
 
                        }
3077
 
                     }
3078
 
                     else
3079
 
                     {
3080
 
                         ret_val = NULL;
3081
 
                     }
3082
 
                     status = on_complete(env, ret_val, user_data);
3083
 
 
3084
 
 
3085
 
            if(callback_data)
3086
 
            {
3087
 
                AXIS2_FREE(env->allocator, callback_data);
3088
 
            }
3089
 
            return status;
3090
 
        }
3091
 
 
3092
 
        /**
3093
 
          * auto generated method signature for asynchronous invocations
3094
 
          * for "DescribePublicAddresses|http://eucalyptus.ucsb.edu/" operation.
3095
 
 
3096
 
          *
3097
 
          * @param _describePublicAddresses
3098
 
          * @param on_complete callback to handle on complete
3099
 
          * @param on_error callback to handle on error
3100
 
          */
3101
 
         void axis2_stub_start_op_EucalyptusCC_DescribePublicAddresses( axis2_stub_t *stub, const axutil_env_t *env,
3102
 
                                                    adb_DescribePublicAddresses_t* _describePublicAddresses,
3103
 
                                                  void *user_data,
3104
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DescribePublicAddressesResponse_t* _describePublicAddressesResponse, void *data) ,
3105
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
3106
 
         {
3107
 
 
3108
 
            axis2_callback_t *callback = NULL;
3109
 
 
3110
 
            axis2_svc_client_t *svc_client = NULL;
3111
 
            axis2_options_t *options = NULL;
3112
 
 
3113
 
            const axis2_char_t *soap_action = NULL;
3114
 
            axiom_node_t *payload = NULL;
3115
 
 
3116
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
3117
 
 
3118
 
            axutil_string_t *soap_act = NULL;
3119
 
 
3120
 
 
3121
 
            struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data *callback_data;
3122
 
 
3123
 
            callback_data = (struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data*) AXIS2_MALLOC(env->allocator,
3124
 
                                    sizeof(struct axis2_stub_EucalyptusCC_DescribePublicAddresses_callback_data));
3125
 
            if(NULL == callback_data)
3126
 
            {
3127
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
3128
 
                return;
3129
 
            }
3130
 
 
3131
 
 
3132
 
                       payload = adb_DescribePublicAddresses_serialize(_describePublicAddresses, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
3133
 
 
3134
 
 
3135
 
 
3136
 
 
3137
 
            options = axis2_stub_get_options( stub, env);
3138
 
            if (NULL == options)
3139
 
            {
3140
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
3141
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
3142
 
              return;
3143
 
            }
3144
 
            svc_client = axis2_stub_get_svc_client (stub, env);
3145
 
            soap_action =axis2_options_get_action (options, env);
3146
 
            if (NULL == soap_action)
3147
 
            {
3148
 
              is_soap_act_set = AXIS2_FALSE;
3149
 
              soap_action = "EucalyptusCC#DescribePublicAddresses";
3150
 
 
3151
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DescribePublicAddresses");
3152
 
              axis2_options_set_soap_action(options, env, soap_act);
3153
 
 
3154
 
              axis2_options_set_action( options, env, soap_action);
3155
 
            }
3156
 
 
3157
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
3158
 
 
3159
 
 
3160
 
            callback = axis2_callback_create(env);
3161
 
            /* Set our on_complete fucntion pointer to the callback object */
3162
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DescribePublicAddresses);
3163
 
            /* Set our on_error function pointer to the callback object */
3164
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DescribePublicAddresses);
3165
 
 
3166
 
            callback_data-> data = user_data;
3167
 
            callback_data-> on_complete = on_complete;
3168
 
            callback_data-> on_error = on_error;
3169
 
 
3170
 
            axis2_callback_set_data(callback, (void*)callback_data);
3171
 
 
3172
 
            /* Send request */
3173
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
3174
 
 
3175
 
            if (!is_soap_act_set)
3176
 
            {
3177
 
 
3178
 
              axis2_options_set_soap_action(options, env, NULL);
3179
 
 
3180
 
              axis2_options_set_action(options, env, NULL);
3181
 
            }
3182
 
         }
3183
 
 
3184
 
 
3185
 
 
3186
 
        struct axis2_stub_EucalyptusCC_RebootInstances_callback_data
3187
 
        {
3188
 
            void *data;
3189
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data);
3190
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3191
 
        };
3192
 
 
3193
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_RebootInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3194
 
        {
3195
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3196
 
            struct axis2_stub_EucalyptusCC_RebootInstances_callback_data* callback_data = NULL;
3197
 
            void *user_data = NULL;
3198
 
 
3199
 
            axis2_status_t status;
3200
 
 
3201
 
            callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*)axis2_callback_get_data(callback);
3202
 
 
3203
 
            user_data = callback_data->data;
3204
 
            on_error = callback_data->on_error;
3205
 
 
3206
 
            status = on_error(env, exception, user_data);
3207
 
 
3208
 
            if(callback_data)
3209
 
            {
3210
 
                AXIS2_FREE(env->allocator, callback_data);
3211
 
            }
3212
 
            return status;
3213
 
        }
3214
 
 
3215
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_RebootInstances(axis2_callback_t *callback, const axutil_env_t *env)
3216
 
        {
3217
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data);
3218
 
            struct axis2_stub_EucalyptusCC_RebootInstances_callback_data* callback_data = NULL;
3219
 
            void *user_data = NULL;
3220
 
            axis2_status_t status = AXIS2_SUCCESS;
3221
 
 
3222
 
            adb_RebootInstancesResponse_t* ret_val = NULL;
3223
 
 
3224
 
 
3225
 
            axiom_node_t *ret_node = NULL;
3226
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3227
 
 
3228
 
 
3229
 
 
3230
 
            callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*)axis2_callback_get_data(callback);
3231
 
 
3232
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3233
 
            if(soap_envelope)
3234
 
            {
3235
 
                axiom_soap_body_t *soap_body;
3236
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3237
 
                if(soap_body)
3238
 
                {
3239
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3240
 
                    if(body_node)
3241
 
                    {
3242
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3243
 
                    }
3244
 
                }
3245
 
 
3246
 
 
3247
 
            }
3248
 
 
3249
 
            user_data = callback_data->data;
3250
 
            on_complete = callback_data->on_complete;
3251
 
 
3252
 
 
3253
 
                    if(ret_node != NULL)
3254
 
                    {
3255
 
                        ret_val = adb_RebootInstancesResponse_create(env);
3256
 
 
3257
 
                        if(adb_RebootInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
3258
 
                        {
3259
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
3260
 
                                                                    "This should be due to an invalid XML");
3261
 
                            adb_RebootInstancesResponse_free(ret_val, env);
3262
 
                            ret_val = NULL;
3263
 
                        }
3264
 
                     }
3265
 
                     else
3266
 
                     {
3267
 
                         ret_val = NULL;
3268
 
                     }
3269
 
                     status = on_complete(env, ret_val, user_data);
3270
 
 
3271
 
 
3272
 
            if(callback_data)
3273
 
            {
3274
 
                AXIS2_FREE(env->allocator, callback_data);
3275
 
            }
3276
 
            return status;
3277
 
        }
3278
 
 
3279
 
        /**
3280
 
          * auto generated method signature for asynchronous invocations
3281
 
          * for "RebootInstances|http://eucalyptus.ucsb.edu/" operation.
3282
 
 
3283
 
          *
3284
 
          * @param _rebootInstances
3285
 
          * @param on_complete callback to handle on complete
3286
 
          * @param on_error callback to handle on error
3287
 
          */
3288
 
         void axis2_stub_start_op_EucalyptusCC_RebootInstances( axis2_stub_t *stub, const axutil_env_t *env,
3289
 
                                                    adb_RebootInstances_t* _rebootInstances,
3290
 
                                                  void *user_data,
3291
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RebootInstancesResponse_t* _rebootInstancesResponse, void *data) ,
3292
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
3293
 
         {
3294
 
 
3295
 
            axis2_callback_t *callback = NULL;
3296
 
 
3297
 
            axis2_svc_client_t *svc_client = NULL;
3298
 
            axis2_options_t *options = NULL;
3299
 
 
3300
 
            const axis2_char_t *soap_action = NULL;
3301
 
            axiom_node_t *payload = NULL;
3302
 
 
3303
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
3304
 
 
3305
 
            axutil_string_t *soap_act = NULL;
3306
 
 
3307
 
 
3308
 
            struct axis2_stub_EucalyptusCC_RebootInstances_callback_data *callback_data;
3309
 
 
3310
 
            callback_data = (struct axis2_stub_EucalyptusCC_RebootInstances_callback_data*) AXIS2_MALLOC(env->allocator,
3311
 
                                    sizeof(struct axis2_stub_EucalyptusCC_RebootInstances_callback_data));
3312
 
            if(NULL == callback_data)
3313
 
            {
3314
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
3315
 
                return;
3316
 
            }
3317
 
 
3318
 
 
3319
 
                       payload = adb_RebootInstances_serialize(_rebootInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
3320
 
 
3321
 
 
3322
 
 
3323
 
 
3324
 
            options = axis2_stub_get_options( stub, env);
3325
 
            if (NULL == options)
3326
 
            {
3327
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
3328
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
3329
 
              return;
3330
 
            }
3331
 
            svc_client = axis2_stub_get_svc_client (stub, env);
3332
 
            soap_action =axis2_options_get_action (options, env);
3333
 
            if (NULL == soap_action)
3334
 
            {
3335
 
              is_soap_act_set = AXIS2_FALSE;
3336
 
              soap_action = "EucalyptusCC#RebootInstances";
3337
 
 
3338
 
              soap_act = axutil_string_create(env, "EucalyptusCC#RebootInstances");
3339
 
              axis2_options_set_soap_action(options, env, soap_act);
3340
 
 
3341
 
              axis2_options_set_action( options, env, soap_action);
3342
 
            }
3343
 
 
3344
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
3345
 
 
3346
 
 
3347
 
            callback = axis2_callback_create(env);
3348
 
            /* Set our on_complete fucntion pointer to the callback object */
3349
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_RebootInstances);
3350
 
            /* Set our on_error function pointer to the callback object */
3351
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_RebootInstances);
3352
 
 
3353
 
            callback_data-> data = user_data;
3354
 
            callback_data-> on_complete = on_complete;
3355
 
            callback_data-> on_error = on_error;
3356
 
 
3357
 
            axis2_callback_set_data(callback, (void*)callback_data);
3358
 
 
3359
 
            /* Send request */
3360
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
3361
 
 
3362
 
            if (!is_soap_act_set)
3363
 
            {
3364
 
 
3365
 
              axis2_options_set_soap_action(options, env, NULL);
3366
 
 
3367
 
              axis2_options_set_action(options, env, NULL);
3368
 
            }
3369
 
         }
3370
 
 
3371
 
 
3372
 
 
3373
 
        struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data
3374
 
        {
3375
 
            void *data;
3376
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data);
3377
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3378
 
        };
3379
 
 
3380
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_GetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3381
 
        {
3382
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3383
 
            struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data* callback_data = NULL;
3384
 
            void *user_data = NULL;
3385
 
 
3386
 
            axis2_status_t status;
3387
 
 
3388
 
            callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*)axis2_callback_get_data(callback);
3389
 
 
3390
 
            user_data = callback_data->data;
3391
 
            on_error = callback_data->on_error;
3392
 
 
3393
 
            status = on_error(env, exception, user_data);
3394
 
 
3395
 
            if(callback_data)
3396
 
            {
3397
 
                AXIS2_FREE(env->allocator, callback_data);
3398
 
            }
3399
 
            return status;
3400
 
        }
3401
 
 
3402
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_GetConsoleOutput(axis2_callback_t *callback, const axutil_env_t *env)
3403
 
        {
3404
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data);
3405
 
            struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data* callback_data = NULL;
3406
 
            void *user_data = NULL;
3407
 
            axis2_status_t status = AXIS2_SUCCESS;
3408
 
 
3409
 
            adb_GetConsoleOutputResponse_t* ret_val = NULL;
3410
 
 
3411
 
 
3412
 
            axiom_node_t *ret_node = NULL;
3413
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3414
 
 
3415
 
 
3416
 
 
3417
 
            callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*)axis2_callback_get_data(callback);
3418
 
 
3419
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3420
 
            if(soap_envelope)
3421
 
            {
3422
 
                axiom_soap_body_t *soap_body;
3423
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3424
 
                if(soap_body)
3425
 
                {
3426
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3427
 
                    if(body_node)
3428
 
                    {
3429
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3430
 
                    }
3431
 
                }
3432
 
 
3433
 
 
3434
 
            }
3435
 
 
3436
 
            user_data = callback_data->data;
3437
 
            on_complete = callback_data->on_complete;
3438
 
 
3439
 
 
3440
 
                    if(ret_node != NULL)
3441
 
                    {
3442
 
                        ret_val = adb_GetConsoleOutputResponse_create(env);
3443
 
 
3444
 
                        if(adb_GetConsoleOutputResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
3445
 
                        {
3446
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
3447
 
                                                                    "This should be due to an invalid XML");
3448
 
                            adb_GetConsoleOutputResponse_free(ret_val, env);
3449
 
                            ret_val = NULL;
3450
 
                        }
3451
 
                     }
3452
 
                     else
3453
 
                     {
3454
 
                         ret_val = NULL;
3455
 
                     }
3456
 
                     status = on_complete(env, ret_val, user_data);
3457
 
 
3458
 
 
3459
 
            if(callback_data)
3460
 
            {
3461
 
                AXIS2_FREE(env->allocator, callback_data);
3462
 
            }
3463
 
            return status;
3464
 
        }
3465
 
 
3466
 
        /**
3467
 
          * auto generated method signature for asynchronous invocations
3468
 
          * for "GetConsoleOutput|http://eucalyptus.ucsb.edu/" operation.
3469
 
 
3470
 
          *
3471
 
          * @param _getConsoleOutput
3472
 
          * @param on_complete callback to handle on complete
3473
 
          * @param on_error callback to handle on error
3474
 
          */
3475
 
         void axis2_stub_start_op_EucalyptusCC_GetConsoleOutput( axis2_stub_t *stub, const axutil_env_t *env,
3476
 
                                                    adb_GetConsoleOutput_t* _getConsoleOutput,
3477
 
                                                  void *user_data,
3478
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_GetConsoleOutputResponse_t* _getConsoleOutputResponse, void *data) ,
3479
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
3480
 
         {
3481
 
 
3482
 
            axis2_callback_t *callback = NULL;
3483
 
 
3484
 
            axis2_svc_client_t *svc_client = NULL;
3485
 
            axis2_options_t *options = NULL;
3486
 
 
3487
 
            const axis2_char_t *soap_action = NULL;
3488
 
            axiom_node_t *payload = NULL;
3489
 
 
3490
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
3491
 
 
3492
 
            axutil_string_t *soap_act = NULL;
3493
 
 
3494
 
 
3495
 
            struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data *callback_data;
3496
 
 
3497
 
            callback_data = (struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data*) AXIS2_MALLOC(env->allocator,
3498
 
                                    sizeof(struct axis2_stub_EucalyptusCC_GetConsoleOutput_callback_data));
3499
 
            if(NULL == callback_data)
3500
 
            {
3501
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
3502
 
                return;
3503
 
            }
3504
 
 
3505
 
 
3506
 
                       payload = adb_GetConsoleOutput_serialize(_getConsoleOutput, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
3507
 
 
3508
 
 
3509
 
 
3510
 
 
3511
 
            options = axis2_stub_get_options( stub, env);
3512
 
            if (NULL == options)
3513
 
            {
3514
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
3515
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
3516
 
              return;
3517
 
            }
3518
 
            svc_client = axis2_stub_get_svc_client (stub, env);
3519
 
            soap_action =axis2_options_get_action (options, env);
3520
 
            if (NULL == soap_action)
3521
 
            {
3522
 
              is_soap_act_set = AXIS2_FALSE;
3523
 
              soap_action = "EucalyptusCC#GetConsoleOutput";
3524
 
 
3525
 
              soap_act = axutil_string_create(env, "EucalyptusCC#GetConsoleOutput");
3526
 
              axis2_options_set_soap_action(options, env, soap_act);
3527
 
 
3528
 
              axis2_options_set_action( options, env, soap_action);
3529
 
            }
3530
 
 
3531
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
3532
 
 
3533
 
 
3534
 
            callback = axis2_callback_create(env);
3535
 
            /* Set our on_complete fucntion pointer to the callback object */
3536
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_GetConsoleOutput);
3537
 
            /* Set our on_error function pointer to the callback object */
3538
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_GetConsoleOutput);
3539
 
 
3540
 
            callback_data-> data = user_data;
3541
 
            callback_data-> on_complete = on_complete;
3542
 
            callback_data-> on_error = on_error;
3543
 
 
3544
 
            axis2_callback_set_data(callback, (void*)callback_data);
3545
 
 
3546
 
            /* Send request */
3547
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
3548
 
 
3549
 
            if (!is_soap_act_set)
3550
 
            {
3551
 
 
3552
 
              axis2_options_set_soap_action(options, env, NULL);
3553
 
 
3554
 
              axis2_options_set_action(options, env, NULL);
3555
 
            }
3556
 
         }
3557
 
 
3558
 
 
3559
 
 
3560
 
        struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data
3561
 
        {
3562
 
            void *data;
3563
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data);
3564
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3565
 
        };
3566
 
 
3567
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_UnassignAddress(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3568
 
        {
3569
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3570
 
            struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data* callback_data = NULL;
3571
 
            void *user_data = NULL;
3572
 
 
3573
 
            axis2_status_t status;
3574
 
 
3575
 
            callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*)axis2_callback_get_data(callback);
3576
 
 
3577
 
            user_data = callback_data->data;
3578
 
            on_error = callback_data->on_error;
3579
 
 
3580
 
            status = on_error(env, exception, user_data);
3581
 
 
3582
 
            if(callback_data)
3583
 
            {
3584
 
                AXIS2_FREE(env->allocator, callback_data);
3585
 
            }
3586
 
            return status;
3587
 
        }
3588
 
 
3589
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_UnassignAddress(axis2_callback_t *callback, const axutil_env_t *env)
3590
 
        {
3591
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data);
3592
 
            struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data* callback_data = NULL;
3593
 
            void *user_data = NULL;
3594
 
            axis2_status_t status = AXIS2_SUCCESS;
3595
 
 
3596
 
            adb_UnassignAddressResponse_t* ret_val = NULL;
3597
 
 
3598
 
 
3599
 
            axiom_node_t *ret_node = NULL;
3600
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3601
 
 
3602
 
 
3603
 
 
3604
 
            callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*)axis2_callback_get_data(callback);
3605
 
 
3606
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3607
 
            if(soap_envelope)
3608
 
            {
3609
 
                axiom_soap_body_t *soap_body;
3610
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3611
 
                if(soap_body)
3612
 
                {
3613
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3614
 
                    if(body_node)
3615
 
                    {
3616
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3617
 
                    }
3618
 
                }
3619
 
 
3620
 
 
3621
 
            }
3622
 
 
3623
 
            user_data = callback_data->data;
3624
 
            on_complete = callback_data->on_complete;
3625
 
 
3626
 
 
3627
 
                    if(ret_node != NULL)
3628
 
                    {
3629
 
                        ret_val = adb_UnassignAddressResponse_create(env);
3630
 
 
3631
 
                        if(adb_UnassignAddressResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
3632
 
                        {
3633
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
3634
 
                                                                    "This should be due to an invalid XML");
3635
 
                            adb_UnassignAddressResponse_free(ret_val, env);
3636
 
                            ret_val = NULL;
3637
 
                        }
3638
 
                     }
3639
 
                     else
3640
 
                     {
3641
 
                         ret_val = NULL;
3642
 
                     }
3643
 
                     status = on_complete(env, ret_val, user_data);
3644
 
 
3645
 
 
3646
 
            if(callback_data)
3647
 
            {
3648
 
                AXIS2_FREE(env->allocator, callback_data);
3649
 
            }
3650
 
            return status;
3651
 
        }
3652
 
 
3653
 
        /**
3654
 
          * auto generated method signature for asynchronous invocations
3655
 
          * for "UnassignAddress|http://eucalyptus.ucsb.edu/" operation.
3656
 
 
3657
 
          *
3658
 
          * @param _unassignAddress
3659
 
          * @param on_complete callback to handle on complete
3660
 
          * @param on_error callback to handle on error
3661
 
          */
3662
 
         void axis2_stub_start_op_EucalyptusCC_UnassignAddress( axis2_stub_t *stub, const axutil_env_t *env,
3663
 
                                                    adb_UnassignAddress_t* _unassignAddress,
3664
 
                                                  void *user_data,
3665
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_UnassignAddressResponse_t* _unassignAddressResponse, void *data) ,
3666
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
3667
 
         {
3668
 
 
3669
 
            axis2_callback_t *callback = NULL;
3670
 
 
3671
 
            axis2_svc_client_t *svc_client = NULL;
3672
 
            axis2_options_t *options = NULL;
3673
 
 
3674
 
            const axis2_char_t *soap_action = NULL;
3675
 
            axiom_node_t *payload = NULL;
3676
 
 
3677
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
3678
 
 
3679
 
            axutil_string_t *soap_act = NULL;
3680
 
 
3681
 
 
3682
 
            struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data *callback_data;
3683
 
 
3684
 
            callback_data = (struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data*) AXIS2_MALLOC(env->allocator,
3685
 
                                    sizeof(struct axis2_stub_EucalyptusCC_UnassignAddress_callback_data));
3686
 
            if(NULL == callback_data)
3687
 
            {
3688
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
3689
 
                return;
3690
 
            }
3691
 
 
3692
 
 
3693
 
                       payload = adb_UnassignAddress_serialize(_unassignAddress, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
3694
 
 
3695
 
 
3696
 
 
3697
 
 
3698
 
            options = axis2_stub_get_options( stub, env);
3699
 
            if (NULL == options)
3700
 
            {
3701
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
3702
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
3703
 
              return;
3704
 
            }
3705
 
            svc_client = axis2_stub_get_svc_client (stub, env);
3706
 
            soap_action =axis2_options_get_action (options, env);
3707
 
            if (NULL == soap_action)
3708
 
            {
3709
 
              is_soap_act_set = AXIS2_FALSE;
3710
 
              soap_action = "EucalyptusCC#UnassignAddress";
3711
 
 
3712
 
              soap_act = axutil_string_create(env, "EucalyptusCC#UnassignAddress");
3713
 
              axis2_options_set_soap_action(options, env, soap_act);
3714
 
 
3715
 
              axis2_options_set_action( options, env, soap_action);
3716
 
            }
3717
 
 
3718
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
3719
 
 
3720
 
 
3721
 
            callback = axis2_callback_create(env);
3722
 
            /* Set our on_complete fucntion pointer to the callback object */
3723
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_UnassignAddress);
3724
 
            /* Set our on_error function pointer to the callback object */
3725
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_UnassignAddress);
3726
 
 
3727
 
            callback_data-> data = user_data;
3728
 
            callback_data-> on_complete = on_complete;
3729
 
            callback_data-> on_error = on_error;
3730
 
 
3731
 
            axis2_callback_set_data(callback, (void*)callback_data);
3732
 
 
3733
 
            /* Send request */
3734
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
3735
 
 
3736
 
            if (!is_soap_act_set)
3737
 
            {
3738
 
 
3739
 
              axis2_options_set_soap_action(options, env, NULL);
3740
 
 
3741
 
              axis2_options_set_action(options, env, NULL);
3742
 
            }
3743
 
         }
3744
 
 
3745
 
 
3746
 
 
3747
 
        struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data
3748
 
        {
3749
 
            void *data;
3750
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data);
3751
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3752
 
        };
3753
 
 
3754
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_TerminateInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3755
 
        {
3756
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3757
 
            struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data* callback_data = NULL;
3758
 
            void *user_data = NULL;
3759
 
 
3760
 
            axis2_status_t status;
3761
 
 
3762
 
            callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*)axis2_callback_get_data(callback);
3763
 
 
3764
 
            user_data = callback_data->data;
3765
 
            on_error = callback_data->on_error;
3766
 
 
3767
 
            status = on_error(env, exception, user_data);
3768
 
 
3769
 
            if(callback_data)
3770
 
            {
3771
 
                AXIS2_FREE(env->allocator, callback_data);
3772
 
            }
3773
 
            return status;
3774
 
        }
3775
 
 
3776
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_TerminateInstances(axis2_callback_t *callback, const axutil_env_t *env)
3777
 
        {
3778
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data);
3779
 
            struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data* callback_data = NULL;
3780
 
            void *user_data = NULL;
3781
 
            axis2_status_t status = AXIS2_SUCCESS;
3782
 
 
3783
 
            adb_TerminateInstancesResponse_t* ret_val = NULL;
3784
 
 
3785
 
 
3786
 
            axiom_node_t *ret_node = NULL;
3787
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3788
 
 
3789
 
 
3790
 
 
3791
 
            callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*)axis2_callback_get_data(callback);
3792
 
 
3793
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3794
 
            if(soap_envelope)
3795
 
            {
3796
 
                axiom_soap_body_t *soap_body;
3797
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3798
 
                if(soap_body)
3799
 
                {
3800
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3801
 
                    if(body_node)
3802
 
                    {
3803
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3804
 
                    }
3805
 
                }
3806
 
 
3807
 
 
3808
 
            }
3809
 
 
3810
 
            user_data = callback_data->data;
3811
 
            on_complete = callback_data->on_complete;
3812
 
 
3813
 
 
3814
 
                    if(ret_node != NULL)
3815
 
                    {
3816
 
                        ret_val = adb_TerminateInstancesResponse_create(env);
3817
 
 
3818
 
                        if(adb_TerminateInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
3819
 
                        {
3820
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
3821
 
                                                                    "This should be due to an invalid XML");
3822
 
                            adb_TerminateInstancesResponse_free(ret_val, env);
3823
 
                            ret_val = NULL;
3824
 
                        }
3825
 
                     }
3826
 
                     else
3827
 
                     {
3828
 
                         ret_val = NULL;
3829
 
                     }
3830
 
                     status = on_complete(env, ret_val, user_data);
3831
 
 
3832
 
 
3833
 
            if(callback_data)
3834
 
            {
3835
 
                AXIS2_FREE(env->allocator, callback_data);
3836
 
            }
3837
 
            return status;
3838
 
        }
3839
 
 
3840
 
        /**
3841
 
          * auto generated method signature for asynchronous invocations
3842
 
          * for "TerminateInstances|http://eucalyptus.ucsb.edu/" operation.
3843
 
 
3844
 
          *
3845
 
          * @param _terminateInstances
3846
 
          * @param on_complete callback to handle on complete
3847
 
          * @param on_error callback to handle on error
3848
 
          */
3849
 
         void axis2_stub_start_op_EucalyptusCC_TerminateInstances( axis2_stub_t *stub, const axutil_env_t *env,
3850
 
                                                    adb_TerminateInstances_t* _terminateInstances,
3851
 
                                                  void *user_data,
3852
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_TerminateInstancesResponse_t* _terminateInstancesResponse, void *data) ,
3853
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
3854
 
         {
3855
 
 
3856
 
            axis2_callback_t *callback = NULL;
3857
 
 
3858
 
            axis2_svc_client_t *svc_client = NULL;
3859
 
            axis2_options_t *options = NULL;
3860
 
 
3861
 
            const axis2_char_t *soap_action = NULL;
3862
 
            axiom_node_t *payload = NULL;
3863
 
 
3864
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
3865
 
 
3866
 
            axutil_string_t *soap_act = NULL;
3867
 
 
3868
 
 
3869
 
            struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data *callback_data;
3870
 
 
3871
 
            callback_data = (struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data*) AXIS2_MALLOC(env->allocator,
3872
 
                                    sizeof(struct axis2_stub_EucalyptusCC_TerminateInstances_callback_data));
3873
 
            if(NULL == callback_data)
3874
 
            {
3875
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
3876
 
                return;
3877
 
            }
3878
 
 
3879
 
 
3880
 
                       payload = adb_TerminateInstances_serialize(_terminateInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
3881
 
 
3882
 
 
3883
 
 
3884
 
 
3885
 
            options = axis2_stub_get_options( stub, env);
3886
 
            if (NULL == options)
3887
 
            {
3888
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
3889
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
3890
 
              return;
3891
 
            }
3892
 
            svc_client = axis2_stub_get_svc_client (stub, env);
3893
 
            soap_action =axis2_options_get_action (options, env);
3894
 
            if (NULL == soap_action)
3895
 
            {
3896
 
              is_soap_act_set = AXIS2_FALSE;
3897
 
              soap_action = "EucalyptusCC#TerminateInstances";
3898
 
 
3899
 
              soap_act = axutil_string_create(env, "EucalyptusCC#TerminateInstances");
3900
 
              axis2_options_set_soap_action(options, env, soap_act);
3901
 
 
3902
 
              axis2_options_set_action( options, env, soap_action);
3903
 
            }
3904
 
 
3905
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
3906
 
 
3907
 
 
3908
 
            callback = axis2_callback_create(env);
3909
 
            /* Set our on_complete fucntion pointer to the callback object */
3910
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_TerminateInstances);
3911
 
            /* Set our on_error function pointer to the callback object */
3912
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_TerminateInstances);
3913
 
 
3914
 
            callback_data-> data = user_data;
3915
 
            callback_data-> on_complete = on_complete;
3916
 
            callback_data-> on_error = on_error;
3917
 
 
3918
 
            axis2_callback_set_data(callback, (void*)callback_data);
3919
 
 
3920
 
            /* Send request */
3921
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
3922
 
 
3923
 
            if (!is_soap_act_set)
3924
 
            {
3925
 
 
3926
 
              axis2_options_set_soap_action(options, env, NULL);
3927
 
 
3928
 
              axis2_options_set_action(options, env, NULL);
3929
 
            }
3930
 
         }
3931
 
 
3932
 
 
3933
 
 
3934
 
        struct axis2_stub_EucalyptusCC_DetachVolume_callback_data
3935
 
        {
3936
 
            void *data;
3937
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data);
3938
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
3939
 
        };
3940
 
 
3941
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_DetachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception)
3942
 
        {
3943
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
3944
 
            struct axis2_stub_EucalyptusCC_DetachVolume_callback_data* callback_data = NULL;
3945
 
            void *user_data = NULL;
3946
 
 
3947
 
            axis2_status_t status;
3948
 
 
3949
 
            callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*)axis2_callback_get_data(callback);
3950
 
 
3951
 
            user_data = callback_data->data;
3952
 
            on_error = callback_data->on_error;
3953
 
 
3954
 
            status = on_error(env, exception, user_data);
3955
 
 
3956
 
            if(callback_data)
3957
 
            {
3958
 
                AXIS2_FREE(env->allocator, callback_data);
3959
 
            }
3960
 
            return status;
3961
 
        }
3962
 
 
3963
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_DetachVolume(axis2_callback_t *callback, const axutil_env_t *env)
3964
 
        {
3965
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data);
3966
 
            struct axis2_stub_EucalyptusCC_DetachVolume_callback_data* callback_data = NULL;
3967
 
            void *user_data = NULL;
3968
 
            axis2_status_t status = AXIS2_SUCCESS;
3969
 
 
3970
 
            adb_DetachVolumeResponse_t* ret_val = NULL;
3971
 
 
3972
 
 
3973
 
            axiom_node_t *ret_node = NULL;
3974
 
            axiom_soap_envelope_t *soap_envelope = NULL;
3975
 
 
3976
 
 
3977
 
 
3978
 
            callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*)axis2_callback_get_data(callback);
3979
 
 
3980
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
3981
 
            if(soap_envelope)
3982
 
            {
3983
 
                axiom_soap_body_t *soap_body;
3984
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
3985
 
                if(soap_body)
3986
 
                {
3987
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
3988
 
                    if(body_node)
3989
 
                    {
3990
 
                        ret_node = axiom_node_get_first_child(body_node, env);
3991
 
                    }
3992
 
                }
3993
 
 
3994
 
 
3995
 
            }
3996
 
 
3997
 
            user_data = callback_data->data;
3998
 
            on_complete = callback_data->on_complete;
3999
 
 
4000
 
 
4001
 
                    if(ret_node != NULL)
4002
 
                    {
4003
 
                        ret_val = adb_DetachVolumeResponse_create(env);
4004
 
 
4005
 
                        if(adb_DetachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
4006
 
                        {
4007
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
4008
 
                                                                    "This should be due to an invalid XML");
4009
 
                            adb_DetachVolumeResponse_free(ret_val, env);
4010
 
                            ret_val = NULL;
4011
 
                        }
4012
 
                     }
4013
 
                     else
4014
 
                     {
4015
 
                         ret_val = NULL;
4016
 
                     }
4017
 
                     status = on_complete(env, ret_val, user_data);
4018
 
 
4019
 
 
4020
 
            if(callback_data)
4021
 
            {
4022
 
                AXIS2_FREE(env->allocator, callback_data);
4023
 
            }
4024
 
            return status;
4025
 
        }
4026
 
 
4027
 
        /**
4028
 
          * auto generated method signature for asynchronous invocations
4029
 
          * for "DetachVolume|http://eucalyptus.ucsb.edu/" operation.
4030
 
 
4031
 
          *
4032
 
          * @param _detachVolume
4033
 
          * @param on_complete callback to handle on complete
4034
 
          * @param on_error callback to handle on error
4035
 
          */
4036
 
         void axis2_stub_start_op_EucalyptusCC_DetachVolume( axis2_stub_t *stub, const axutil_env_t *env,
4037
 
                                                    adb_DetachVolume_t* _detachVolume,
4038
 
                                                  void *user_data,
4039
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_DetachVolumeResponse_t* _detachVolumeResponse, void *data) ,
4040
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
4041
 
         {
4042
 
 
4043
 
            axis2_callback_t *callback = NULL;
4044
 
 
4045
 
            axis2_svc_client_t *svc_client = NULL;
4046
 
            axis2_options_t *options = NULL;
4047
 
 
4048
 
            const axis2_char_t *soap_action = NULL;
4049
 
            axiom_node_t *payload = NULL;
4050
 
 
4051
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
4052
 
 
4053
 
            axutil_string_t *soap_act = NULL;
4054
 
 
4055
 
 
4056
 
            struct axis2_stub_EucalyptusCC_DetachVolume_callback_data *callback_data;
4057
 
 
4058
 
            callback_data = (struct axis2_stub_EucalyptusCC_DetachVolume_callback_data*) AXIS2_MALLOC(env->allocator,
4059
 
                                    sizeof(struct axis2_stub_EucalyptusCC_DetachVolume_callback_data));
4060
 
            if(NULL == callback_data)
4061
 
            {
4062
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
4063
 
                return;
4064
 
            }
4065
 
 
4066
 
 
4067
 
                       payload = adb_DetachVolume_serialize(_detachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
4068
 
 
4069
 
 
4070
 
 
4071
 
 
4072
 
            options = axis2_stub_get_options( stub, env);
4073
 
            if (NULL == options)
4074
 
            {
4075
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
4076
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
4077
 
              return;
4078
 
            }
4079
 
            svc_client = axis2_stub_get_svc_client (stub, env);
4080
 
            soap_action =axis2_options_get_action (options, env);
4081
 
            if (NULL == soap_action)
4082
 
            {
4083
 
              is_soap_act_set = AXIS2_FALSE;
4084
 
              soap_action = "EucalyptusCC#DetachVolume";
4085
 
 
4086
 
              soap_act = axutil_string_create(env, "EucalyptusCC#DetachVolume");
4087
 
              axis2_options_set_soap_action(options, env, soap_act);
4088
 
 
4089
 
              axis2_options_set_action( options, env, soap_action);
4090
 
            }
4091
 
 
4092
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
4093
 
 
4094
 
 
4095
 
            callback = axis2_callback_create(env);
4096
 
            /* Set our on_complete fucntion pointer to the callback object */
4097
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_DetachVolume);
4098
 
            /* Set our on_error function pointer to the callback object */
4099
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_DetachVolume);
4100
 
 
4101
 
            callback_data-> data = user_data;
4102
 
            callback_data-> on_complete = on_complete;
4103
 
            callback_data-> on_error = on_error;
4104
 
 
4105
 
            axis2_callback_set_data(callback, (void*)callback_data);
4106
 
 
4107
 
            /* Send request */
4108
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
4109
 
 
4110
 
            if (!is_soap_act_set)
4111
 
            {
4112
 
 
4113
 
              axis2_options_set_soap_action(options, env, NULL);
4114
 
 
4115
 
              axis2_options_set_action(options, env, NULL);
4116
 
            }
4117
 
         }
4118
 
 
4119
 
 
4120
 
 
4121
 
        struct axis2_stub_EucalyptusCC_AttachVolume_callback_data
4122
 
        {
4123
 
            void *data;
4124
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data);
4125
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
4126
 
        };
4127
 
 
4128
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_AttachVolume(axis2_callback_t *callback, const axutil_env_t *env, int exception)
4129
 
        {
4130
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
4131
 
            struct axis2_stub_EucalyptusCC_AttachVolume_callback_data* callback_data = NULL;
4132
 
            void *user_data = NULL;
4133
 
 
4134
 
            axis2_status_t status;
4135
 
 
4136
 
            callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*)axis2_callback_get_data(callback);
4137
 
 
4138
 
            user_data = callback_data->data;
4139
 
            on_error = callback_data->on_error;
4140
 
 
4141
 
            status = on_error(env, exception, user_data);
4142
 
 
4143
 
            if(callback_data)
4144
 
            {
4145
 
                AXIS2_FREE(env->allocator, callback_data);
4146
 
            }
4147
 
            return status;
4148
 
        }
4149
 
 
4150
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_AttachVolume(axis2_callback_t *callback, const axutil_env_t *env)
4151
 
        {
4152
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data);
4153
 
            struct axis2_stub_EucalyptusCC_AttachVolume_callback_data* callback_data = NULL;
4154
 
            void *user_data = NULL;
4155
 
            axis2_status_t status = AXIS2_SUCCESS;
4156
 
 
4157
 
            adb_AttachVolumeResponse_t* ret_val = NULL;
4158
 
 
4159
 
 
4160
 
            axiom_node_t *ret_node = NULL;
4161
 
            axiom_soap_envelope_t *soap_envelope = NULL;
4162
 
 
4163
 
 
4164
 
 
4165
 
            callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*)axis2_callback_get_data(callback);
4166
 
 
4167
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
4168
 
            if(soap_envelope)
4169
 
            {
4170
 
                axiom_soap_body_t *soap_body;
4171
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
4172
 
                if(soap_body)
4173
 
                {
4174
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
4175
 
                    if(body_node)
4176
 
                    {
4177
 
                        ret_node = axiom_node_get_first_child(body_node, env);
4178
 
                    }
4179
 
                }
4180
 
 
4181
 
 
4182
 
            }
4183
 
 
4184
 
            user_data = callback_data->data;
4185
 
            on_complete = callback_data->on_complete;
4186
 
 
4187
 
 
4188
 
                    if(ret_node != NULL)
4189
 
                    {
4190
 
                        ret_val = adb_AttachVolumeResponse_create(env);
4191
 
 
4192
 
                        if(adb_AttachVolumeResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
4193
 
                        {
4194
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
4195
 
                                                                    "This should be due to an invalid XML");
4196
 
                            adb_AttachVolumeResponse_free(ret_val, env);
4197
 
                            ret_val = NULL;
4198
 
                        }
4199
 
                     }
4200
 
                     else
4201
 
                     {
4202
 
                         ret_val = NULL;
4203
 
                     }
4204
 
                     status = on_complete(env, ret_val, user_data);
4205
 
 
4206
 
 
4207
 
            if(callback_data)
4208
 
            {
4209
 
                AXIS2_FREE(env->allocator, callback_data);
4210
 
            }
4211
 
            return status;
4212
 
        }
4213
 
 
4214
 
        /**
4215
 
          * auto generated method signature for asynchronous invocations
4216
 
          * for "AttachVolume|http://eucalyptus.ucsb.edu/" operation.
4217
 
 
4218
 
          *
4219
 
          * @param _attachVolume
4220
 
          * @param on_complete callback to handle on complete
4221
 
          * @param on_error callback to handle on error
4222
 
          */
4223
 
         void axis2_stub_start_op_EucalyptusCC_AttachVolume( axis2_stub_t *stub, const axutil_env_t *env,
4224
 
                                                    adb_AttachVolume_t* _attachVolume,
4225
 
                                                  void *user_data,
4226
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_AttachVolumeResponse_t* _attachVolumeResponse, void *data) ,
4227
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
4228
 
         {
4229
 
 
4230
 
            axis2_callback_t *callback = NULL;
4231
 
 
4232
 
            axis2_svc_client_t *svc_client = NULL;
4233
 
            axis2_options_t *options = NULL;
4234
 
 
4235
 
            const axis2_char_t *soap_action = NULL;
4236
 
            axiom_node_t *payload = NULL;
4237
 
 
4238
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
4239
 
 
4240
 
            axutil_string_t *soap_act = NULL;
4241
 
 
4242
 
 
4243
 
            struct axis2_stub_EucalyptusCC_AttachVolume_callback_data *callback_data;
4244
 
 
4245
 
            callback_data = (struct axis2_stub_EucalyptusCC_AttachVolume_callback_data*) AXIS2_MALLOC(env->allocator,
4246
 
                                    sizeof(struct axis2_stub_EucalyptusCC_AttachVolume_callback_data));
4247
 
            if(NULL == callback_data)
4248
 
            {
4249
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
4250
 
                return;
4251
 
            }
4252
 
 
4253
 
 
4254
 
                       payload = adb_AttachVolume_serialize(_attachVolume, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
4255
 
 
4256
 
 
4257
 
 
4258
 
 
4259
 
            options = axis2_stub_get_options( stub, env);
4260
 
            if (NULL == options)
4261
 
            {
4262
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
4263
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
4264
 
              return;
4265
 
            }
4266
 
            svc_client = axis2_stub_get_svc_client (stub, env);
4267
 
            soap_action =axis2_options_get_action (options, env);
4268
 
            if (NULL == soap_action)
4269
 
            {
4270
 
              is_soap_act_set = AXIS2_FALSE;
4271
 
              soap_action = "EucalyptusCC#AttachVolume";
4272
 
 
4273
 
              soap_act = axutil_string_create(env, "EucalyptusCC#AttachVolume");
4274
 
              axis2_options_set_soap_action(options, env, soap_act);
4275
 
 
4276
 
              axis2_options_set_action( options, env, soap_action);
4277
 
            }
4278
 
 
4279
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
4280
 
 
4281
 
 
4282
 
            callback = axis2_callback_create(env);
4283
 
            /* Set our on_complete fucntion pointer to the callback object */
4284
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_AttachVolume);
4285
 
            /* Set our on_error function pointer to the callback object */
4286
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_AttachVolume);
4287
 
 
4288
 
            callback_data-> data = user_data;
4289
 
            callback_data-> on_complete = on_complete;
4290
 
            callback_data-> on_error = on_error;
4291
 
 
4292
 
            axis2_callback_set_data(callback, (void*)callback_data);
4293
 
 
4294
 
            /* Send request */
4295
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
4296
 
 
4297
 
            if (!is_soap_act_set)
4298
 
            {
4299
 
 
4300
 
              axis2_options_set_soap_action(options, env, NULL);
4301
 
 
4302
 
              axis2_options_set_action(options, env, NULL);
4303
 
            }
4304
 
         }
4305
 
 
4306
 
 
4307
 
 
4308
 
        struct axis2_stub_EucalyptusCC_RunInstances_callback_data
4309
 
        {
4310
 
            void *data;
4311
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data);
4312
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data);
4313
 
        };
4314
 
 
4315
 
        static axis2_status_t AXIS2_CALL axis2_stub_on_error_EucalyptusCC_RunInstances(axis2_callback_t *callback, const axutil_env_t *env, int exception)
4316
 
        {
4317
 
            axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int, void *data);
4318
 
            struct axis2_stub_EucalyptusCC_RunInstances_callback_data* callback_data = NULL;
4319
 
            void *user_data = NULL;
4320
 
 
4321
 
            axis2_status_t status;
4322
 
 
4323
 
            callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*)axis2_callback_get_data(callback);
4324
 
 
4325
 
            user_data = callback_data->data;
4326
 
            on_error = callback_data->on_error;
4327
 
 
4328
 
            status = on_error(env, exception, user_data);
4329
 
 
4330
 
            if(callback_data)
4331
 
            {
4332
 
                AXIS2_FREE(env->allocator, callback_data);
4333
 
            }
4334
 
            return status;
4335
 
        }
4336
 
 
4337
 
        axis2_status_t AXIS2_CALL axis2_stub_on_complete_EucalyptusCC_RunInstances(axis2_callback_t *callback, const axutil_env_t *env)
4338
 
        {
4339
 
            axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data);
4340
 
            struct axis2_stub_EucalyptusCC_RunInstances_callback_data* callback_data = NULL;
4341
 
            void *user_data = NULL;
4342
 
            axis2_status_t status = AXIS2_SUCCESS;
4343
 
 
4344
 
            adb_RunInstancesResponse_t* ret_val = NULL;
4345
 
 
4346
 
 
4347
 
            axiom_node_t *ret_node = NULL;
4348
 
            axiom_soap_envelope_t *soap_envelope = NULL;
4349
 
 
4350
 
 
4351
 
 
4352
 
            callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*)axis2_callback_get_data(callback);
4353
 
 
4354
 
            soap_envelope = axis2_callback_get_envelope(callback, env);
4355
 
            if(soap_envelope)
4356
 
            {
4357
 
                axiom_soap_body_t *soap_body;
4358
 
                soap_body = axiom_soap_envelope_get_body(soap_envelope, env);
4359
 
                if(soap_body)
4360
 
                {
4361
 
                    axiom_node_t *body_node = axiom_soap_body_get_base_node(soap_body, env);
4362
 
                    if(body_node)
4363
 
                    {
4364
 
                        ret_node = axiom_node_get_first_child(body_node, env);
4365
 
                    }
4366
 
                }
4367
 
 
4368
 
 
4369
 
            }
4370
 
 
4371
 
            user_data = callback_data->data;
4372
 
            on_complete = callback_data->on_complete;
4373
 
 
4374
 
 
4375
 
                    if(ret_node != NULL)
4376
 
                    {
4377
 
                        ret_val = adb_RunInstancesResponse_create(env);
4378
 
 
4379
 
                        if(adb_RunInstancesResponse_deserialize(ret_val, env, &ret_node, NULL, AXIS2_FALSE ) == AXIS2_FAILURE)
4380
 
                        {
4381
 
                            AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "NULL returnted from the LendResponse_deserialize: "
4382
 
                                                                    "This should be due to an invalid XML");
4383
 
                            adb_RunInstancesResponse_free(ret_val, env);
4384
 
                            ret_val = NULL;
4385
 
                        }
4386
 
                     }
4387
 
                     else
4388
 
                     {
4389
 
                         ret_val = NULL;
4390
 
                     }
4391
 
                     status = on_complete(env, ret_val, user_data);
4392
 
 
4393
 
 
4394
 
            if(callback_data)
4395
 
            {
4396
 
                AXIS2_FREE(env->allocator, callback_data);
4397
 
            }
4398
 
            return status;
4399
 
        }
4400
 
 
4401
 
        /**
4402
 
          * auto generated method signature for asynchronous invocations
4403
 
          * for "RunInstances|http://eucalyptus.ucsb.edu/" operation.
4404
 
 
4405
 
          *
4406
 
          * @param _runInstances
4407
 
          * @param on_complete callback to handle on complete
4408
 
          * @param on_error callback to handle on error
4409
 
          */
4410
 
         void axis2_stub_start_op_EucalyptusCC_RunInstances( axis2_stub_t *stub, const axutil_env_t *env,
4411
 
                                                    adb_RunInstances_t* _runInstances,
4412
 
                                                  void *user_data,
4413
 
                                                  axis2_status_t ( AXIS2_CALL *on_complete ) (const axutil_env_t *, adb_RunInstancesResponse_t* _runInstancesResponse, void *data) ,
4414
 
                                                  axis2_status_t ( AXIS2_CALL *on_error ) (const axutil_env_t *, int exception, void *data) )
4415
 
         {
4416
 
 
4417
 
            axis2_callback_t *callback = NULL;
4418
 
 
4419
 
            axis2_svc_client_t *svc_client = NULL;
4420
 
            axis2_options_t *options = NULL;
4421
 
 
4422
 
            const axis2_char_t *soap_action = NULL;
4423
 
            axiom_node_t *payload = NULL;
4424
 
 
4425
 
            axis2_bool_t is_soap_act_set = AXIS2_TRUE;
4426
 
 
4427
 
            axutil_string_t *soap_act = NULL;
4428
 
 
4429
 
 
4430
 
            struct axis2_stub_EucalyptusCC_RunInstances_callback_data *callback_data;
4431
 
 
4432
 
            callback_data = (struct axis2_stub_EucalyptusCC_RunInstances_callback_data*) AXIS2_MALLOC(env->allocator,
4433
 
                                    sizeof(struct axis2_stub_EucalyptusCC_RunInstances_callback_data));
4434
 
            if(NULL == callback_data)
4435
 
            {
4436
 
                AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "Can not allocate memeory for the callback data structures");
4437
 
                return;
4438
 
            }
4439
 
 
4440
 
 
4441
 
                       payload = adb_RunInstances_serialize(_runInstances, env, NULL, NULL, AXIS2_TRUE, NULL, NULL);
4442
 
 
4443
 
 
4444
 
 
4445
 
 
4446
 
            options = axis2_stub_get_options( stub, env);
4447
 
            if (NULL == options)
4448
 
            {
4449
 
              AXIS2_ERROR_SET(env->error, AXIS2_ERROR_INVALID_NULL_PARAM, AXIS2_FAILURE);
4450
 
              AXIS2_LOG_ERROR( env->log, AXIS2_LOG_SI, "options is null in stub");
4451
 
              return;
4452
 
            }
4453
 
            svc_client = axis2_stub_get_svc_client (stub, env);
4454
 
            soap_action =axis2_options_get_action (options, env);
4455
 
            if (NULL == soap_action)
4456
 
            {
4457
 
              is_soap_act_set = AXIS2_FALSE;
4458
 
              soap_action = "EucalyptusCC#RunInstances";
4459
 
 
4460
 
              soap_act = axutil_string_create(env, "EucalyptusCC#RunInstances");
4461
 
              axis2_options_set_soap_action(options, env, soap_act);
4462
 
 
4463
 
              axis2_options_set_action( options, env, soap_action);
4464
 
            }
4465
 
 
4466
 
            axis2_options_set_soap_version(options, env, AXIOM_SOAP11);
4467
 
 
4468
 
 
4469
 
            callback = axis2_callback_create(env);
4470
 
            /* Set our on_complete fucntion pointer to the callback object */
4471
 
            axis2_callback_set_on_complete(callback, axis2_stub_on_complete_EucalyptusCC_RunInstances);
4472
 
            /* Set our on_error function pointer to the callback object */
4473
 
            axis2_callback_set_on_error(callback, axis2_stub_on_error_EucalyptusCC_RunInstances);
4474
 
 
4475
 
            callback_data-> data = user_data;
4476
 
            callback_data-> on_complete = on_complete;
4477
 
            callback_data-> on_error = on_error;
4478
 
 
4479
 
            axis2_callback_set_data(callback, (void*)callback_data);
4480
 
 
4481
 
            /* Send request */
4482
 
            axis2_svc_client_send_receive_non_blocking(svc_client, env, payload, callback);
4483
 
 
4484
 
            if (!is_soap_act_set)
4485
 
            {
4486
 
 
4487
 
              axis2_options_set_soap_action(options, env, NULL);
4488
 
 
4489
 
              axis2_options_set_action(options, env, NULL);
4490
 
            }
4491
 
         }
4492
 
 
4493
 
 
4494
 
 
4495
 
 
4496
 
     /**
4497
 
      * function to free any soap input headers
4498
 
      */
4499
 
 
4500
 
 
4501
 
 
4502
 
     /**
4503
 
      * function to free any soap output headers
4504
 
      */
4505
 
 
4506