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

« back to all changes in this revision

Viewing changes to cluster/generated/adb_ncTerminateInstanceResponseType.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
 
         * adb_ncTerminateInstanceResponseType.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_ncTerminateInstanceResponseType.h"
11
 
 
12
 
                /*
13
 
                 * This type was generated from the piece of schema that had
14
 
                 * name = ncTerminateInstanceResponseType
15
 
                 * Namespace URI = http://eucalyptus.ucsb.edu/
16
 
                 * Namespace Prefix = ns1
17
 
                 */
18
 
 
19
 
 
20
 
 
21
 
        struct adb_ncTerminateInstanceResponseType
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
 
            axis2_char_t* property_instanceId;
48
 
 
49
 
 
50
 
                axis2_bool_t is_valid_instanceId;
51
 
 
52
 
 
53
 
            axis2_char_t* property_shutdownState;
54
 
 
55
 
 
56
 
                axis2_bool_t is_valid_shutdownState;
57
 
 
58
 
 
59
 
            axis2_char_t* property_previousState;
60
 
 
61
 
 
62
 
                axis2_bool_t is_valid_previousState;
63
 
 
64
 
 
65
 
 
66
 
        };
67
 
 
68
 
 
69
 
       /************************* Private Function prototypes ********************************/
70
 
 
71
 
 
72
 
                axis2_status_t AXIS2_CALL
73
 
                adb_ncTerminateInstanceResponseType_set_correlationId_nil(
74
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
75
 
                        const axutil_env_t *env);
76
 
 
77
 
 
78
 
                axis2_status_t AXIS2_CALL
79
 
                adb_ncTerminateInstanceResponseType_set_userId_nil(
80
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
81
 
                        const axutil_env_t *env);
82
 
 
83
 
 
84
 
                axis2_status_t AXIS2_CALL
85
 
                adb_ncTerminateInstanceResponseType_set_return_nil(
86
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
87
 
                        const axutil_env_t *env);
88
 
 
89
 
 
90
 
                axis2_status_t AXIS2_CALL
91
 
                adb_ncTerminateInstanceResponseType_set_instanceId_nil(
92
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
93
 
                        const axutil_env_t *env);
94
 
 
95
 
 
96
 
                axis2_status_t AXIS2_CALL
97
 
                adb_ncTerminateInstanceResponseType_set_shutdownState_nil(
98
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
99
 
                        const axutil_env_t *env);
100
 
 
101
 
 
102
 
                axis2_status_t AXIS2_CALL
103
 
                adb_ncTerminateInstanceResponseType_set_previousState_nil(
104
 
                        adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
105
 
                        const axutil_env_t *env);
106
 
 
107
 
 
108
 
 
109
 
       /************************* Function Implmentations ********************************/
110
 
        adb_ncTerminateInstanceResponseType_t* AXIS2_CALL
111
 
        adb_ncTerminateInstanceResponseType_create(
112
 
            const axutil_env_t *env)
113
 
        {
114
 
            adb_ncTerminateInstanceResponseType_t *_ncTerminateInstanceResponseType = NULL;
115
 
 
116
 
            AXIS2_ENV_CHECK(env, NULL);
117
 
 
118
 
            _ncTerminateInstanceResponseType = (adb_ncTerminateInstanceResponseType_t *) AXIS2_MALLOC(env->
119
 
                allocator, sizeof(adb_ncTerminateInstanceResponseType_t));
120
 
 
121
 
            if(NULL == _ncTerminateInstanceResponseType)
122
 
            {
123
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
124
 
                return NULL;
125
 
            }
126
 
 
127
 
            memset(_ncTerminateInstanceResponseType, 0, sizeof(adb_ncTerminateInstanceResponseType_t));
128
 
 
129
 
            _ncTerminateInstanceResponseType->property_correlationId  = NULL;
130
 
                  _ncTerminateInstanceResponseType->is_valid_correlationId  = AXIS2_FALSE;
131
 
            _ncTerminateInstanceResponseType->property_userId  = NULL;
132
 
                  _ncTerminateInstanceResponseType->is_valid_userId  = AXIS2_FALSE;
133
 
            _ncTerminateInstanceResponseType->is_valid_return  = AXIS2_FALSE;
134
 
            _ncTerminateInstanceResponseType->is_valid_statusMessage  = AXIS2_FALSE;
135
 
            _ncTerminateInstanceResponseType->property_instanceId  = NULL;
136
 
                  _ncTerminateInstanceResponseType->is_valid_instanceId  = AXIS2_FALSE;
137
 
            _ncTerminateInstanceResponseType->property_shutdownState  = NULL;
138
 
                  _ncTerminateInstanceResponseType->is_valid_shutdownState  = AXIS2_FALSE;
139
 
            _ncTerminateInstanceResponseType->property_previousState  = NULL;
140
 
                  _ncTerminateInstanceResponseType->is_valid_previousState  = AXIS2_FALSE;
141
 
 
142
 
 
143
 
            return _ncTerminateInstanceResponseType;
144
 
        }
145
 
 
146
 
        axis2_status_t AXIS2_CALL
147
 
        adb_ncTerminateInstanceResponseType_free (
148
 
                adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
149
 
                const axutil_env_t *env)
150
 
        {
151
 
 
152
 
 
153
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
154
 
            AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
155
 
 
156
 
            adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env);
157
 
            adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env);
158
 
            adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env);
159
 
            adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env);
160
 
            adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env);
161
 
            adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env);
162
 
            adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env);
163
 
 
164
 
 
165
 
            if(_ncTerminateInstanceResponseType)
166
 
            {
167
 
                AXIS2_FREE(env->allocator, _ncTerminateInstanceResponseType);
168
 
                _ncTerminateInstanceResponseType = NULL;
169
 
            }
170
 
            return AXIS2_SUCCESS;
171
 
        }
172
 
 
173
 
 
174
 
 
175
 
 
176
 
        axis2_status_t AXIS2_CALL
177
 
        adb_ncTerminateInstanceResponseType_deserialize(
178
 
                adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
179
 
                const axutil_env_t *env,
180
 
                axiom_node_t **dp_parent,
181
 
                axis2_bool_t *dp_is_early_node_valid,
182
 
                axis2_bool_t dont_care_minoccurs)
183
 
        {
184
 
          axiom_node_t *parent = *dp_parent;
185
 
 
186
 
          axis2_status_t status = AXIS2_SUCCESS;
187
 
 
188
 
             axis2_char_t* text_value = NULL;
189
 
             axutil_qname_t *qname = NULL;
190
 
 
191
 
            axutil_qname_t *element_qname = NULL;
192
 
 
193
 
               axiom_node_t *first_node = NULL;
194
 
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
195
 
               axiom_node_t *current_node = NULL;
196
 
               axiom_element_t *current_element = NULL;
197
 
 
198
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
199
 
            AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
200
 
 
201
 
 
202
 
 
203
 
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
204
 
              {
205
 
                  parent = axiom_node_get_next_sibling(parent, env);
206
 
              }
207
 
              if (NULL == parent)
208
 
              {
209
 
                /* This should be checked before everything */
210
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
211
 
                            "Failed in building adb object for ncTerminateInstanceResponseType : "
212
 
                            "NULL elemenet can not be passed to deserialize");
213
 
                return AXIS2_FAILURE;
214
 
              }
215
 
 
216
 
 
217
 
                      first_node = axiom_node_get_first_child(parent, env);
218
 
 
219
 
 
220
 
 
221
 
 
222
 
                     /*
223
 
                      * building correlationId element
224
 
                      */
225
 
 
226
 
 
227
 
 
228
 
                                   current_node = first_node;
229
 
                                   is_early_node_valid = AXIS2_FALSE;
230
 
 
231
 
 
232
 
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
233
 
                                    {
234
 
                                        current_node = axiom_node_get_next_sibling(current_node, env);
235
 
                                    }
236
 
                                    if(current_node != NULL)
237
 
                                    {
238
 
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
239
 
                                        qname = axiom_element_get_qname(current_element, env, current_node);
240
 
                                    }
241
 
 
242
 
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
243
 
 
244
 
 
245
 
                           if (
246
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
247
 
                           {
248
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
249
 
                              {
250
 
                                is_early_node_valid = AXIS2_TRUE;
251
 
                              }
252
 
 
253
 
 
254
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
255
 
                                      if(text_value != NULL)
256
 
                                      {
257
 
                                            status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env,
258
 
                                                               text_value);
259
 
                                      }
260
 
 
261
 
                                      else
262
 
                                      {
263
 
                                            /*
264
 
                                             * axis2_qname_t *qname = NULL;
265
 
                                             * axiom_attribute_t *the_attri = NULL;
266
 
                                             *
267
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
268
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
269
 
                                             */
270
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
271
 
 
272
 
                                            axiom_attribute_t *the_attri = NULL;
273
 
                                            axis2_char_t *attrib_text = NULL;
274
 
                                            axutil_hash_t *attribute_hash = NULL;
275
 
 
276
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
277
 
 
278
 
                                            attrib_text = NULL;
279
 
                                            if(attribute_hash)
280
 
                                            {
281
 
                                                 axutil_hash_index_t *hi;
282
 
                                                 void *val;
283
 
                                                 const void *key;
284
 
 
285
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
286
 
                                                 {
287
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
288
 
 
289
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
290
 
                                                     {
291
 
                                                         the_attri = (axiom_attribute_t*)val;
292
 
                                                         break;
293
 
                                                     }
294
 
                                                 }
295
 
                                            }
296
 
 
297
 
                                            if(the_attri)
298
 
                                            {
299
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
300
 
                                            }
301
 
                                            else
302
 
                                            {
303
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
304
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
305
 
                                            }
306
 
 
307
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
308
 
                                            {
309
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
310
 
                                                status = AXIS2_FAILURE;
311
 
                                            }
312
 
                                            else
313
 
                                            {
314
 
                                                /* after all, we found this is a empty string */
315
 
                                                status = adb_ncTerminateInstanceResponseType_set_correlationId(_ncTerminateInstanceResponseType, env,
316
 
                                                                   "");
317
 
                                            }
318
 
                                      }
319
 
 
320
 
                                 if(AXIS2_FAILURE ==  status)
321
 
                                 {
322
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
323
 
                                     if(element_qname)
324
 
                                     {
325
 
                                         axutil_qname_free(element_qname, env);
326
 
                                     }
327
 
                                     return AXIS2_FAILURE;
328
 
                                 }
329
 
                              }
330
 
 
331
 
                  if(element_qname)
332
 
                  {
333
 
                     axutil_qname_free(element_qname, env);
334
 
                     element_qname = NULL;
335
 
                  }
336
 
 
337
 
 
338
 
 
339
 
                     /*
340
 
                      * building userId element
341
 
                      */
342
 
 
343
 
 
344
 
 
345
 
                                    /*
346
 
                                     * because elements are ordered this works fine
347
 
                                     */
348
 
 
349
 
 
350
 
                                   if(current_node != NULL && is_early_node_valid)
351
 
                                   {
352
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
353
 
 
354
 
 
355
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
356
 
                                        {
357
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
358
 
                                        }
359
 
                                        if(current_node != NULL)
360
 
                                        {
361
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
362
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
363
 
                                        }
364
 
 
365
 
                                   }
366
 
                                   is_early_node_valid = AXIS2_FALSE;
367
 
 
368
 
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
369
 
 
370
 
 
371
 
                           if (
372
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
373
 
                           {
374
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
375
 
                              {
376
 
                                is_early_node_valid = AXIS2_TRUE;
377
 
                              }
378
 
 
379
 
 
380
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
381
 
                                      if(text_value != NULL)
382
 
                                      {
383
 
                                            status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env,
384
 
                                                               text_value);
385
 
                                      }
386
 
 
387
 
                                      else
388
 
                                      {
389
 
                                            /*
390
 
                                             * axis2_qname_t *qname = NULL;
391
 
                                             * axiom_attribute_t *the_attri = NULL;
392
 
                                             *
393
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
394
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
395
 
                                             */
396
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
397
 
 
398
 
                                            axiom_attribute_t *the_attri = NULL;
399
 
                                            axis2_char_t *attrib_text = NULL;
400
 
                                            axutil_hash_t *attribute_hash = NULL;
401
 
 
402
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
403
 
 
404
 
                                            attrib_text = NULL;
405
 
                                            if(attribute_hash)
406
 
                                            {
407
 
                                                 axutil_hash_index_t *hi;
408
 
                                                 void *val;
409
 
                                                 const void *key;
410
 
 
411
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
412
 
                                                 {
413
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
414
 
 
415
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
416
 
                                                     {
417
 
                                                         the_attri = (axiom_attribute_t*)val;
418
 
                                                         break;
419
 
                                                     }
420
 
                                                 }
421
 
                                            }
422
 
 
423
 
                                            if(the_attri)
424
 
                                            {
425
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
426
 
                                            }
427
 
                                            else
428
 
                                            {
429
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
430
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
431
 
                                            }
432
 
 
433
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
434
 
                                            {
435
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
436
 
                                                status = AXIS2_FAILURE;
437
 
                                            }
438
 
                                            else
439
 
                                            {
440
 
                                                /* after all, we found this is a empty string */
441
 
                                                status = adb_ncTerminateInstanceResponseType_set_userId(_ncTerminateInstanceResponseType, env,
442
 
                                                                   "");
443
 
                                            }
444
 
                                      }
445
 
 
446
 
                                 if(AXIS2_FAILURE ==  status)
447
 
                                 {
448
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
449
 
                                     if(element_qname)
450
 
                                     {
451
 
                                         axutil_qname_free(element_qname, env);
452
 
                                     }
453
 
                                     return AXIS2_FAILURE;
454
 
                                 }
455
 
                              }
456
 
 
457
 
                  if(element_qname)
458
 
                  {
459
 
                     axutil_qname_free(element_qname, env);
460
 
                     element_qname = NULL;
461
 
                  }
462
 
 
463
 
 
464
 
 
465
 
                     /*
466
 
                      * building return element
467
 
                      */
468
 
 
469
 
 
470
 
 
471
 
                                    /*
472
 
                                     * because elements are ordered this works fine
473
 
                                     */
474
 
 
475
 
 
476
 
                                   if(current_node != NULL && is_early_node_valid)
477
 
                                   {
478
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
479
 
 
480
 
 
481
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
482
 
                                        {
483
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
484
 
                                        }
485
 
                                        if(current_node != NULL)
486
 
                                        {
487
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
488
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
489
 
                                        }
490
 
 
491
 
                                   }
492
 
                                   is_early_node_valid = AXIS2_FALSE;
493
 
 
494
 
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
495
 
 
496
 
 
497
 
                           if (
498
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
499
 
                           {
500
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
501
 
                              {
502
 
                                is_early_node_valid = AXIS2_TRUE;
503
 
                              }
504
 
 
505
 
 
506
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
507
 
                                      if(text_value != NULL)
508
 
                                      {
509
 
                                            if (!axutil_strcasecmp(text_value , "true"))
510
 
                                            {
511
 
                                                status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env,
512
 
                                                                 AXIS2_TRUE);
513
 
                                            }
514
 
                                            else
515
 
                                            {
516
 
                                                status = adb_ncTerminateInstanceResponseType_set_return(_ncTerminateInstanceResponseType, env,
517
 
                                                                      AXIS2_FALSE);
518
 
                                            }
519
 
                                      }
520
 
 
521
 
                                      else
522
 
                                      {
523
 
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
524
 
                                          status = AXIS2_FAILURE;
525
 
                                      }
526
 
 
527
 
                                 if(AXIS2_FAILURE ==  status)
528
 
                                 {
529
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
530
 
                                     if(element_qname)
531
 
                                     {
532
 
                                         axutil_qname_free(element_qname, env);
533
 
                                     }
534
 
                                     return AXIS2_FAILURE;
535
 
                                 }
536
 
                              }
537
 
 
538
 
                  if(element_qname)
539
 
                  {
540
 
                     axutil_qname_free(element_qname, env);
541
 
                     element_qname = NULL;
542
 
                  }
543
 
 
544
 
 
545
 
 
546
 
                     /*
547
 
                      * building statusMessage element
548
 
                      */
549
 
 
550
 
 
551
 
 
552
 
                                    /*
553
 
                                     * because elements are ordered this works fine
554
 
                                     */
555
 
 
556
 
 
557
 
                                   if(current_node != NULL && is_early_node_valid)
558
 
                                   {
559
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
560
 
 
561
 
 
562
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
563
 
                                        {
564
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
565
 
                                        }
566
 
                                        if(current_node != NULL)
567
 
                                        {
568
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
569
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
570
 
                                        }
571
 
 
572
 
                                   }
573
 
                                   is_early_node_valid = AXIS2_FALSE;
574
 
 
575
 
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
576
 
 
577
 
 
578
 
                           if (
579
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
580
 
                           {
581
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
582
 
                              {
583
 
                                is_early_node_valid = AXIS2_TRUE;
584
 
                              }
585
 
 
586
 
 
587
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
588
 
                                      if(text_value != NULL)
589
 
                                      {
590
 
                                            status = adb_ncTerminateInstanceResponseType_set_statusMessage(_ncTerminateInstanceResponseType, env,
591
 
                                                                   atoi(text_value));
592
 
                                      }
593
 
 
594
 
                                 if(AXIS2_FAILURE ==  status)
595
 
                                 {
596
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
597
 
                                     if(element_qname)
598
 
                                     {
599
 
                                         axutil_qname_free(element_qname, env);
600
 
                                     }
601
 
                                     return AXIS2_FAILURE;
602
 
                                 }
603
 
                              }
604
 
 
605
 
                  if(element_qname)
606
 
                  {
607
 
                     axutil_qname_free(element_qname, env);
608
 
                     element_qname = NULL;
609
 
                  }
610
 
 
611
 
 
612
 
 
613
 
                     /*
614
 
                      * building instanceId element
615
 
                      */
616
 
 
617
 
 
618
 
 
619
 
                                    /*
620
 
                                     * because elements are ordered this works fine
621
 
                                     */
622
 
 
623
 
 
624
 
                                   if(current_node != NULL && is_early_node_valid)
625
 
                                   {
626
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
627
 
 
628
 
 
629
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
630
 
                                        {
631
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
632
 
                                        }
633
 
                                        if(current_node != NULL)
634
 
                                        {
635
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
636
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
637
 
                                        }
638
 
 
639
 
                                   }
640
 
                                   is_early_node_valid = AXIS2_FALSE;
641
 
 
642
 
                                 element_qname = axutil_qname_create(env, "instanceId", "http://eucalyptus.ucsb.edu/", NULL);
643
 
 
644
 
 
645
 
                           if (
646
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
647
 
                           {
648
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
649
 
                              {
650
 
                                is_early_node_valid = AXIS2_TRUE;
651
 
                              }
652
 
 
653
 
 
654
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
655
 
                                      if(text_value != NULL)
656
 
                                      {
657
 
                                            status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env,
658
 
                                                               text_value);
659
 
                                      }
660
 
 
661
 
                                      else
662
 
                                      {
663
 
                                            /*
664
 
                                             * axis2_qname_t *qname = NULL;
665
 
                                             * axiom_attribute_t *the_attri = NULL;
666
 
                                             *
667
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
668
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
669
 
                                             */
670
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
671
 
 
672
 
                                            axiom_attribute_t *the_attri = NULL;
673
 
                                            axis2_char_t *attrib_text = NULL;
674
 
                                            axutil_hash_t *attribute_hash = NULL;
675
 
 
676
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
677
 
 
678
 
                                            attrib_text = NULL;
679
 
                                            if(attribute_hash)
680
 
                                            {
681
 
                                                 axutil_hash_index_t *hi;
682
 
                                                 void *val;
683
 
                                                 const void *key;
684
 
 
685
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
686
 
                                                 {
687
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
688
 
 
689
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
690
 
                                                     {
691
 
                                                         the_attri = (axiom_attribute_t*)val;
692
 
                                                         break;
693
 
                                                     }
694
 
                                                 }
695
 
                                            }
696
 
 
697
 
                                            if(the_attri)
698
 
                                            {
699
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
700
 
                                            }
701
 
                                            else
702
 
                                            {
703
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
704
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
705
 
                                            }
706
 
 
707
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
708
 
                                            {
709
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element instanceId");
710
 
                                                status = AXIS2_FAILURE;
711
 
                                            }
712
 
                                            else
713
 
                                            {
714
 
                                                /* after all, we found this is a empty string */
715
 
                                                status = adb_ncTerminateInstanceResponseType_set_instanceId(_ncTerminateInstanceResponseType, env,
716
 
                                                                   "");
717
 
                                            }
718
 
                                      }
719
 
 
720
 
                                 if(AXIS2_FAILURE ==  status)
721
 
                                 {
722
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for instanceId ");
723
 
                                     if(element_qname)
724
 
                                     {
725
 
                                         axutil_qname_free(element_qname, env);
726
 
                                     }
727
 
                                     return AXIS2_FAILURE;
728
 
                                 }
729
 
                              }
730
 
 
731
 
                              else if(!dont_care_minoccurs)
732
 
                              {
733
 
                                  if(element_qname)
734
 
                                  {
735
 
                                      axutil_qname_free(element_qname, env);
736
 
                                  }
737
 
                                  /* this is not a nillable element*/
738
 
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element instanceId missing");
739
 
                                  return AXIS2_FAILURE;
740
 
                              }
741
 
 
742
 
                  if(element_qname)
743
 
                  {
744
 
                     axutil_qname_free(element_qname, env);
745
 
                     element_qname = NULL;
746
 
                  }
747
 
 
748
 
 
749
 
 
750
 
                     /*
751
 
                      * building shutdownState element
752
 
                      */
753
 
 
754
 
 
755
 
 
756
 
                                    /*
757
 
                                     * because elements are ordered this works fine
758
 
                                     */
759
 
 
760
 
 
761
 
                                   if(current_node != NULL && is_early_node_valid)
762
 
                                   {
763
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
764
 
 
765
 
 
766
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
767
 
                                        {
768
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
769
 
                                        }
770
 
                                        if(current_node != NULL)
771
 
                                        {
772
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
773
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
774
 
                                        }
775
 
 
776
 
                                   }
777
 
                                   is_early_node_valid = AXIS2_FALSE;
778
 
 
779
 
                                 element_qname = axutil_qname_create(env, "shutdownState", "http://eucalyptus.ucsb.edu/", NULL);
780
 
 
781
 
 
782
 
                           if (
783
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
784
 
                           {
785
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
786
 
                              {
787
 
                                is_early_node_valid = AXIS2_TRUE;
788
 
                              }
789
 
 
790
 
 
791
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
792
 
                                      if(text_value != NULL)
793
 
                                      {
794
 
                                            status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env,
795
 
                                                               text_value);
796
 
                                      }
797
 
 
798
 
                                      else
799
 
                                      {
800
 
                                            /*
801
 
                                             * axis2_qname_t *qname = NULL;
802
 
                                             * axiom_attribute_t *the_attri = NULL;
803
 
                                             *
804
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
805
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
806
 
                                             */
807
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
808
 
 
809
 
                                            axiom_attribute_t *the_attri = NULL;
810
 
                                            axis2_char_t *attrib_text = NULL;
811
 
                                            axutil_hash_t *attribute_hash = NULL;
812
 
 
813
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
814
 
 
815
 
                                            attrib_text = NULL;
816
 
                                            if(attribute_hash)
817
 
                                            {
818
 
                                                 axutil_hash_index_t *hi;
819
 
                                                 void *val;
820
 
                                                 const void *key;
821
 
 
822
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
823
 
                                                 {
824
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
825
 
 
826
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
827
 
                                                     {
828
 
                                                         the_attri = (axiom_attribute_t*)val;
829
 
                                                         break;
830
 
                                                     }
831
 
                                                 }
832
 
                                            }
833
 
 
834
 
                                            if(the_attri)
835
 
                                            {
836
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
837
 
                                            }
838
 
                                            else
839
 
                                            {
840
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
841
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
842
 
                                            }
843
 
 
844
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
845
 
                                            {
846
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element shutdownState");
847
 
                                                status = AXIS2_FAILURE;
848
 
                                            }
849
 
                                            else
850
 
                                            {
851
 
                                                /* after all, we found this is a empty string */
852
 
                                                status = adb_ncTerminateInstanceResponseType_set_shutdownState(_ncTerminateInstanceResponseType, env,
853
 
                                                                   "");
854
 
                                            }
855
 
                                      }
856
 
 
857
 
                                 if(AXIS2_FAILURE ==  status)
858
 
                                 {
859
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for shutdownState ");
860
 
                                     if(element_qname)
861
 
                                     {
862
 
                                         axutil_qname_free(element_qname, env);
863
 
                                     }
864
 
                                     return AXIS2_FAILURE;
865
 
                                 }
866
 
                              }
867
 
 
868
 
                  if(element_qname)
869
 
                  {
870
 
                     axutil_qname_free(element_qname, env);
871
 
                     element_qname = NULL;
872
 
                  }
873
 
 
874
 
 
875
 
 
876
 
                     /*
877
 
                      * building previousState element
878
 
                      */
879
 
 
880
 
 
881
 
 
882
 
                                    /*
883
 
                                     * because elements are ordered this works fine
884
 
                                     */
885
 
 
886
 
 
887
 
                                   if(current_node != NULL && is_early_node_valid)
888
 
                                   {
889
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
890
 
 
891
 
 
892
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
893
 
                                        {
894
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
895
 
                                        }
896
 
                                        if(current_node != NULL)
897
 
                                        {
898
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
899
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
900
 
                                        }
901
 
 
902
 
                                   }
903
 
                                   is_early_node_valid = AXIS2_FALSE;
904
 
 
905
 
                                 element_qname = axutil_qname_create(env, "previousState", "http://eucalyptus.ucsb.edu/", NULL);
906
 
 
907
 
 
908
 
                           if (
909
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
910
 
                           {
911
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
912
 
                              {
913
 
                                is_early_node_valid = AXIS2_TRUE;
914
 
                              }
915
 
 
916
 
 
917
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
918
 
                                      if(text_value != NULL)
919
 
                                      {
920
 
                                            status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env,
921
 
                                                               text_value);
922
 
                                      }
923
 
 
924
 
                                      else
925
 
                                      {
926
 
                                            /*
927
 
                                             * axis2_qname_t *qname = NULL;
928
 
                                             * axiom_attribute_t *the_attri = NULL;
929
 
                                             *
930
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
931
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
932
 
                                             */
933
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
934
 
 
935
 
                                            axiom_attribute_t *the_attri = NULL;
936
 
                                            axis2_char_t *attrib_text = NULL;
937
 
                                            axutil_hash_t *attribute_hash = NULL;
938
 
 
939
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
940
 
 
941
 
                                            attrib_text = NULL;
942
 
                                            if(attribute_hash)
943
 
                                            {
944
 
                                                 axutil_hash_index_t *hi;
945
 
                                                 void *val;
946
 
                                                 const void *key;
947
 
 
948
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
949
 
                                                 {
950
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
951
 
 
952
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
953
 
                                                     {
954
 
                                                         the_attri = (axiom_attribute_t*)val;
955
 
                                                         break;
956
 
                                                     }
957
 
                                                 }
958
 
                                            }
959
 
 
960
 
                                            if(the_attri)
961
 
                                            {
962
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
963
 
                                            }
964
 
                                            else
965
 
                                            {
966
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
967
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
968
 
                                            }
969
 
 
970
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
971
 
                                            {
972
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element previousState");
973
 
                                                status = AXIS2_FAILURE;
974
 
                                            }
975
 
                                            else
976
 
                                            {
977
 
                                                /* after all, we found this is a empty string */
978
 
                                                status = adb_ncTerminateInstanceResponseType_set_previousState(_ncTerminateInstanceResponseType, env,
979
 
                                                                   "");
980
 
                                            }
981
 
                                      }
982
 
 
983
 
                                 if(AXIS2_FAILURE ==  status)
984
 
                                 {
985
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for previousState ");
986
 
                                     if(element_qname)
987
 
                                     {
988
 
                                         axutil_qname_free(element_qname, env);
989
 
                                     }
990
 
                                     return AXIS2_FAILURE;
991
 
                                 }
992
 
                              }
993
 
 
994
 
                  if(element_qname)
995
 
                  {
996
 
                     axutil_qname_free(element_qname, env);
997
 
                     element_qname = NULL;
998
 
                  }
999
 
 
1000
 
          return status;
1001
 
       }
1002
 
 
1003
 
          axis2_bool_t AXIS2_CALL
1004
 
          adb_ncTerminateInstanceResponseType_is_particle()
1005
 
          {
1006
 
 
1007
 
                 return AXIS2_FALSE;
1008
 
 
1009
 
          }
1010
 
 
1011
 
 
1012
 
          void AXIS2_CALL
1013
 
          adb_ncTerminateInstanceResponseType_declare_parent_namespaces(
1014
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1015
 
                    const axutil_env_t *env, axiom_element_t *parent_element,
1016
 
                    axutil_hash_t *namespaces, int *next_ns_index)
1017
 
          {
1018
 
 
1019
 
                  /* Here this is an empty function, Nothing to declare */
1020
 
 
1021
 
          }
1022
 
 
1023
 
 
1024
 
 
1025
 
        axiom_node_t* AXIS2_CALL
1026
 
        adb_ncTerminateInstanceResponseType_serialize(
1027
 
                adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1028
 
                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)
1029
 
        {
1030
 
 
1031
 
 
1032
 
             axis2_char_t *string_to_stream;
1033
 
 
1034
 
 
1035
 
         axiom_node_t *current_node = NULL;
1036
 
         int tag_closed = 0;
1037
 
 
1038
 
 
1039
 
 
1040
 
                axiom_namespace_t *ns1 = NULL;
1041
 
 
1042
 
                axis2_char_t *qname_uri = NULL;
1043
 
                axis2_char_t *qname_prefix = NULL;
1044
 
                axis2_char_t *p_prefix = NULL;
1045
 
                axis2_bool_t ns_already_defined;
1046
 
 
1047
 
                    axis2_char_t *text_value_1;
1048
 
                    axis2_char_t *text_value_1_temp;
1049
 
 
1050
 
                    axis2_char_t *text_value_2;
1051
 
                    axis2_char_t *text_value_2_temp;
1052
 
 
1053
 
                    axis2_char_t text_value_3[64];
1054
 
 
1055
 
                    axis2_char_t text_value_4[64];
1056
 
 
1057
 
                    axis2_char_t *text_value_5;
1058
 
                    axis2_char_t *text_value_5_temp;
1059
 
 
1060
 
                    axis2_char_t *text_value_6;
1061
 
                    axis2_char_t *text_value_6_temp;
1062
 
 
1063
 
                    axis2_char_t *text_value_7;
1064
 
                    axis2_char_t *text_value_7_temp;
1065
 
 
1066
 
               axis2_char_t *start_input_str = NULL;
1067
 
               axis2_char_t *end_input_str = NULL;
1068
 
               unsigned int start_input_str_len = 0;
1069
 
               unsigned int end_input_str_len = 0;
1070
 
 
1071
 
 
1072
 
               axiom_data_source_t *data_source = NULL;
1073
 
               axutil_stream_t *stream = NULL;
1074
 
 
1075
 
 
1076
 
 
1077
 
            AXIS2_ENV_CHECK(env, NULL);
1078
 
            AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
1079
 
 
1080
 
 
1081
 
                    current_node = parent;
1082
 
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
1083
 
                    if (!data_source)
1084
 
                        return NULL;
1085
 
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
1086
 
                    if (!stream)
1087
 
                        return NULL;
1088
 
 
1089
 
            if(!parent_tag_closed)
1090
 
            {
1091
 
 
1092
 
              string_to_stream = ">";
1093
 
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
1094
 
              tag_closed = 1;
1095
 
 
1096
 
            }
1097
 
 
1098
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1099
 
                       {
1100
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1101
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1102
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1103
 
 
1104
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1105
 
                                            "http://eucalyptus.ucsb.edu/",
1106
 
                                            p_prefix));
1107
 
                       }
1108
 
 
1109
 
 
1110
 
                   if (!_ncTerminateInstanceResponseType->is_valid_correlationId)
1111
 
                   {
1112
 
 
1113
 
                           /* no need to complain for minoccurs=0 element */
1114
 
 
1115
 
 
1116
 
                   }
1117
 
                   else
1118
 
                   {
1119
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1120
 
                                 (4 + axutil_strlen(p_prefix) +
1121
 
                                  axutil_strlen("correlationId")));
1122
 
 
1123
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1124
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1125
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
1126
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1127
 
 
1128
 
 
1129
 
 
1130
 
 
1131
 
 
1132
 
 
1133
 
                     /*
1134
 
                      * parsing correlationId element
1135
 
                      */
1136
 
 
1137
 
 
1138
 
 
1139
 
                            sprintf(start_input_str, "<%s%scorrelationId>",
1140
 
                                 p_prefix?p_prefix:"",
1141
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1142
 
 
1143
 
                        start_input_str_len = axutil_strlen(start_input_str);
1144
 
                        sprintf(end_input_str, "</%s%scorrelationId>",
1145
 
                                 p_prefix?p_prefix:"",
1146
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1147
 
                        end_input_str_len = axutil_strlen(end_input_str);
1148
 
 
1149
 
                           text_value_1 = _ncTerminateInstanceResponseType->property_correlationId;
1150
 
 
1151
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1152
 
 
1153
 
 
1154
 
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
1155
 
                           if (text_value_1_temp)
1156
 
                           {
1157
 
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
1158
 
                               AXIS2_FREE(env->allocator, text_value_1_temp);
1159
 
                           }
1160
 
                           else
1161
 
                           {
1162
 
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
1163
 
                           }
1164
 
 
1165
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1166
 
 
1167
 
 
1168
 
                     AXIS2_FREE(env->allocator,start_input_str);
1169
 
                     AXIS2_FREE(env->allocator,end_input_str);
1170
 
                 }
1171
 
 
1172
 
 
1173
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1174
 
                       {
1175
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1176
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1177
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1178
 
 
1179
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1180
 
                                            "http://eucalyptus.ucsb.edu/",
1181
 
                                            p_prefix));
1182
 
                       }
1183
 
 
1184
 
 
1185
 
                   if (!_ncTerminateInstanceResponseType->is_valid_userId)
1186
 
                   {
1187
 
 
1188
 
                           /* no need to complain for minoccurs=0 element */
1189
 
 
1190
 
 
1191
 
                   }
1192
 
                   else
1193
 
                   {
1194
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1195
 
                                 (4 + axutil_strlen(p_prefix) +
1196
 
                                  axutil_strlen("userId")));
1197
 
 
1198
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1199
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1200
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
1201
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1202
 
 
1203
 
 
1204
 
 
1205
 
 
1206
 
 
1207
 
 
1208
 
                     /*
1209
 
                      * parsing userId element
1210
 
                      */
1211
 
 
1212
 
 
1213
 
 
1214
 
                            sprintf(start_input_str, "<%s%suserId>",
1215
 
                                 p_prefix?p_prefix:"",
1216
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1217
 
 
1218
 
                        start_input_str_len = axutil_strlen(start_input_str);
1219
 
                        sprintf(end_input_str, "</%s%suserId>",
1220
 
                                 p_prefix?p_prefix:"",
1221
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1222
 
                        end_input_str_len = axutil_strlen(end_input_str);
1223
 
 
1224
 
                           text_value_2 = _ncTerminateInstanceResponseType->property_userId;
1225
 
 
1226
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1227
 
 
1228
 
 
1229
 
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
1230
 
                           if (text_value_2_temp)
1231
 
                           {
1232
 
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
1233
 
                               AXIS2_FREE(env->allocator, text_value_2_temp);
1234
 
                           }
1235
 
                           else
1236
 
                           {
1237
 
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
1238
 
                           }
1239
 
 
1240
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1241
 
 
1242
 
 
1243
 
                     AXIS2_FREE(env->allocator,start_input_str);
1244
 
                     AXIS2_FREE(env->allocator,end_input_str);
1245
 
                 }
1246
 
 
1247
 
 
1248
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1249
 
                       {
1250
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1251
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1252
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1253
 
 
1254
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1255
 
                                            "http://eucalyptus.ucsb.edu/",
1256
 
                                            p_prefix));
1257
 
                       }
1258
 
 
1259
 
 
1260
 
                   if (!_ncTerminateInstanceResponseType->is_valid_return)
1261
 
                   {
1262
 
 
1263
 
                           /* no need to complain for minoccurs=0 element */
1264
 
 
1265
 
 
1266
 
                   }
1267
 
                   else
1268
 
                   {
1269
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1270
 
                                 (4 + axutil_strlen(p_prefix) +
1271
 
                                  axutil_strlen("return")));
1272
 
 
1273
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1274
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1275
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1276
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
 
 
1282
 
 
1283
 
                     /*
1284
 
                      * parsing return element
1285
 
                      */
1286
 
 
1287
 
 
1288
 
 
1289
 
                            sprintf(start_input_str, "<%s%sreturn>",
1290
 
                                 p_prefix?p_prefix:"",
1291
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1292
 
 
1293
 
                        start_input_str_len = axutil_strlen(start_input_str);
1294
 
                        sprintf(end_input_str, "</%s%sreturn>",
1295
 
                                 p_prefix?p_prefix:"",
1296
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1297
 
                        end_input_str_len = axutil_strlen(end_input_str);
1298
 
 
1299
 
                           strcpy(text_value_3, (_ncTerminateInstanceResponseType->property_return)?"true":"false");
1300
 
 
1301
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1302
 
 
1303
 
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1304
 
 
1305
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1306
 
 
1307
 
 
1308
 
                     AXIS2_FREE(env->allocator,start_input_str);
1309
 
                     AXIS2_FREE(env->allocator,end_input_str);
1310
 
                 }
1311
 
 
1312
 
 
1313
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1314
 
                       {
1315
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1316
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1317
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1318
 
 
1319
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1320
 
                                            "http://eucalyptus.ucsb.edu/",
1321
 
                                            p_prefix));
1322
 
                       }
1323
 
 
1324
 
 
1325
 
                   if (!_ncTerminateInstanceResponseType->is_valid_statusMessage)
1326
 
                   {
1327
 
 
1328
 
                           /* no need to complain for minoccurs=0 element */
1329
 
 
1330
 
 
1331
 
                   }
1332
 
                   else
1333
 
                   {
1334
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1335
 
                                 (4 + axutil_strlen(p_prefix) +
1336
 
                                  axutil_strlen("statusMessage")));
1337
 
 
1338
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1339
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1340
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
1341
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1342
 
 
1343
 
 
1344
 
 
1345
 
 
1346
 
 
1347
 
 
1348
 
                     /*
1349
 
                      * parsing statusMessage element
1350
 
                      */
1351
 
 
1352
 
 
1353
 
 
1354
 
                            sprintf(start_input_str, "<%s%sstatusMessage>",
1355
 
                                 p_prefix?p_prefix:"",
1356
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1357
 
 
1358
 
                        start_input_str_len = axutil_strlen(start_input_str);
1359
 
                        sprintf(end_input_str, "</%s%sstatusMessage>",
1360
 
                                 p_prefix?p_prefix:"",
1361
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1362
 
                        end_input_str_len = axutil_strlen(end_input_str);
1363
 
 
1364
 
                               sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncTerminateInstanceResponseType->property_statusMessage);
1365
 
 
1366
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1367
 
 
1368
 
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1369
 
 
1370
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1371
 
 
1372
 
 
1373
 
                     AXIS2_FREE(env->allocator,start_input_str);
1374
 
                     AXIS2_FREE(env->allocator,end_input_str);
1375
 
                 }
1376
 
 
1377
 
 
1378
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1379
 
                       {
1380
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1381
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1382
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1383
 
 
1384
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1385
 
                                            "http://eucalyptus.ucsb.edu/",
1386
 
                                            p_prefix));
1387
 
                       }
1388
 
 
1389
 
 
1390
 
                   if (!_ncTerminateInstanceResponseType->is_valid_instanceId)
1391
 
                   {
1392
 
 
1393
 
 
1394
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId");
1395
 
                            return NULL;
1396
 
 
1397
 
                   }
1398
 
                   else
1399
 
                   {
1400
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1401
 
                                 (4 + axutil_strlen(p_prefix) +
1402
 
                                  axutil_strlen("instanceId")));
1403
 
 
1404
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1405
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1406
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
1407
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1408
 
 
1409
 
 
1410
 
 
1411
 
 
1412
 
 
1413
 
 
1414
 
                     /*
1415
 
                      * parsing instanceId element
1416
 
                      */
1417
 
 
1418
 
 
1419
 
 
1420
 
                            sprintf(start_input_str, "<%s%sinstanceId>",
1421
 
                                 p_prefix?p_prefix:"",
1422
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1423
 
 
1424
 
                        start_input_str_len = axutil_strlen(start_input_str);
1425
 
                        sprintf(end_input_str, "</%s%sinstanceId>",
1426
 
                                 p_prefix?p_prefix:"",
1427
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1428
 
                        end_input_str_len = axutil_strlen(end_input_str);
1429
 
 
1430
 
                           text_value_5 = _ncTerminateInstanceResponseType->property_instanceId;
1431
 
 
1432
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1433
 
 
1434
 
 
1435
 
                           text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1436
 
                           if (text_value_5_temp)
1437
 
                           {
1438
 
                               axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
1439
 
                               AXIS2_FREE(env->allocator, text_value_5_temp);
1440
 
                           }
1441
 
                           else
1442
 
                           {
1443
 
                               axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1444
 
                           }
1445
 
 
1446
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1447
 
 
1448
 
 
1449
 
                     AXIS2_FREE(env->allocator,start_input_str);
1450
 
                     AXIS2_FREE(env->allocator,end_input_str);
1451
 
                 }
1452
 
 
1453
 
 
1454
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1455
 
                       {
1456
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1457
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1458
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1459
 
 
1460
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1461
 
                                            "http://eucalyptus.ucsb.edu/",
1462
 
                                            p_prefix));
1463
 
                       }
1464
 
 
1465
 
 
1466
 
                   if (!_ncTerminateInstanceResponseType->is_valid_shutdownState)
1467
 
                   {
1468
 
 
1469
 
                           /* no need to complain for minoccurs=0 element */
1470
 
 
1471
 
 
1472
 
                   }
1473
 
                   else
1474
 
                   {
1475
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1476
 
                                 (4 + axutil_strlen(p_prefix) +
1477
 
                                  axutil_strlen("shutdownState")));
1478
 
 
1479
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1480
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1481
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("shutdownState")));
1482
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
                     /*
1490
 
                      * parsing shutdownState element
1491
 
                      */
1492
 
 
1493
 
 
1494
 
 
1495
 
                            sprintf(start_input_str, "<%s%sshutdownState>",
1496
 
                                 p_prefix?p_prefix:"",
1497
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1498
 
 
1499
 
                        start_input_str_len = axutil_strlen(start_input_str);
1500
 
                        sprintf(end_input_str, "</%s%sshutdownState>",
1501
 
                                 p_prefix?p_prefix:"",
1502
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1503
 
                        end_input_str_len = axutil_strlen(end_input_str);
1504
 
 
1505
 
                           text_value_6 = _ncTerminateInstanceResponseType->property_shutdownState;
1506
 
 
1507
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1508
 
 
1509
 
 
1510
 
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
1511
 
                           if (text_value_6_temp)
1512
 
                           {
1513
 
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
1514
 
                               AXIS2_FREE(env->allocator, text_value_6_temp);
1515
 
                           }
1516
 
                           else
1517
 
                           {
1518
 
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
1519
 
                           }
1520
 
 
1521
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1522
 
 
1523
 
 
1524
 
                     AXIS2_FREE(env->allocator,start_input_str);
1525
 
                     AXIS2_FREE(env->allocator,end_input_str);
1526
 
                 }
1527
 
 
1528
 
 
1529
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1530
 
                       {
1531
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1532
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1533
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1534
 
 
1535
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1536
 
                                            "http://eucalyptus.ucsb.edu/",
1537
 
                                            p_prefix));
1538
 
                       }
1539
 
 
1540
 
 
1541
 
                   if (!_ncTerminateInstanceResponseType->is_valid_previousState)
1542
 
                   {
1543
 
 
1544
 
                           /* no need to complain for minoccurs=0 element */
1545
 
 
1546
 
 
1547
 
                   }
1548
 
                   else
1549
 
                   {
1550
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1551
 
                                 (4 + axutil_strlen(p_prefix) +
1552
 
                                  axutil_strlen("previousState")));
1553
 
 
1554
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1555
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1556
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("previousState")));
1557
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
 
 
1563
 
 
1564
 
                     /*
1565
 
                      * parsing previousState element
1566
 
                      */
1567
 
 
1568
 
 
1569
 
 
1570
 
                            sprintf(start_input_str, "<%s%spreviousState>",
1571
 
                                 p_prefix?p_prefix:"",
1572
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1573
 
 
1574
 
                        start_input_str_len = axutil_strlen(start_input_str);
1575
 
                        sprintf(end_input_str, "</%s%spreviousState>",
1576
 
                                 p_prefix?p_prefix:"",
1577
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1578
 
                        end_input_str_len = axutil_strlen(end_input_str);
1579
 
 
1580
 
                           text_value_7 = _ncTerminateInstanceResponseType->property_previousState;
1581
 
 
1582
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1583
 
 
1584
 
 
1585
 
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
1586
 
                           if (text_value_7_temp)
1587
 
                           {
1588
 
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
1589
 
                               AXIS2_FREE(env->allocator, text_value_7_temp);
1590
 
                           }
1591
 
                           else
1592
 
                           {
1593
 
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
1594
 
                           }
1595
 
 
1596
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1597
 
 
1598
 
 
1599
 
                     AXIS2_FREE(env->allocator,start_input_str);
1600
 
                     AXIS2_FREE(env->allocator,end_input_str);
1601
 
                 }
1602
 
 
1603
 
 
1604
 
 
1605
 
            return parent;
1606
 
        }
1607
 
 
1608
 
 
1609
 
 
1610
 
 
1611
 
            /**
1612
 
             * getter for correlationId.
1613
 
             */
1614
 
            axis2_char_t* AXIS2_CALL
1615
 
            adb_ncTerminateInstanceResponseType_get_correlationId(
1616
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1617
 
                    const axutil_env_t *env)
1618
 
             {
1619
 
 
1620
 
                    AXIS2_ENV_CHECK(env, NULL);
1621
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
1622
 
 
1623
 
 
1624
 
                return _ncTerminateInstanceResponseType->property_correlationId;
1625
 
             }
1626
 
 
1627
 
            /**
1628
 
             * setter for correlationId
1629
 
             */
1630
 
            axis2_status_t AXIS2_CALL
1631
 
            adb_ncTerminateInstanceResponseType_set_correlationId(
1632
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1633
 
                    const axutil_env_t *env,
1634
 
                    const axis2_char_t*  arg_correlationId)
1635
 
             {
1636
 
 
1637
 
 
1638
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1639
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1640
 
 
1641
 
                if(_ncTerminateInstanceResponseType->is_valid_correlationId &&
1642
 
                        arg_correlationId == _ncTerminateInstanceResponseType->property_correlationId)
1643
 
                {
1644
 
 
1645
 
                    return AXIS2_SUCCESS;
1646
 
                }
1647
 
 
1648
 
                adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env);
1649
 
 
1650
 
 
1651
 
                if(NULL == arg_correlationId)
1652
 
                {
1653
 
                    /* We are already done */
1654
 
                    return AXIS2_SUCCESS;
1655
 
                }
1656
 
                _ncTerminateInstanceResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
1657
 
                        if(NULL == _ncTerminateInstanceResponseType->property_correlationId)
1658
 
                        {
1659
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
1660
 
                            return AXIS2_FAILURE;
1661
 
                        }
1662
 
                        _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_TRUE;
1663
 
 
1664
 
                return AXIS2_SUCCESS;
1665
 
             }
1666
 
 
1667
 
 
1668
 
 
1669
 
           /**
1670
 
            * resetter for correlationId
1671
 
            */
1672
 
           axis2_status_t AXIS2_CALL
1673
 
           adb_ncTerminateInstanceResponseType_reset_correlationId(
1674
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1675
 
                   const axutil_env_t *env)
1676
 
           {
1677
 
               int i = 0;
1678
 
               int count = 0;
1679
 
               void *element = NULL;
1680
 
 
1681
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1682
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1683
 
 
1684
 
 
1685
 
 
1686
 
 
1687
 
 
1688
 
                if(_ncTerminateInstanceResponseType->property_correlationId != NULL)
1689
 
                {
1690
 
 
1691
 
 
1692
 
                        AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_correlationId);
1693
 
                     _ncTerminateInstanceResponseType->property_correlationId = NULL;
1694
 
                }
1695
 
 
1696
 
 
1697
 
 
1698
 
                _ncTerminateInstanceResponseType->is_valid_correlationId = AXIS2_FALSE;
1699
 
               return AXIS2_SUCCESS;
1700
 
           }
1701
 
 
1702
 
           /**
1703
 
            * Check whether correlationId is nill
1704
 
            */
1705
 
           axis2_bool_t AXIS2_CALL
1706
 
           adb_ncTerminateInstanceResponseType_is_correlationId_nil(
1707
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1708
 
                   const axutil_env_t *env)
1709
 
           {
1710
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1711
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
1712
 
 
1713
 
               return !_ncTerminateInstanceResponseType->is_valid_correlationId;
1714
 
           }
1715
 
 
1716
 
           /**
1717
 
            * Set correlationId to nill (currently the same as reset)
1718
 
            */
1719
 
           axis2_status_t AXIS2_CALL
1720
 
           adb_ncTerminateInstanceResponseType_set_correlationId_nil(
1721
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1722
 
                   const axutil_env_t *env)
1723
 
           {
1724
 
               return adb_ncTerminateInstanceResponseType_reset_correlationId(_ncTerminateInstanceResponseType, env);
1725
 
           }
1726
 
 
1727
 
 
1728
 
 
1729
 
            /**
1730
 
             * getter for userId.
1731
 
             */
1732
 
            axis2_char_t* AXIS2_CALL
1733
 
            adb_ncTerminateInstanceResponseType_get_userId(
1734
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1735
 
                    const axutil_env_t *env)
1736
 
             {
1737
 
 
1738
 
                    AXIS2_ENV_CHECK(env, NULL);
1739
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
1740
 
 
1741
 
 
1742
 
                return _ncTerminateInstanceResponseType->property_userId;
1743
 
             }
1744
 
 
1745
 
            /**
1746
 
             * setter for userId
1747
 
             */
1748
 
            axis2_status_t AXIS2_CALL
1749
 
            adb_ncTerminateInstanceResponseType_set_userId(
1750
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1751
 
                    const axutil_env_t *env,
1752
 
                    const axis2_char_t*  arg_userId)
1753
 
             {
1754
 
 
1755
 
 
1756
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1757
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1758
 
 
1759
 
                if(_ncTerminateInstanceResponseType->is_valid_userId &&
1760
 
                        arg_userId == _ncTerminateInstanceResponseType->property_userId)
1761
 
                {
1762
 
 
1763
 
                    return AXIS2_SUCCESS;
1764
 
                }
1765
 
 
1766
 
                adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env);
1767
 
 
1768
 
 
1769
 
                if(NULL == arg_userId)
1770
 
                {
1771
 
                    /* We are already done */
1772
 
                    return AXIS2_SUCCESS;
1773
 
                }
1774
 
                _ncTerminateInstanceResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
1775
 
                        if(NULL == _ncTerminateInstanceResponseType->property_userId)
1776
 
                        {
1777
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
1778
 
                            return AXIS2_FAILURE;
1779
 
                        }
1780
 
                        _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_TRUE;
1781
 
 
1782
 
                return AXIS2_SUCCESS;
1783
 
             }
1784
 
 
1785
 
 
1786
 
 
1787
 
           /**
1788
 
            * resetter for userId
1789
 
            */
1790
 
           axis2_status_t AXIS2_CALL
1791
 
           adb_ncTerminateInstanceResponseType_reset_userId(
1792
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1793
 
                   const axutil_env_t *env)
1794
 
           {
1795
 
               int i = 0;
1796
 
               int count = 0;
1797
 
               void *element = NULL;
1798
 
 
1799
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1800
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1801
 
 
1802
 
 
1803
 
 
1804
 
 
1805
 
 
1806
 
                if(_ncTerminateInstanceResponseType->property_userId != NULL)
1807
 
                {
1808
 
 
1809
 
 
1810
 
                        AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_userId);
1811
 
                     _ncTerminateInstanceResponseType->property_userId = NULL;
1812
 
                }
1813
 
 
1814
 
 
1815
 
 
1816
 
                _ncTerminateInstanceResponseType->is_valid_userId = AXIS2_FALSE;
1817
 
               return AXIS2_SUCCESS;
1818
 
           }
1819
 
 
1820
 
           /**
1821
 
            * Check whether userId is nill
1822
 
            */
1823
 
           axis2_bool_t AXIS2_CALL
1824
 
           adb_ncTerminateInstanceResponseType_is_userId_nil(
1825
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1826
 
                   const axutil_env_t *env)
1827
 
           {
1828
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1829
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
1830
 
 
1831
 
               return !_ncTerminateInstanceResponseType->is_valid_userId;
1832
 
           }
1833
 
 
1834
 
           /**
1835
 
            * Set userId to nill (currently the same as reset)
1836
 
            */
1837
 
           axis2_status_t AXIS2_CALL
1838
 
           adb_ncTerminateInstanceResponseType_set_userId_nil(
1839
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1840
 
                   const axutil_env_t *env)
1841
 
           {
1842
 
               return adb_ncTerminateInstanceResponseType_reset_userId(_ncTerminateInstanceResponseType, env);
1843
 
           }
1844
 
 
1845
 
 
1846
 
 
1847
 
            /**
1848
 
             * getter for return.
1849
 
             */
1850
 
            axis2_bool_t AXIS2_CALL
1851
 
            adb_ncTerminateInstanceResponseType_get_return(
1852
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1853
 
                    const axutil_env_t *env)
1854
 
             {
1855
 
 
1856
 
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
1857
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (axis2_bool_t)0);
1858
 
 
1859
 
 
1860
 
                return _ncTerminateInstanceResponseType->property_return;
1861
 
             }
1862
 
 
1863
 
            /**
1864
 
             * setter for return
1865
 
             */
1866
 
            axis2_status_t AXIS2_CALL
1867
 
            adb_ncTerminateInstanceResponseType_set_return(
1868
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1869
 
                    const axutil_env_t *env,
1870
 
                    axis2_bool_t  arg_return)
1871
 
             {
1872
 
 
1873
 
 
1874
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1875
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1876
 
 
1877
 
                if(_ncTerminateInstanceResponseType->is_valid_return &&
1878
 
                        arg_return == _ncTerminateInstanceResponseType->property_return)
1879
 
                {
1880
 
 
1881
 
                    return AXIS2_SUCCESS;
1882
 
                }
1883
 
 
1884
 
                adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env);
1885
 
 
1886
 
                _ncTerminateInstanceResponseType->property_return = arg_return;
1887
 
                        _ncTerminateInstanceResponseType->is_valid_return = AXIS2_TRUE;
1888
 
 
1889
 
                return AXIS2_SUCCESS;
1890
 
             }
1891
 
 
1892
 
 
1893
 
 
1894
 
           /**
1895
 
            * resetter for return
1896
 
            */
1897
 
           axis2_status_t AXIS2_CALL
1898
 
           adb_ncTerminateInstanceResponseType_reset_return(
1899
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1900
 
                   const axutil_env_t *env)
1901
 
           {
1902
 
               int i = 0;
1903
 
               int count = 0;
1904
 
               void *element = NULL;
1905
 
 
1906
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1907
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1908
 
 
1909
 
 
1910
 
               _ncTerminateInstanceResponseType->is_valid_return = AXIS2_FALSE;
1911
 
               return AXIS2_SUCCESS;
1912
 
           }
1913
 
 
1914
 
           /**
1915
 
            * Check whether return is nill
1916
 
            */
1917
 
           axis2_bool_t AXIS2_CALL
1918
 
           adb_ncTerminateInstanceResponseType_is_return_nil(
1919
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1920
 
                   const axutil_env_t *env)
1921
 
           {
1922
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
1923
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
1924
 
 
1925
 
               return !_ncTerminateInstanceResponseType->is_valid_return;
1926
 
           }
1927
 
 
1928
 
           /**
1929
 
            * Set return to nill (currently the same as reset)
1930
 
            */
1931
 
           axis2_status_t AXIS2_CALL
1932
 
           adb_ncTerminateInstanceResponseType_set_return_nil(
1933
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1934
 
                   const axutil_env_t *env)
1935
 
           {
1936
 
               return adb_ncTerminateInstanceResponseType_reset_return(_ncTerminateInstanceResponseType, env);
1937
 
           }
1938
 
 
1939
 
 
1940
 
 
1941
 
            /**
1942
 
             * getter for statusMessage.
1943
 
             */
1944
 
            int AXIS2_CALL
1945
 
            adb_ncTerminateInstanceResponseType_get_statusMessage(
1946
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1947
 
                    const axutil_env_t *env)
1948
 
             {
1949
 
 
1950
 
                    AXIS2_ENV_CHECK(env, (int)0);
1951
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, (int)0);
1952
 
 
1953
 
 
1954
 
                return _ncTerminateInstanceResponseType->property_statusMessage;
1955
 
             }
1956
 
 
1957
 
            /**
1958
 
             * setter for statusMessage
1959
 
             */
1960
 
            axis2_status_t AXIS2_CALL
1961
 
            adb_ncTerminateInstanceResponseType_set_statusMessage(
1962
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1963
 
                    const axutil_env_t *env,
1964
 
                    const int  arg_statusMessage)
1965
 
             {
1966
 
 
1967
 
 
1968
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
1969
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
1970
 
 
1971
 
                if(_ncTerminateInstanceResponseType->is_valid_statusMessage &&
1972
 
                        arg_statusMessage == _ncTerminateInstanceResponseType->property_statusMessage)
1973
 
                {
1974
 
 
1975
 
                    return AXIS2_SUCCESS;
1976
 
                }
1977
 
 
1978
 
                adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env);
1979
 
 
1980
 
                _ncTerminateInstanceResponseType->property_statusMessage = arg_statusMessage;
1981
 
                        _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_TRUE;
1982
 
 
1983
 
                return AXIS2_SUCCESS;
1984
 
             }
1985
 
 
1986
 
 
1987
 
 
1988
 
           /**
1989
 
            * resetter for statusMessage
1990
 
            */
1991
 
           axis2_status_t AXIS2_CALL
1992
 
           adb_ncTerminateInstanceResponseType_reset_statusMessage(
1993
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
1994
 
                   const axutil_env_t *env)
1995
 
           {
1996
 
               int i = 0;
1997
 
               int count = 0;
1998
 
               void *element = NULL;
1999
 
 
2000
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2001
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2002
 
 
2003
 
 
2004
 
               _ncTerminateInstanceResponseType->is_valid_statusMessage = AXIS2_FALSE;
2005
 
               return AXIS2_SUCCESS;
2006
 
           }
2007
 
 
2008
 
           /**
2009
 
            * Check whether statusMessage is nill
2010
 
            */
2011
 
           axis2_bool_t AXIS2_CALL
2012
 
           adb_ncTerminateInstanceResponseType_is_statusMessage_nil(
2013
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2014
 
                   const axutil_env_t *env)
2015
 
           {
2016
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2017
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
2018
 
 
2019
 
               return !_ncTerminateInstanceResponseType->is_valid_statusMessage;
2020
 
           }
2021
 
 
2022
 
           /**
2023
 
            * Set statusMessage to nill (currently the same as reset)
2024
 
            */
2025
 
           axis2_status_t AXIS2_CALL
2026
 
           adb_ncTerminateInstanceResponseType_set_statusMessage_nil(
2027
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2028
 
                   const axutil_env_t *env)
2029
 
           {
2030
 
               return adb_ncTerminateInstanceResponseType_reset_statusMessage(_ncTerminateInstanceResponseType, env);
2031
 
           }
2032
 
 
2033
 
 
2034
 
 
2035
 
            /**
2036
 
             * getter for instanceId.
2037
 
             */
2038
 
            axis2_char_t* AXIS2_CALL
2039
 
            adb_ncTerminateInstanceResponseType_get_instanceId(
2040
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2041
 
                    const axutil_env_t *env)
2042
 
             {
2043
 
 
2044
 
                    AXIS2_ENV_CHECK(env, NULL);
2045
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
2046
 
 
2047
 
 
2048
 
                return _ncTerminateInstanceResponseType->property_instanceId;
2049
 
             }
2050
 
 
2051
 
            /**
2052
 
             * setter for instanceId
2053
 
             */
2054
 
            axis2_status_t AXIS2_CALL
2055
 
            adb_ncTerminateInstanceResponseType_set_instanceId(
2056
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2057
 
                    const axutil_env_t *env,
2058
 
                    const axis2_char_t*  arg_instanceId)
2059
 
             {
2060
 
 
2061
 
 
2062
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2063
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2064
 
 
2065
 
                if(_ncTerminateInstanceResponseType->is_valid_instanceId &&
2066
 
                        arg_instanceId == _ncTerminateInstanceResponseType->property_instanceId)
2067
 
                {
2068
 
 
2069
 
                    return AXIS2_SUCCESS;
2070
 
                }
2071
 
 
2072
 
 
2073
 
                  if(NULL == arg_instanceId)
2074
 
                  {
2075
 
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "instanceId is being set to NULL, but it is not a nullable element");
2076
 
                      return AXIS2_FAILURE;
2077
 
                  }
2078
 
                adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env);
2079
 
 
2080
 
 
2081
 
                if(NULL == arg_instanceId)
2082
 
                {
2083
 
                    /* We are already done */
2084
 
                    return AXIS2_SUCCESS;
2085
 
                }
2086
 
                _ncTerminateInstanceResponseType->property_instanceId = (axis2_char_t *)axutil_strdup(env, arg_instanceId);
2087
 
                        if(NULL == _ncTerminateInstanceResponseType->property_instanceId)
2088
 
                        {
2089
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for instanceId");
2090
 
                            return AXIS2_FAILURE;
2091
 
                        }
2092
 
                        _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_TRUE;
2093
 
 
2094
 
                return AXIS2_SUCCESS;
2095
 
             }
2096
 
 
2097
 
 
2098
 
 
2099
 
           /**
2100
 
            * resetter for instanceId
2101
 
            */
2102
 
           axis2_status_t AXIS2_CALL
2103
 
           adb_ncTerminateInstanceResponseType_reset_instanceId(
2104
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2105
 
                   const axutil_env_t *env)
2106
 
           {
2107
 
               int i = 0;
2108
 
               int count = 0;
2109
 
               void *element = NULL;
2110
 
 
2111
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2112
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2113
 
 
2114
 
 
2115
 
 
2116
 
 
2117
 
 
2118
 
                if(_ncTerminateInstanceResponseType->property_instanceId != NULL)
2119
 
                {
2120
 
 
2121
 
 
2122
 
                        AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_instanceId);
2123
 
                     _ncTerminateInstanceResponseType->property_instanceId = NULL;
2124
 
                }
2125
 
 
2126
 
 
2127
 
 
2128
 
                _ncTerminateInstanceResponseType->is_valid_instanceId = AXIS2_FALSE;
2129
 
               return AXIS2_SUCCESS;
2130
 
           }
2131
 
 
2132
 
           /**
2133
 
            * Check whether instanceId is nill
2134
 
            */
2135
 
           axis2_bool_t AXIS2_CALL
2136
 
           adb_ncTerminateInstanceResponseType_is_instanceId_nil(
2137
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2138
 
                   const axutil_env_t *env)
2139
 
           {
2140
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2141
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
2142
 
 
2143
 
               return !_ncTerminateInstanceResponseType->is_valid_instanceId;
2144
 
           }
2145
 
 
2146
 
           /**
2147
 
            * Set instanceId to nill (currently the same as reset)
2148
 
            */
2149
 
           axis2_status_t AXIS2_CALL
2150
 
           adb_ncTerminateInstanceResponseType_set_instanceId_nil(
2151
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2152
 
                   const axutil_env_t *env)
2153
 
           {
2154
 
               return adb_ncTerminateInstanceResponseType_reset_instanceId(_ncTerminateInstanceResponseType, env);
2155
 
           }
2156
 
 
2157
 
 
2158
 
 
2159
 
            /**
2160
 
             * getter for shutdownState.
2161
 
             */
2162
 
            axis2_char_t* AXIS2_CALL
2163
 
            adb_ncTerminateInstanceResponseType_get_shutdownState(
2164
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2165
 
                    const axutil_env_t *env)
2166
 
             {
2167
 
 
2168
 
                    AXIS2_ENV_CHECK(env, NULL);
2169
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
2170
 
 
2171
 
 
2172
 
                return _ncTerminateInstanceResponseType->property_shutdownState;
2173
 
             }
2174
 
 
2175
 
            /**
2176
 
             * setter for shutdownState
2177
 
             */
2178
 
            axis2_status_t AXIS2_CALL
2179
 
            adb_ncTerminateInstanceResponseType_set_shutdownState(
2180
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2181
 
                    const axutil_env_t *env,
2182
 
                    const axis2_char_t*  arg_shutdownState)
2183
 
             {
2184
 
 
2185
 
 
2186
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2187
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2188
 
 
2189
 
                if(_ncTerminateInstanceResponseType->is_valid_shutdownState &&
2190
 
                        arg_shutdownState == _ncTerminateInstanceResponseType->property_shutdownState)
2191
 
                {
2192
 
 
2193
 
                    return AXIS2_SUCCESS;
2194
 
                }
2195
 
 
2196
 
                adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env);
2197
 
 
2198
 
 
2199
 
                if(NULL == arg_shutdownState)
2200
 
                {
2201
 
                    /* We are already done */
2202
 
                    return AXIS2_SUCCESS;
2203
 
                }
2204
 
                _ncTerminateInstanceResponseType->property_shutdownState = (axis2_char_t *)axutil_strdup(env, arg_shutdownState);
2205
 
                        if(NULL == _ncTerminateInstanceResponseType->property_shutdownState)
2206
 
                        {
2207
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for shutdownState");
2208
 
                            return AXIS2_FAILURE;
2209
 
                        }
2210
 
                        _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_TRUE;
2211
 
 
2212
 
                return AXIS2_SUCCESS;
2213
 
             }
2214
 
 
2215
 
 
2216
 
 
2217
 
           /**
2218
 
            * resetter for shutdownState
2219
 
            */
2220
 
           axis2_status_t AXIS2_CALL
2221
 
           adb_ncTerminateInstanceResponseType_reset_shutdownState(
2222
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2223
 
                   const axutil_env_t *env)
2224
 
           {
2225
 
               int i = 0;
2226
 
               int count = 0;
2227
 
               void *element = NULL;
2228
 
 
2229
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2230
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2231
 
 
2232
 
 
2233
 
 
2234
 
 
2235
 
 
2236
 
                if(_ncTerminateInstanceResponseType->property_shutdownState != NULL)
2237
 
                {
2238
 
 
2239
 
 
2240
 
                        AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_shutdownState);
2241
 
                     _ncTerminateInstanceResponseType->property_shutdownState = NULL;
2242
 
                }
2243
 
 
2244
 
 
2245
 
 
2246
 
                _ncTerminateInstanceResponseType->is_valid_shutdownState = AXIS2_FALSE;
2247
 
               return AXIS2_SUCCESS;
2248
 
           }
2249
 
 
2250
 
           /**
2251
 
            * Check whether shutdownState is nill
2252
 
            */
2253
 
           axis2_bool_t AXIS2_CALL
2254
 
           adb_ncTerminateInstanceResponseType_is_shutdownState_nil(
2255
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2256
 
                   const axutil_env_t *env)
2257
 
           {
2258
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2259
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
2260
 
 
2261
 
               return !_ncTerminateInstanceResponseType->is_valid_shutdownState;
2262
 
           }
2263
 
 
2264
 
           /**
2265
 
            * Set shutdownState to nill (currently the same as reset)
2266
 
            */
2267
 
           axis2_status_t AXIS2_CALL
2268
 
           adb_ncTerminateInstanceResponseType_set_shutdownState_nil(
2269
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2270
 
                   const axutil_env_t *env)
2271
 
           {
2272
 
               return adb_ncTerminateInstanceResponseType_reset_shutdownState(_ncTerminateInstanceResponseType, env);
2273
 
           }
2274
 
 
2275
 
 
2276
 
 
2277
 
            /**
2278
 
             * getter for previousState.
2279
 
             */
2280
 
            axis2_char_t* AXIS2_CALL
2281
 
            adb_ncTerminateInstanceResponseType_get_previousState(
2282
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2283
 
                    const axutil_env_t *env)
2284
 
             {
2285
 
 
2286
 
                    AXIS2_ENV_CHECK(env, NULL);
2287
 
                    AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, NULL);
2288
 
 
2289
 
 
2290
 
                return _ncTerminateInstanceResponseType->property_previousState;
2291
 
             }
2292
 
 
2293
 
            /**
2294
 
             * setter for previousState
2295
 
             */
2296
 
            axis2_status_t AXIS2_CALL
2297
 
            adb_ncTerminateInstanceResponseType_set_previousState(
2298
 
                    adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2299
 
                    const axutil_env_t *env,
2300
 
                    const axis2_char_t*  arg_previousState)
2301
 
             {
2302
 
 
2303
 
 
2304
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2305
 
                AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2306
 
 
2307
 
                if(_ncTerminateInstanceResponseType->is_valid_previousState &&
2308
 
                        arg_previousState == _ncTerminateInstanceResponseType->property_previousState)
2309
 
                {
2310
 
 
2311
 
                    return AXIS2_SUCCESS;
2312
 
                }
2313
 
 
2314
 
                adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env);
2315
 
 
2316
 
 
2317
 
                if(NULL == arg_previousState)
2318
 
                {
2319
 
                    /* We are already done */
2320
 
                    return AXIS2_SUCCESS;
2321
 
                }
2322
 
                _ncTerminateInstanceResponseType->property_previousState = (axis2_char_t *)axutil_strdup(env, arg_previousState);
2323
 
                        if(NULL == _ncTerminateInstanceResponseType->property_previousState)
2324
 
                        {
2325
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for previousState");
2326
 
                            return AXIS2_FAILURE;
2327
 
                        }
2328
 
                        _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_TRUE;
2329
 
 
2330
 
                return AXIS2_SUCCESS;
2331
 
             }
2332
 
 
2333
 
 
2334
 
 
2335
 
           /**
2336
 
            * resetter for previousState
2337
 
            */
2338
 
           axis2_status_t AXIS2_CALL
2339
 
           adb_ncTerminateInstanceResponseType_reset_previousState(
2340
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2341
 
                   const axutil_env_t *env)
2342
 
           {
2343
 
               int i = 0;
2344
 
               int count = 0;
2345
 
               void *element = NULL;
2346
 
 
2347
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2348
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_FAILURE);
2349
 
 
2350
 
 
2351
 
 
2352
 
 
2353
 
 
2354
 
                if(_ncTerminateInstanceResponseType->property_previousState != NULL)
2355
 
                {
2356
 
 
2357
 
 
2358
 
                        AXIS2_FREE(env-> allocator, _ncTerminateInstanceResponseType->property_previousState);
2359
 
                     _ncTerminateInstanceResponseType->property_previousState = NULL;
2360
 
                }
2361
 
 
2362
 
 
2363
 
 
2364
 
                _ncTerminateInstanceResponseType->is_valid_previousState = AXIS2_FALSE;
2365
 
               return AXIS2_SUCCESS;
2366
 
           }
2367
 
 
2368
 
           /**
2369
 
            * Check whether previousState is nill
2370
 
            */
2371
 
           axis2_bool_t AXIS2_CALL
2372
 
           adb_ncTerminateInstanceResponseType_is_previousState_nil(
2373
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2374
 
                   const axutil_env_t *env)
2375
 
           {
2376
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2377
 
               AXIS2_PARAM_CHECK(env->error, _ncTerminateInstanceResponseType, AXIS2_TRUE);
2378
 
 
2379
 
               return !_ncTerminateInstanceResponseType->is_valid_previousState;
2380
 
           }
2381
 
 
2382
 
           /**
2383
 
            * Set previousState to nill (currently the same as reset)
2384
 
            */
2385
 
           axis2_status_t AXIS2_CALL
2386
 
           adb_ncTerminateInstanceResponseType_set_previousState_nil(
2387
 
                   adb_ncTerminateInstanceResponseType_t* _ncTerminateInstanceResponseType,
2388
 
                   const axutil_env_t *env)
2389
 
           {
2390
 
               return adb_ncTerminateInstanceResponseType_reset_previousState(_ncTerminateInstanceResponseType, env);
2391
 
           }
2392
 
 
2393
 
 
2394