~davewalker/ubuntu/maverick/eucalyptus/maverick_1.7

« back to all changes in this revision

Viewing changes to cluster/generated/adb_ncDetachVolumeResponseType.c

  • Committer: Dave Walker (Daviey)
  • Date: 2010-06-14 12:48:44 UTC
  • Revision ID: davewalker@ubuntu.com-20100614124844-ivbfj072y90e1hdi
* Switch to dpkg-source 3.0 (quilt) format
  - Extracted the following patches from our bzr branch, into flat patches.
* debian/build-jars: Replaced asm2 with asm3-all to match new groovy dependency.
* Revert: node/handlers_kvm.c: fix console bug (was only showing first 64K).
  (LP: #566793).
* clc/modules/www/src/main/java/edu/ucsb/eucalyptus/admin/server/EucalyptusWebBackendImpl.java:
  - fix user enumeration and account brute force. Courtesy of Chris Cheney. (LP: #579942)
* debian/eucalyptus-sc.upstart: Bump maximum number of loop devices for SC to 512. (LP: #586134)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
        /**
 
4
         * adb_ncDetachVolumeResponseType.c
 
5
         *
 
6
         * This file was auto-generated from WSDL
 
7
         * by the Apache Axis2/C version: SNAPSHOT  Built on : Mar 10, 2008 (08:35:52 GMT+00:00)
 
8
         */
 
9
 
 
10
        #include "adb_ncDetachVolumeResponseType.h"
 
11
 
 
12
                /*
 
13
                 * This type was generated from the piece of schema that had
 
14
                 * name = ncDetachVolumeResponseType
 
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
 
16
                 * Namespace Prefix = ns1
 
17
                 */
 
18
 
 
19
 
 
20
 
 
21
        struct adb_ncDetachVolumeResponseType
 
22
        {
 
23
            axis2_char_t* property_correlationId;
 
24
 
 
25
 
 
26
                axis2_bool_t is_valid_correlationId;
 
27
 
 
28
 
 
29
            axis2_char_t* property_userId;
 
30
 
 
31
 
 
32
                axis2_bool_t is_valid_userId;
 
33
 
 
34
 
 
35
            axis2_bool_t property_return;
 
36
 
 
37
 
 
38
                axis2_bool_t is_valid_return;
 
39
 
 
40
 
 
41
            int property_statusMessage;
 
42
 
 
43
 
 
44
                axis2_bool_t is_valid_statusMessage;
 
45
 
 
46
 
 
47
 
 
48
        };
 
49
 
 
50
 
 
51
       /************************* Private Function prototypes ********************************/
 
52
 
 
53
 
 
54
                axis2_status_t AXIS2_CALL
 
55
                adb_ncDetachVolumeResponseType_set_correlationId_nil(
 
56
                        adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
57
                        const axutil_env_t *env);
 
58
 
 
59
 
 
60
                axis2_status_t AXIS2_CALL
 
61
                adb_ncDetachVolumeResponseType_set_userId_nil(
 
62
                        adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
63
                        const axutil_env_t *env);
 
64
 
 
65
 
 
66
                axis2_status_t AXIS2_CALL
 
67
                adb_ncDetachVolumeResponseType_set_return_nil(
 
68
                        adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
69
                        const axutil_env_t *env);
 
70
 
 
71
 
 
72
 
 
73
       /************************* Function Implmentations ********************************/
 
74
        adb_ncDetachVolumeResponseType_t* AXIS2_CALL
 
75
        adb_ncDetachVolumeResponseType_create(
 
76
            const axutil_env_t *env)
 
77
        {
 
78
            adb_ncDetachVolumeResponseType_t *_ncDetachVolumeResponseType = NULL;
 
79
 
 
80
            AXIS2_ENV_CHECK(env, NULL);
 
81
 
 
82
            _ncDetachVolumeResponseType = (adb_ncDetachVolumeResponseType_t *) AXIS2_MALLOC(env->
 
83
                allocator, sizeof(adb_ncDetachVolumeResponseType_t));
 
84
 
 
85
            if(NULL == _ncDetachVolumeResponseType)
 
86
            {
 
87
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
 
88
                return NULL;
 
89
            }
 
90
 
 
91
            memset(_ncDetachVolumeResponseType, 0, sizeof(adb_ncDetachVolumeResponseType_t));
 
92
 
 
93
            _ncDetachVolumeResponseType->property_correlationId  = NULL;
 
94
                  _ncDetachVolumeResponseType->is_valid_correlationId  = AXIS2_FALSE;
 
95
            _ncDetachVolumeResponseType->property_userId  = NULL;
 
96
                  _ncDetachVolumeResponseType->is_valid_userId  = AXIS2_FALSE;
 
97
            _ncDetachVolumeResponseType->is_valid_return  = AXIS2_FALSE;
 
98
            _ncDetachVolumeResponseType->is_valid_statusMessage  = AXIS2_FALSE;
 
99
 
 
100
 
 
101
            return _ncDetachVolumeResponseType;
 
102
        }
 
103
 
 
104
        axis2_status_t AXIS2_CALL
 
105
        adb_ncDetachVolumeResponseType_free (
 
106
                adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
107
                const axutil_env_t *env)
 
108
        {
 
109
 
 
110
 
 
111
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
112
            AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
113
 
 
114
            adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env);
 
115
            adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env);
 
116
            adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env);
 
117
            adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env);
 
118
 
 
119
 
 
120
            if(_ncDetachVolumeResponseType)
 
121
            {
 
122
                AXIS2_FREE(env->allocator, _ncDetachVolumeResponseType);
 
123
                _ncDetachVolumeResponseType = NULL;
 
124
            }
 
125
            return AXIS2_SUCCESS;
 
126
        }
 
127
 
 
128
 
 
129
 
 
130
 
 
131
        axis2_status_t AXIS2_CALL
 
132
        adb_ncDetachVolumeResponseType_deserialize(
 
133
                adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
134
                const axutil_env_t *env,
 
135
                axiom_node_t **dp_parent,
 
136
                axis2_bool_t *dp_is_early_node_valid,
 
137
                axis2_bool_t dont_care_minoccurs)
 
138
        {
 
139
          axiom_node_t *parent = *dp_parent;
 
140
 
 
141
          axis2_status_t status = AXIS2_SUCCESS;
 
142
 
 
143
             axis2_char_t* text_value = NULL;
 
144
             axutil_qname_t *qname = NULL;
 
145
 
 
146
            axutil_qname_t *element_qname = NULL;
 
147
 
 
148
               axiom_node_t *first_node = NULL;
 
149
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
 
150
               axiom_node_t *current_node = NULL;
 
151
               axiom_element_t *current_element = NULL;
 
152
 
 
153
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
154
            AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
155
 
 
156
 
 
157
 
 
158
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
 
159
              {
 
160
                  parent = axiom_node_get_next_sibling(parent, env);
 
161
              }
 
162
              if (NULL == parent)
 
163
              {
 
164
                /* This should be checked before everything */
 
165
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
 
166
                            "Failed in building adb object for ncDetachVolumeResponseType : "
 
167
                            "NULL elemenet can not be passed to deserialize");
 
168
                return AXIS2_FAILURE;
 
169
              }
 
170
 
 
171
 
 
172
                      first_node = axiom_node_get_first_child(parent, env);
 
173
 
 
174
 
 
175
 
 
176
 
 
177
                     /*
 
178
                      * building correlationId element
 
179
                      */
 
180
 
 
181
 
 
182
 
 
183
                                   current_node = first_node;
 
184
                                   is_early_node_valid = AXIS2_FALSE;
 
185
 
 
186
 
 
187
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
188
                                    {
 
189
                                        current_node = axiom_node_get_next_sibling(current_node, env);
 
190
                                    }
 
191
                                    if(current_node != NULL)
 
192
                                    {
 
193
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
194
                                        qname = axiom_element_get_qname(current_element, env, current_node);
 
195
                                    }
 
196
 
 
197
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
 
198
 
 
199
 
 
200
                           if (
 
201
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
202
                           {
 
203
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
204
                              {
 
205
                                is_early_node_valid = AXIS2_TRUE;
 
206
                              }
 
207
 
 
208
 
 
209
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
210
                                      if(text_value != NULL)
 
211
                                      {
 
212
                                            status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env,
 
213
                                                               text_value);
 
214
                                      }
 
215
 
 
216
                                      else
 
217
                                      {
 
218
                                            /*
 
219
                                             * axis2_qname_t *qname = NULL;
 
220
                                             * axiom_attribute_t *the_attri = NULL;
 
221
                                             *
 
222
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
223
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
224
                                             */
 
225
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
226
 
 
227
                                            axiom_attribute_t *the_attri = NULL;
 
228
                                            axis2_char_t *attrib_text = NULL;
 
229
                                            axutil_hash_t *attribute_hash = NULL;
 
230
 
 
231
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
232
 
 
233
                                            attrib_text = NULL;
 
234
                                            if(attribute_hash)
 
235
                                            {
 
236
                                                 axutil_hash_index_t *hi;
 
237
                                                 void *val;
 
238
                                                 const void *key;
 
239
 
 
240
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
241
                                                 {
 
242
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
243
 
 
244
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
245
                                                     {
 
246
                                                         the_attri = (axiom_attribute_t*)val;
 
247
                                                         break;
 
248
                                                     }
 
249
                                                 }
 
250
                                            }
 
251
 
 
252
                                            if(the_attri)
 
253
                                            {
 
254
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
255
                                            }
 
256
                                            else
 
257
                                            {
 
258
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
259
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
260
                                            }
 
261
 
 
262
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
263
                                            {
 
264
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
 
265
                                                status = AXIS2_FAILURE;
 
266
                                            }
 
267
                                            else
 
268
                                            {
 
269
                                                /* after all, we found this is a empty string */
 
270
                                                status = adb_ncDetachVolumeResponseType_set_correlationId(_ncDetachVolumeResponseType, env,
 
271
                                                                   "");
 
272
                                            }
 
273
                                      }
 
274
 
 
275
                                 if(AXIS2_FAILURE ==  status)
 
276
                                 {
 
277
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
 
278
                                     if(element_qname)
 
279
                                     {
 
280
                                         axutil_qname_free(element_qname, env);
 
281
                                     }
 
282
                                     return AXIS2_FAILURE;
 
283
                                 }
 
284
                              }
 
285
 
 
286
                  if(element_qname)
 
287
                  {
 
288
                     axutil_qname_free(element_qname, env);
 
289
                     element_qname = NULL;
 
290
                  }
 
291
 
 
292
 
 
293
 
 
294
                     /*
 
295
                      * building userId element
 
296
                      */
 
297
 
 
298
 
 
299
 
 
300
                                    /*
 
301
                                     * because elements are ordered this works fine
 
302
                                     */
 
303
 
 
304
 
 
305
                                   if(current_node != NULL && is_early_node_valid)
 
306
                                   {
 
307
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
308
 
 
309
 
 
310
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
311
                                        {
 
312
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
313
                                        }
 
314
                                        if(current_node != NULL)
 
315
                                        {
 
316
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
317
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
318
                                        }
 
319
 
 
320
                                   }
 
321
                                   is_early_node_valid = AXIS2_FALSE;
 
322
 
 
323
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
 
324
 
 
325
 
 
326
                           if (
 
327
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
328
                           {
 
329
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
330
                              {
 
331
                                is_early_node_valid = AXIS2_TRUE;
 
332
                              }
 
333
 
 
334
 
 
335
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
336
                                      if(text_value != NULL)
 
337
                                      {
 
338
                                            status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env,
 
339
                                                               text_value);
 
340
                                      }
 
341
 
 
342
                                      else
 
343
                                      {
 
344
                                            /*
 
345
                                             * axis2_qname_t *qname = NULL;
 
346
                                             * axiom_attribute_t *the_attri = NULL;
 
347
                                             *
 
348
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
349
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
350
                                             */
 
351
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
352
 
 
353
                                            axiom_attribute_t *the_attri = NULL;
 
354
                                            axis2_char_t *attrib_text = NULL;
 
355
                                            axutil_hash_t *attribute_hash = NULL;
 
356
 
 
357
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
358
 
 
359
                                            attrib_text = NULL;
 
360
                                            if(attribute_hash)
 
361
                                            {
 
362
                                                 axutil_hash_index_t *hi;
 
363
                                                 void *val;
 
364
                                                 const void *key;
 
365
 
 
366
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
 
367
                                                 {
 
368
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
369
 
 
370
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
371
                                                     {
 
372
                                                         the_attri = (axiom_attribute_t*)val;
 
373
                                                         break;
 
374
                                                     }
 
375
                                                 }
 
376
                                            }
 
377
 
 
378
                                            if(the_attri)
 
379
                                            {
 
380
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
381
                                            }
 
382
                                            else
 
383
                                            {
 
384
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
385
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
386
                                            }
 
387
 
 
388
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
389
                                            {
 
390
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
 
391
                                                status = AXIS2_FAILURE;
 
392
                                            }
 
393
                                            else
 
394
                                            {
 
395
                                                /* after all, we found this is a empty string */
 
396
                                                status = adb_ncDetachVolumeResponseType_set_userId(_ncDetachVolumeResponseType, env,
 
397
                                                                   "");
 
398
                                            }
 
399
                                      }
 
400
 
 
401
                                 if(AXIS2_FAILURE ==  status)
 
402
                                 {
 
403
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
 
404
                                     if(element_qname)
 
405
                                     {
 
406
                                         axutil_qname_free(element_qname, env);
 
407
                                     }
 
408
                                     return AXIS2_FAILURE;
 
409
                                 }
 
410
                              }
 
411
 
 
412
                  if(element_qname)
 
413
                  {
 
414
                     axutil_qname_free(element_qname, env);
 
415
                     element_qname = NULL;
 
416
                  }
 
417
 
 
418
 
 
419
 
 
420
                     /*
 
421
                      * building return element
 
422
                      */
 
423
 
 
424
 
 
425
 
 
426
                                    /*
 
427
                                     * because elements are ordered this works fine
 
428
                                     */
 
429
 
 
430
 
 
431
                                   if(current_node != NULL && is_early_node_valid)
 
432
                                   {
 
433
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
434
 
 
435
 
 
436
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
437
                                        {
 
438
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
439
                                        }
 
440
                                        if(current_node != NULL)
 
441
                                        {
 
442
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
443
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
444
                                        }
 
445
 
 
446
                                   }
 
447
                                   is_early_node_valid = AXIS2_FALSE;
 
448
 
 
449
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
 
450
 
 
451
 
 
452
                           if (
 
453
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
454
                           {
 
455
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
456
                              {
 
457
                                is_early_node_valid = AXIS2_TRUE;
 
458
                              }
 
459
 
 
460
 
 
461
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
462
                                      if(text_value != NULL)
 
463
                                      {
 
464
                                            if (!axutil_strcasecmp(text_value , "true"))
 
465
                                            {
 
466
                                                status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env,
 
467
                                                                 AXIS2_TRUE);
 
468
                                            }
 
469
                                            else
 
470
                                            {
 
471
                                                status = adb_ncDetachVolumeResponseType_set_return(_ncDetachVolumeResponseType, env,
 
472
                                                                      AXIS2_FALSE);
 
473
                                            }
 
474
                                      }
 
475
 
 
476
                                      else
 
477
                                      {
 
478
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
 
479
                                          status = AXIS2_FAILURE;
 
480
                                      }
 
481
 
 
482
                                 if(AXIS2_FAILURE ==  status)
 
483
                                 {
 
484
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
 
485
                                     if(element_qname)
 
486
                                     {
 
487
                                         axutil_qname_free(element_qname, env);
 
488
                                     }
 
489
                                     return AXIS2_FAILURE;
 
490
                                 }
 
491
                              }
 
492
 
 
493
                  if(element_qname)
 
494
                  {
 
495
                     axutil_qname_free(element_qname, env);
 
496
                     element_qname = NULL;
 
497
                  }
 
498
 
 
499
 
 
500
 
 
501
                     /*
 
502
                      * building statusMessage element
 
503
                      */
 
504
 
 
505
 
 
506
 
 
507
                                    /*
 
508
                                     * because elements are ordered this works fine
 
509
                                     */
 
510
 
 
511
 
 
512
                                   if(current_node != NULL && is_early_node_valid)
 
513
                                   {
 
514
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
515
 
 
516
 
 
517
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
518
                                        {
 
519
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
520
                                        }
 
521
                                        if(current_node != NULL)
 
522
                                        {
 
523
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
524
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
525
                                        }
 
526
 
 
527
                                   }
 
528
                                   is_early_node_valid = AXIS2_FALSE;
 
529
 
 
530
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
 
531
 
 
532
 
 
533
                           if (
 
534
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
535
                           {
 
536
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
537
                              {
 
538
                                is_early_node_valid = AXIS2_TRUE;
 
539
                              }
 
540
 
 
541
 
 
542
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
543
                                      if(text_value != NULL)
 
544
                                      {
 
545
                                            status = adb_ncDetachVolumeResponseType_set_statusMessage(_ncDetachVolumeResponseType, env,
 
546
                                                                   atoi(text_value));
 
547
                                      }
 
548
 
 
549
                                 if(AXIS2_FAILURE ==  status)
 
550
                                 {
 
551
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
 
552
                                     if(element_qname)
 
553
                                     {
 
554
                                         axutil_qname_free(element_qname, env);
 
555
                                     }
 
556
                                     return AXIS2_FAILURE;
 
557
                                 }
 
558
                              }
 
559
 
 
560
                  if(element_qname)
 
561
                  {
 
562
                     axutil_qname_free(element_qname, env);
 
563
                     element_qname = NULL;
 
564
                  }
 
565
 
 
566
          return status;
 
567
       }
 
568
 
 
569
          axis2_bool_t AXIS2_CALL
 
570
          adb_ncDetachVolumeResponseType_is_particle()
 
571
          {
 
572
 
 
573
                 return AXIS2_FALSE;
 
574
 
 
575
          }
 
576
 
 
577
 
 
578
          void AXIS2_CALL
 
579
          adb_ncDetachVolumeResponseType_declare_parent_namespaces(
 
580
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
581
                    const axutil_env_t *env, axiom_element_t *parent_element,
 
582
                    axutil_hash_t *namespaces, int *next_ns_index)
 
583
          {
 
584
 
 
585
                  /* Here this is an empty function, Nothing to declare */
 
586
 
 
587
          }
 
588
 
 
589
 
 
590
 
 
591
        axiom_node_t* AXIS2_CALL
 
592
        adb_ncDetachVolumeResponseType_serialize(
 
593
                adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
594
                const axutil_env_t *env, axiom_node_t *parent, axiom_element_t *parent_element, int parent_tag_closed, axutil_hash_t *namespaces, int *next_ns_index)
 
595
        {
 
596
 
 
597
 
 
598
             axis2_char_t *string_to_stream;
 
599
 
 
600
 
 
601
         axiom_node_t *current_node = NULL;
 
602
         int tag_closed = 0;
 
603
 
 
604
 
 
605
 
 
606
                axiom_namespace_t *ns1 = NULL;
 
607
 
 
608
                axis2_char_t *qname_uri = NULL;
 
609
                axis2_char_t *qname_prefix = NULL;
 
610
                axis2_char_t *p_prefix = NULL;
 
611
                axis2_bool_t ns_already_defined;
 
612
 
 
613
                    axis2_char_t *text_value_1;
 
614
                    axis2_char_t *text_value_1_temp;
 
615
 
 
616
                    axis2_char_t *text_value_2;
 
617
                    axis2_char_t *text_value_2_temp;
 
618
 
 
619
                    axis2_char_t text_value_3[64];
 
620
 
 
621
                    axis2_char_t text_value_4[64];
 
622
 
 
623
               axis2_char_t *start_input_str = NULL;
 
624
               axis2_char_t *end_input_str = NULL;
 
625
               unsigned int start_input_str_len = 0;
 
626
               unsigned int end_input_str_len = 0;
 
627
 
 
628
 
 
629
               axiom_data_source_t *data_source = NULL;
 
630
               axutil_stream_t *stream = NULL;
 
631
 
 
632
 
 
633
 
 
634
            AXIS2_ENV_CHECK(env, NULL);
 
635
            AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL);
 
636
 
 
637
 
 
638
                    current_node = parent;
 
639
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
 
640
                    if (!data_source)
 
641
                        return NULL;
 
642
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
 
643
                    if (!stream)
 
644
                        return NULL;
 
645
 
 
646
            if(!parent_tag_closed)
 
647
            {
 
648
 
 
649
              string_to_stream = ">";
 
650
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
 
651
              tag_closed = 1;
 
652
 
 
653
            }
 
654
 
 
655
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
656
                       {
 
657
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
658
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
659
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
660
 
 
661
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
662
                                            "http://eucalyptus.ucsb.edu/",
 
663
                                            p_prefix));
 
664
                       }
 
665
 
 
666
 
 
667
                   if (!_ncDetachVolumeResponseType->is_valid_correlationId)
 
668
                   {
 
669
 
 
670
                           /* no need to complain for minoccurs=0 element */
 
671
 
 
672
 
 
673
                   }
 
674
                   else
 
675
                   {
 
676
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
677
                                 (4 + axutil_strlen(p_prefix) +
 
678
                                  axutil_strlen("correlationId")));
 
679
 
 
680
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
681
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
682
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
 
683
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
684
 
 
685
 
 
686
 
 
687
 
 
688
 
 
689
 
 
690
                     /*
 
691
                      * parsing correlationId element
 
692
                      */
 
693
 
 
694
 
 
695
 
 
696
                            sprintf(start_input_str, "<%s%scorrelationId>",
 
697
                                 p_prefix?p_prefix:"",
 
698
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
699
 
 
700
                        start_input_str_len = axutil_strlen(start_input_str);
 
701
                        sprintf(end_input_str, "</%s%scorrelationId>",
 
702
                                 p_prefix?p_prefix:"",
 
703
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
704
                        end_input_str_len = axutil_strlen(end_input_str);
 
705
 
 
706
                           text_value_1 = _ncDetachVolumeResponseType->property_correlationId;
 
707
 
 
708
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
709
 
 
710
 
 
711
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
 
712
                           if (text_value_1_temp)
 
713
                           {
 
714
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
 
715
                               AXIS2_FREE(env->allocator, text_value_1_temp);
 
716
                           }
 
717
                           else
 
718
                           {
 
719
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
 
720
                           }
 
721
 
 
722
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
723
 
 
724
 
 
725
                     AXIS2_FREE(env->allocator,start_input_str);
 
726
                     AXIS2_FREE(env->allocator,end_input_str);
 
727
                 }
 
728
 
 
729
 
 
730
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
731
                       {
 
732
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
733
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
734
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
735
 
 
736
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
737
                                            "http://eucalyptus.ucsb.edu/",
 
738
                                            p_prefix));
 
739
                       }
 
740
 
 
741
 
 
742
                   if (!_ncDetachVolumeResponseType->is_valid_userId)
 
743
                   {
 
744
 
 
745
                           /* no need to complain for minoccurs=0 element */
 
746
 
 
747
 
 
748
                   }
 
749
                   else
 
750
                   {
 
751
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
752
                                 (4 + axutil_strlen(p_prefix) +
 
753
                                  axutil_strlen("userId")));
 
754
 
 
755
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
756
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
757
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
 
758
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
759
 
 
760
 
 
761
 
 
762
 
 
763
 
 
764
 
 
765
                     /*
 
766
                      * parsing userId element
 
767
                      */
 
768
 
 
769
 
 
770
 
 
771
                            sprintf(start_input_str, "<%s%suserId>",
 
772
                                 p_prefix?p_prefix:"",
 
773
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
774
 
 
775
                        start_input_str_len = axutil_strlen(start_input_str);
 
776
                        sprintf(end_input_str, "</%s%suserId>",
 
777
                                 p_prefix?p_prefix:"",
 
778
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
779
                        end_input_str_len = axutil_strlen(end_input_str);
 
780
 
 
781
                           text_value_2 = _ncDetachVolumeResponseType->property_userId;
 
782
 
 
783
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
784
 
 
785
 
 
786
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
 
787
                           if (text_value_2_temp)
 
788
                           {
 
789
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
 
790
                               AXIS2_FREE(env->allocator, text_value_2_temp);
 
791
                           }
 
792
                           else
 
793
                           {
 
794
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
 
795
                           }
 
796
 
 
797
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
798
 
 
799
 
 
800
                     AXIS2_FREE(env->allocator,start_input_str);
 
801
                     AXIS2_FREE(env->allocator,end_input_str);
 
802
                 }
 
803
 
 
804
 
 
805
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
806
                       {
 
807
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
808
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
809
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
810
 
 
811
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
812
                                            "http://eucalyptus.ucsb.edu/",
 
813
                                            p_prefix));
 
814
                       }
 
815
 
 
816
 
 
817
                   if (!_ncDetachVolumeResponseType->is_valid_return)
 
818
                   {
 
819
 
 
820
                           /* no need to complain for minoccurs=0 element */
 
821
 
 
822
 
 
823
                   }
 
824
                   else
 
825
                   {
 
826
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
827
                                 (4 + axutil_strlen(p_prefix) +
 
828
                                  axutil_strlen("return")));
 
829
 
 
830
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
831
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
832
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
 
833
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
834
 
 
835
 
 
836
 
 
837
 
 
838
 
 
839
 
 
840
                     /*
 
841
                      * parsing return element
 
842
                      */
 
843
 
 
844
 
 
845
 
 
846
                            sprintf(start_input_str, "<%s%sreturn>",
 
847
                                 p_prefix?p_prefix:"",
 
848
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
849
 
 
850
                        start_input_str_len = axutil_strlen(start_input_str);
 
851
                        sprintf(end_input_str, "</%s%sreturn>",
 
852
                                 p_prefix?p_prefix:"",
 
853
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
854
                        end_input_str_len = axutil_strlen(end_input_str);
 
855
 
 
856
                           strcpy(text_value_3, (_ncDetachVolumeResponseType->property_return)?"true":"false");
 
857
 
 
858
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
859
 
 
860
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
 
861
 
 
862
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
863
 
 
864
 
 
865
                     AXIS2_FREE(env->allocator,start_input_str);
 
866
                     AXIS2_FREE(env->allocator,end_input_str);
 
867
                 }
 
868
 
 
869
 
 
870
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
871
                       {
 
872
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
873
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
874
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
875
 
 
876
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
877
                                            "http://eucalyptus.ucsb.edu/",
 
878
                                            p_prefix));
 
879
                       }
 
880
 
 
881
 
 
882
                   if (!_ncDetachVolumeResponseType->is_valid_statusMessage)
 
883
                   {
 
884
 
 
885
                           /* no need to complain for minoccurs=0 element */
 
886
 
 
887
 
 
888
                   }
 
889
                   else
 
890
                   {
 
891
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
892
                                 (4 + axutil_strlen(p_prefix) +
 
893
                                  axutil_strlen("statusMessage")));
 
894
 
 
895
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
896
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
897
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
 
898
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
899
 
 
900
 
 
901
 
 
902
 
 
903
 
 
904
 
 
905
                     /*
 
906
                      * parsing statusMessage element
 
907
                      */
 
908
 
 
909
 
 
910
 
 
911
                            sprintf(start_input_str, "<%s%sstatusMessage>",
 
912
                                 p_prefix?p_prefix:"",
 
913
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
914
 
 
915
                        start_input_str_len = axutil_strlen(start_input_str);
 
916
                        sprintf(end_input_str, "</%s%sstatusMessage>",
 
917
                                 p_prefix?p_prefix:"",
 
918
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
919
                        end_input_str_len = axutil_strlen(end_input_str);
 
920
 
 
921
                               sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncDetachVolumeResponseType->property_statusMessage);
 
922
 
 
923
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
924
 
 
925
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
 
926
 
 
927
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
928
 
 
929
 
 
930
                     AXIS2_FREE(env->allocator,start_input_str);
 
931
                     AXIS2_FREE(env->allocator,end_input_str);
 
932
                 }
 
933
 
 
934
 
 
935
 
 
936
            return parent;
 
937
        }
 
938
 
 
939
 
 
940
 
 
941
 
 
942
            /**
 
943
             * getter for correlationId.
 
944
             */
 
945
            axis2_char_t* AXIS2_CALL
 
946
            adb_ncDetachVolumeResponseType_get_correlationId(
 
947
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
948
                    const axutil_env_t *env)
 
949
             {
 
950
 
 
951
                    AXIS2_ENV_CHECK(env, NULL);
 
952
                    AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL);
 
953
 
 
954
 
 
955
                return _ncDetachVolumeResponseType->property_correlationId;
 
956
             }
 
957
 
 
958
            /**
 
959
             * setter for correlationId
 
960
             */
 
961
            axis2_status_t AXIS2_CALL
 
962
            adb_ncDetachVolumeResponseType_set_correlationId(
 
963
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
964
                    const axutil_env_t *env,
 
965
                    const axis2_char_t*  arg_correlationId)
 
966
             {
 
967
 
 
968
 
 
969
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
970
                AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
971
 
 
972
                if(_ncDetachVolumeResponseType->is_valid_correlationId &&
 
973
                        arg_correlationId == _ncDetachVolumeResponseType->property_correlationId)
 
974
                {
 
975
 
 
976
                    return AXIS2_SUCCESS;
 
977
                }
 
978
 
 
979
                adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env);
 
980
 
 
981
 
 
982
                if(NULL == arg_correlationId)
 
983
                {
 
984
                    /* We are already done */
 
985
                    return AXIS2_SUCCESS;
 
986
                }
 
987
                _ncDetachVolumeResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
 
988
                        if(NULL == _ncDetachVolumeResponseType->property_correlationId)
 
989
                        {
 
990
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
 
991
                            return AXIS2_FAILURE;
 
992
                        }
 
993
                        _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_TRUE;
 
994
 
 
995
                return AXIS2_SUCCESS;
 
996
             }
 
997
 
 
998
 
 
999
 
 
1000
           /**
 
1001
            * resetter for correlationId
 
1002
            */
 
1003
           axis2_status_t AXIS2_CALL
 
1004
           adb_ncDetachVolumeResponseType_reset_correlationId(
 
1005
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1006
                   const axutil_env_t *env)
 
1007
           {
 
1008
               int i = 0;
 
1009
               int count = 0;
 
1010
               void *element = NULL;
 
1011
 
 
1012
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1013
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1014
 
 
1015
 
 
1016
 
 
1017
 
 
1018
 
 
1019
                if(_ncDetachVolumeResponseType->property_correlationId != NULL)
 
1020
                {
 
1021
 
 
1022
 
 
1023
                        AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_correlationId);
 
1024
                     _ncDetachVolumeResponseType->property_correlationId = NULL;
 
1025
                }
 
1026
 
 
1027
 
 
1028
 
 
1029
                _ncDetachVolumeResponseType->is_valid_correlationId = AXIS2_FALSE;
 
1030
               return AXIS2_SUCCESS;
 
1031
           }
 
1032
 
 
1033
           /**
 
1034
            * Check whether correlationId is nill
 
1035
            */
 
1036
           axis2_bool_t AXIS2_CALL
 
1037
           adb_ncDetachVolumeResponseType_is_correlationId_nil(
 
1038
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1039
                   const axutil_env_t *env)
 
1040
           {
 
1041
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1042
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE);
 
1043
 
 
1044
               return !_ncDetachVolumeResponseType->is_valid_correlationId;
 
1045
           }
 
1046
 
 
1047
           /**
 
1048
            * Set correlationId to nill (currently the same as reset)
 
1049
            */
 
1050
           axis2_status_t AXIS2_CALL
 
1051
           adb_ncDetachVolumeResponseType_set_correlationId_nil(
 
1052
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1053
                   const axutil_env_t *env)
 
1054
           {
 
1055
               return adb_ncDetachVolumeResponseType_reset_correlationId(_ncDetachVolumeResponseType, env);
 
1056
           }
 
1057
 
 
1058
 
 
1059
 
 
1060
            /**
 
1061
             * getter for userId.
 
1062
             */
 
1063
            axis2_char_t* AXIS2_CALL
 
1064
            adb_ncDetachVolumeResponseType_get_userId(
 
1065
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1066
                    const axutil_env_t *env)
 
1067
             {
 
1068
 
 
1069
                    AXIS2_ENV_CHECK(env, NULL);
 
1070
                    AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, NULL);
 
1071
 
 
1072
 
 
1073
                return _ncDetachVolumeResponseType->property_userId;
 
1074
             }
 
1075
 
 
1076
            /**
 
1077
             * setter for userId
 
1078
             */
 
1079
            axis2_status_t AXIS2_CALL
 
1080
            adb_ncDetachVolumeResponseType_set_userId(
 
1081
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1082
                    const axutil_env_t *env,
 
1083
                    const axis2_char_t*  arg_userId)
 
1084
             {
 
1085
 
 
1086
 
 
1087
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1088
                AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1089
 
 
1090
                if(_ncDetachVolumeResponseType->is_valid_userId &&
 
1091
                        arg_userId == _ncDetachVolumeResponseType->property_userId)
 
1092
                {
 
1093
 
 
1094
                    return AXIS2_SUCCESS;
 
1095
                }
 
1096
 
 
1097
                adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env);
 
1098
 
 
1099
 
 
1100
                if(NULL == arg_userId)
 
1101
                {
 
1102
                    /* We are already done */
 
1103
                    return AXIS2_SUCCESS;
 
1104
                }
 
1105
                _ncDetachVolumeResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
 
1106
                        if(NULL == _ncDetachVolumeResponseType->property_userId)
 
1107
                        {
 
1108
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
 
1109
                            return AXIS2_FAILURE;
 
1110
                        }
 
1111
                        _ncDetachVolumeResponseType->is_valid_userId = AXIS2_TRUE;
 
1112
 
 
1113
                return AXIS2_SUCCESS;
 
1114
             }
 
1115
 
 
1116
 
 
1117
 
 
1118
           /**
 
1119
            * resetter for userId
 
1120
            */
 
1121
           axis2_status_t AXIS2_CALL
 
1122
           adb_ncDetachVolumeResponseType_reset_userId(
 
1123
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1124
                   const axutil_env_t *env)
 
1125
           {
 
1126
               int i = 0;
 
1127
               int count = 0;
 
1128
               void *element = NULL;
 
1129
 
 
1130
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1131
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1132
 
 
1133
 
 
1134
 
 
1135
 
 
1136
 
 
1137
                if(_ncDetachVolumeResponseType->property_userId != NULL)
 
1138
                {
 
1139
 
 
1140
 
 
1141
                        AXIS2_FREE(env-> allocator, _ncDetachVolumeResponseType->property_userId);
 
1142
                     _ncDetachVolumeResponseType->property_userId = NULL;
 
1143
                }
 
1144
 
 
1145
 
 
1146
 
 
1147
                _ncDetachVolumeResponseType->is_valid_userId = AXIS2_FALSE;
 
1148
               return AXIS2_SUCCESS;
 
1149
           }
 
1150
 
 
1151
           /**
 
1152
            * Check whether userId is nill
 
1153
            */
 
1154
           axis2_bool_t AXIS2_CALL
 
1155
           adb_ncDetachVolumeResponseType_is_userId_nil(
 
1156
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1157
                   const axutil_env_t *env)
 
1158
           {
 
1159
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1160
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE);
 
1161
 
 
1162
               return !_ncDetachVolumeResponseType->is_valid_userId;
 
1163
           }
 
1164
 
 
1165
           /**
 
1166
            * Set userId to nill (currently the same as reset)
 
1167
            */
 
1168
           axis2_status_t AXIS2_CALL
 
1169
           adb_ncDetachVolumeResponseType_set_userId_nil(
 
1170
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1171
                   const axutil_env_t *env)
 
1172
           {
 
1173
               return adb_ncDetachVolumeResponseType_reset_userId(_ncDetachVolumeResponseType, env);
 
1174
           }
 
1175
 
 
1176
 
 
1177
 
 
1178
            /**
 
1179
             * getter for return.
 
1180
             */
 
1181
            axis2_bool_t AXIS2_CALL
 
1182
            adb_ncDetachVolumeResponseType_get_return(
 
1183
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1184
                    const axutil_env_t *env)
 
1185
             {
 
1186
 
 
1187
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
 
1188
                    AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (axis2_bool_t)0);
 
1189
 
 
1190
 
 
1191
                return _ncDetachVolumeResponseType->property_return;
 
1192
             }
 
1193
 
 
1194
            /**
 
1195
             * setter for return
 
1196
             */
 
1197
            axis2_status_t AXIS2_CALL
 
1198
            adb_ncDetachVolumeResponseType_set_return(
 
1199
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1200
                    const axutil_env_t *env,
 
1201
                    axis2_bool_t  arg_return)
 
1202
             {
 
1203
 
 
1204
 
 
1205
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1206
                AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1207
 
 
1208
                if(_ncDetachVolumeResponseType->is_valid_return &&
 
1209
                        arg_return == _ncDetachVolumeResponseType->property_return)
 
1210
                {
 
1211
 
 
1212
                    return AXIS2_SUCCESS;
 
1213
                }
 
1214
 
 
1215
                adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env);
 
1216
 
 
1217
                _ncDetachVolumeResponseType->property_return = arg_return;
 
1218
                        _ncDetachVolumeResponseType->is_valid_return = AXIS2_TRUE;
 
1219
 
 
1220
                return AXIS2_SUCCESS;
 
1221
             }
 
1222
 
 
1223
 
 
1224
 
 
1225
           /**
 
1226
            * resetter for return
 
1227
            */
 
1228
           axis2_status_t AXIS2_CALL
 
1229
           adb_ncDetachVolumeResponseType_reset_return(
 
1230
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1231
                   const axutil_env_t *env)
 
1232
           {
 
1233
               int i = 0;
 
1234
               int count = 0;
 
1235
               void *element = NULL;
 
1236
 
 
1237
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1238
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1239
 
 
1240
 
 
1241
               _ncDetachVolumeResponseType->is_valid_return = AXIS2_FALSE;
 
1242
               return AXIS2_SUCCESS;
 
1243
           }
 
1244
 
 
1245
           /**
 
1246
            * Check whether return is nill
 
1247
            */
 
1248
           axis2_bool_t AXIS2_CALL
 
1249
           adb_ncDetachVolumeResponseType_is_return_nil(
 
1250
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1251
                   const axutil_env_t *env)
 
1252
           {
 
1253
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1254
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE);
 
1255
 
 
1256
               return !_ncDetachVolumeResponseType->is_valid_return;
 
1257
           }
 
1258
 
 
1259
           /**
 
1260
            * Set return to nill (currently the same as reset)
 
1261
            */
 
1262
           axis2_status_t AXIS2_CALL
 
1263
           adb_ncDetachVolumeResponseType_set_return_nil(
 
1264
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1265
                   const axutil_env_t *env)
 
1266
           {
 
1267
               return adb_ncDetachVolumeResponseType_reset_return(_ncDetachVolumeResponseType, env);
 
1268
           }
 
1269
 
 
1270
 
 
1271
 
 
1272
            /**
 
1273
             * getter for statusMessage.
 
1274
             */
 
1275
            int AXIS2_CALL
 
1276
            adb_ncDetachVolumeResponseType_get_statusMessage(
 
1277
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1278
                    const axutil_env_t *env)
 
1279
             {
 
1280
 
 
1281
                    AXIS2_ENV_CHECK(env, (int)0);
 
1282
                    AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, (int)0);
 
1283
 
 
1284
 
 
1285
                return _ncDetachVolumeResponseType->property_statusMessage;
 
1286
             }
 
1287
 
 
1288
            /**
 
1289
             * setter for statusMessage
 
1290
             */
 
1291
            axis2_status_t AXIS2_CALL
 
1292
            adb_ncDetachVolumeResponseType_set_statusMessage(
 
1293
                    adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1294
                    const axutil_env_t *env,
 
1295
                    const int  arg_statusMessage)
 
1296
             {
 
1297
 
 
1298
 
 
1299
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1300
                AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1301
 
 
1302
                if(_ncDetachVolumeResponseType->is_valid_statusMessage &&
 
1303
                        arg_statusMessage == _ncDetachVolumeResponseType->property_statusMessage)
 
1304
                {
 
1305
 
 
1306
                    return AXIS2_SUCCESS;
 
1307
                }
 
1308
 
 
1309
                adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env);
 
1310
 
 
1311
                _ncDetachVolumeResponseType->property_statusMessage = arg_statusMessage;
 
1312
                        _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_TRUE;
 
1313
 
 
1314
                return AXIS2_SUCCESS;
 
1315
             }
 
1316
 
 
1317
 
 
1318
 
 
1319
           /**
 
1320
            * resetter for statusMessage
 
1321
            */
 
1322
           axis2_status_t AXIS2_CALL
 
1323
           adb_ncDetachVolumeResponseType_reset_statusMessage(
 
1324
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1325
                   const axutil_env_t *env)
 
1326
           {
 
1327
               int i = 0;
 
1328
               int count = 0;
 
1329
               void *element = NULL;
 
1330
 
 
1331
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1332
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_FAILURE);
 
1333
 
 
1334
 
 
1335
               _ncDetachVolumeResponseType->is_valid_statusMessage = AXIS2_FALSE;
 
1336
               return AXIS2_SUCCESS;
 
1337
           }
 
1338
 
 
1339
           /**
 
1340
            * Check whether statusMessage is nill
 
1341
            */
 
1342
           axis2_bool_t AXIS2_CALL
 
1343
           adb_ncDetachVolumeResponseType_is_statusMessage_nil(
 
1344
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1345
                   const axutil_env_t *env)
 
1346
           {
 
1347
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1348
               AXIS2_PARAM_CHECK(env->error, _ncDetachVolumeResponseType, AXIS2_TRUE);
 
1349
 
 
1350
               return !_ncDetachVolumeResponseType->is_valid_statusMessage;
 
1351
           }
 
1352
 
 
1353
           /**
 
1354
            * Set statusMessage to nill (currently the same as reset)
 
1355
            */
 
1356
           axis2_status_t AXIS2_CALL
 
1357
           adb_ncDetachVolumeResponseType_set_statusMessage_nil(
 
1358
                   adb_ncDetachVolumeResponseType_t* _ncDetachVolumeResponseType,
 
1359
                   const axutil_env_t *env)
 
1360
           {
 
1361
               return adb_ncDetachVolumeResponseType_reset_statusMessage(_ncDetachVolumeResponseType, env);
 
1362
           }
 
1363
 
 
1364
 
 
1365