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

« back to all changes in this revision

Viewing changes to cluster/generated/adb_ncGetConsoleOutputResponseType.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_ncGetConsoleOutputResponseType.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_ncGetConsoleOutputResponseType.h"
 
11
        
 
12
                /*
 
13
                 * This type was generated from the piece of schema that had
 
14
                 * name = ncGetConsoleOutputResponseType
 
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
 
16
                 * Namespace Prefix = ns1
 
17
                 */
 
18
           
 
19
 
 
20
 
 
21
        struct adb_ncGetConsoleOutputResponseType
 
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
            axis2_char_t* property_nodeName;
 
42
 
 
43
                
 
44
                axis2_bool_t is_valid_nodeName;
 
45
 
 
46
 
 
47
            int property_statusMessage;
 
48
 
 
49
                
 
50
                axis2_bool_t is_valid_statusMessage;
 
51
 
 
52
 
 
53
            axis2_char_t* property_consoleOutput;
 
54
 
 
55
                
 
56
                axis2_bool_t is_valid_consoleOutput;
 
57
 
 
58
 
 
59
            
 
60
        };
 
61
 
 
62
 
 
63
       /************************* Private Function prototypes ********************************/
 
64
        
 
65
 
 
66
                axis2_status_t AXIS2_CALL
 
67
                adb_ncGetConsoleOutputResponseType_set_userId_nil(
 
68
                        adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
69
                        const axutil_env_t *env);
 
70
            
 
71
 
 
72
                axis2_status_t AXIS2_CALL
 
73
                adb_ncGetConsoleOutputResponseType_set_return_nil(
 
74
                        adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
75
                        const axutil_env_t *env);
 
76
            
 
77
 
 
78
                axis2_status_t AXIS2_CALL
 
79
                adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil(
 
80
                        adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
81
                        const axutil_env_t *env);
 
82
            
 
83
 
 
84
 
 
85
       /************************* Function Implmentations ********************************/
 
86
        adb_ncGetConsoleOutputResponseType_t* AXIS2_CALL
 
87
        adb_ncGetConsoleOutputResponseType_create(
 
88
            const axutil_env_t *env)
 
89
        {
 
90
            adb_ncGetConsoleOutputResponseType_t *_ncGetConsoleOutputResponseType = NULL;
 
91
            
 
92
            AXIS2_ENV_CHECK(env, NULL);
 
93
 
 
94
            _ncGetConsoleOutputResponseType = (adb_ncGetConsoleOutputResponseType_t *) AXIS2_MALLOC(env->
 
95
                allocator, sizeof(adb_ncGetConsoleOutputResponseType_t));
 
96
 
 
97
            if(NULL == _ncGetConsoleOutputResponseType)
 
98
            {
 
99
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
 
100
                return NULL;
 
101
            }
 
102
 
 
103
            memset(_ncGetConsoleOutputResponseType, 0, sizeof(adb_ncGetConsoleOutputResponseType_t));
 
104
 
 
105
            _ncGetConsoleOutputResponseType->property_correlationId  = NULL;
 
106
                  _ncGetConsoleOutputResponseType->is_valid_correlationId  = AXIS2_FALSE;
 
107
            _ncGetConsoleOutputResponseType->property_userId  = NULL;
 
108
                  _ncGetConsoleOutputResponseType->is_valid_userId  = AXIS2_FALSE;
 
109
            _ncGetConsoleOutputResponseType->is_valid_return  = AXIS2_FALSE;
 
110
            _ncGetConsoleOutputResponseType->property_nodeName  = NULL;
 
111
                  _ncGetConsoleOutputResponseType->is_valid_nodeName  = AXIS2_FALSE;
 
112
            _ncGetConsoleOutputResponseType->is_valid_statusMessage  = AXIS2_FALSE;
 
113
            _ncGetConsoleOutputResponseType->property_consoleOutput  = NULL;
 
114
                  _ncGetConsoleOutputResponseType->is_valid_consoleOutput  = AXIS2_FALSE;
 
115
            
 
116
 
 
117
            return _ncGetConsoleOutputResponseType;
 
118
        }
 
119
 
 
120
        axis2_status_t AXIS2_CALL
 
121
        adb_ncGetConsoleOutputResponseType_free (
 
122
                adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
123
                const axutil_env_t *env)
 
124
        {
 
125
            
 
126
 
 
127
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
128
            AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
129
 
 
130
            adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env);
 
131
            adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env);
 
132
            adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env);
 
133
            adb_ncGetConsoleOutputResponseType_reset_nodeName(_ncGetConsoleOutputResponseType, env);
 
134
            adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env);
 
135
            adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env);
 
136
            
 
137
 
 
138
            if(_ncGetConsoleOutputResponseType)
 
139
            {
 
140
                AXIS2_FREE(env->allocator, _ncGetConsoleOutputResponseType);
 
141
                _ncGetConsoleOutputResponseType = NULL;
 
142
            }
 
143
            return AXIS2_SUCCESS;
 
144
        }
 
145
 
 
146
 
 
147
        
 
148
 
 
149
        axis2_status_t AXIS2_CALL
 
150
        adb_ncGetConsoleOutputResponseType_deserialize(
 
151
                adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
152
                const axutil_env_t *env,
 
153
                axiom_node_t **dp_parent,
 
154
                axis2_bool_t *dp_is_early_node_valid,
 
155
                axis2_bool_t dont_care_minoccurs)
 
156
        {
 
157
          axiom_node_t *parent = *dp_parent;
 
158
          
 
159
          axis2_status_t status = AXIS2_SUCCESS;
 
160
           
 
161
             axis2_char_t* text_value = NULL;
 
162
             axutil_qname_t *qname = NULL;
 
163
          
 
164
            axutil_qname_t *element_qname = NULL; 
 
165
            
 
166
               axiom_node_t *first_node = NULL;
 
167
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
 
168
               axiom_node_t *current_node = NULL;
 
169
               axiom_element_t *current_element = NULL;
 
170
            
 
171
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
172
            AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
173
 
 
174
            
 
175
              
 
176
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
 
177
              {
 
178
                  parent = axiom_node_get_next_sibling(parent, env);
 
179
              }
 
180
              if (NULL == parent)
 
181
              {
 
182
                /* This should be checked before everything */
 
183
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
 
184
                            "Failed in building adb object for ncGetConsoleOutputResponseType : "
 
185
                            "NULL elemenet can not be passed to deserialize");
 
186
                return AXIS2_FAILURE;
 
187
              }
 
188
              
 
189
                      
 
190
                      first_node = axiom_node_get_first_child(parent, env);
 
191
                      
 
192
                    
 
193
 
 
194
                     
 
195
                     /*
 
196
                      * building correlationId element
 
197
                      */
 
198
                     
 
199
                     
 
200
                     
 
201
                                   current_node = first_node;
 
202
                                   is_early_node_valid = AXIS2_FALSE;
 
203
                                   
 
204
                                   
 
205
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
206
                                    {
 
207
                                        current_node = axiom_node_get_next_sibling(current_node, env);
 
208
                                    }
 
209
                                    if(current_node != NULL)
 
210
                                    {
 
211
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
212
                                        qname = axiom_element_get_qname(current_element, env, current_node);
 
213
                                    }
 
214
                                   
 
215
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
 
216
                                 
 
217
 
 
218
                           if ( 
 
219
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
220
                           {
 
221
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
222
                              {
 
223
                                is_early_node_valid = AXIS2_TRUE;
 
224
                              }
 
225
                              
 
226
                                 
 
227
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
228
                                      if(text_value != NULL)
 
229
                                      {
 
230
                                            status = adb_ncGetConsoleOutputResponseType_set_correlationId(_ncGetConsoleOutputResponseType, env,
 
231
                                                               text_value);
 
232
                                      }
 
233
                                      
 
234
                                 if(AXIS2_FAILURE ==  status)
 
235
                                 {
 
236
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
 
237
                                     if(element_qname)
 
238
                                     {
 
239
                                         axutil_qname_free(element_qname, env);
 
240
                                     }
 
241
                                     return AXIS2_FAILURE;
 
242
                                 }
 
243
                              }
 
244
                           
 
245
                  if(element_qname)
 
246
                  {
 
247
                     axutil_qname_free(element_qname, env);
 
248
                     element_qname = NULL;
 
249
                  }
 
250
                 
 
251
 
 
252
                     
 
253
                     /*
 
254
                      * building userId element
 
255
                      */
 
256
                     
 
257
                     
 
258
                     
 
259
                                    /*
 
260
                                     * because elements are ordered this works fine
 
261
                                     */
 
262
                                  
 
263
                                   
 
264
                                   if(current_node != NULL && is_early_node_valid)
 
265
                                   {
 
266
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
267
                                       
 
268
                                       
 
269
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
270
                                        {
 
271
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
272
                                        }
 
273
                                        if(current_node != NULL)
 
274
                                        {
 
275
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
276
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
277
                                        }
 
278
                                       
 
279
                                   }
 
280
                                   is_early_node_valid = AXIS2_FALSE;
 
281
                                 
 
282
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
 
283
                                 
 
284
 
 
285
                           if ( 
 
286
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
287
                           {
 
288
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
289
                              {
 
290
                                is_early_node_valid = AXIS2_TRUE;
 
291
                              }
 
292
                              
 
293
                                 
 
294
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
295
                                      if(text_value != NULL)
 
296
                                      {
 
297
                                            status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env,
 
298
                                                               text_value);
 
299
                                      }
 
300
                                      
 
301
                                      else
 
302
                                      {
 
303
                                            /*
 
304
                                             * axis2_qname_t *qname = NULL;
 
305
                                             * axiom_attribute_t *the_attri = NULL;
 
306
                                             * 
 
307
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
308
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
309
                                             */
 
310
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
311
 
 
312
                                            axiom_attribute_t *the_attri = NULL;
 
313
                                            axis2_char_t *attrib_text = NULL;
 
314
                                            axutil_hash_t *attribute_hash = NULL;
 
315
 
 
316
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
317
 
 
318
                                            attrib_text = NULL;
 
319
                                            if(attribute_hash)
 
320
                                            {
 
321
                                                 axutil_hash_index_t *hi;
 
322
                                                 void *val;
 
323
                                                 const void *key;
 
324
                                        
 
325
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
326
                                                 {
 
327
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
328
                                                     
 
329
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
330
                                                     {
 
331
                                                         the_attri = (axiom_attribute_t*)val;
 
332
                                                         break;
 
333
                                                     }
 
334
                                                 }
 
335
                                            }
 
336
 
 
337
                                            if(the_attri)
 
338
                                            {
 
339
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
340
                                            }
 
341
                                            else
 
342
                                            {
 
343
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
344
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
345
                                            }
 
346
 
 
347
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
348
                                            {
 
349
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
 
350
                                                status = AXIS2_FAILURE;
 
351
                                            }
 
352
                                            else
 
353
                                            {
 
354
                                                /* after all, we found this is a empty string */
 
355
                                                status = adb_ncGetConsoleOutputResponseType_set_userId(_ncGetConsoleOutputResponseType, env,
 
356
                                                                   "");
 
357
                                            }
 
358
                                      }
 
359
                                      
 
360
                                 if(AXIS2_FAILURE ==  status)
 
361
                                 {
 
362
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
 
363
                                     if(element_qname)
 
364
                                     {
 
365
                                         axutil_qname_free(element_qname, env);
 
366
                                     }
 
367
                                     return AXIS2_FAILURE;
 
368
                                 }
 
369
                              }
 
370
                           
 
371
                  if(element_qname)
 
372
                  {
 
373
                     axutil_qname_free(element_qname, env);
 
374
                     element_qname = NULL;
 
375
                  }
 
376
                 
 
377
 
 
378
                     
 
379
                     /*
 
380
                      * building return element
 
381
                      */
 
382
                     
 
383
                     
 
384
                     
 
385
                                    /*
 
386
                                     * because elements are ordered this works fine
 
387
                                     */
 
388
                                  
 
389
                                   
 
390
                                   if(current_node != NULL && is_early_node_valid)
 
391
                                   {
 
392
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
393
                                       
 
394
                                       
 
395
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
396
                                        {
 
397
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
398
                                        }
 
399
                                        if(current_node != NULL)
 
400
                                        {
 
401
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
402
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
403
                                        }
 
404
                                       
 
405
                                   }
 
406
                                   is_early_node_valid = AXIS2_FALSE;
 
407
                                 
 
408
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
 
409
                                 
 
410
 
 
411
                           if ( 
 
412
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
413
                           {
 
414
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
415
                              {
 
416
                                is_early_node_valid = AXIS2_TRUE;
 
417
                              }
 
418
                              
 
419
                                 
 
420
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
421
                                      if(text_value != NULL)
 
422
                                      {
 
423
                                            if (!axutil_strcasecmp(text_value , "true"))
 
424
                                            {
 
425
                                                status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env,
 
426
                                                                 AXIS2_TRUE);
 
427
                                            }
 
428
                                            else
 
429
                                            {
 
430
                                                status = adb_ncGetConsoleOutputResponseType_set_return(_ncGetConsoleOutputResponseType, env,
 
431
                                                                      AXIS2_FALSE);
 
432
                                            }
 
433
                                      }
 
434
                                      
 
435
                                      else
 
436
                                      {
 
437
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
 
438
                                          status = AXIS2_FAILURE;
 
439
                                      }
 
440
                                      
 
441
                                 if(AXIS2_FAILURE ==  status)
 
442
                                 {
 
443
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
 
444
                                     if(element_qname)
 
445
                                     {
 
446
                                         axutil_qname_free(element_qname, env);
 
447
                                     }
 
448
                                     return AXIS2_FAILURE;
 
449
                                 }
 
450
                              }
 
451
                           
 
452
                  if(element_qname)
 
453
                  {
 
454
                     axutil_qname_free(element_qname, env);
 
455
                     element_qname = NULL;
 
456
                  }
 
457
                 
 
458
 
 
459
                     
 
460
                     /*
 
461
                      * building nodeName element
 
462
                      */
 
463
                     
 
464
                     
 
465
                     
 
466
                                    /*
 
467
                                     * because elements are ordered this works fine
 
468
                                     */
 
469
                                  
 
470
                                   
 
471
                                   if(current_node != NULL && is_early_node_valid)
 
472
                                   {
 
473
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
474
                                       
 
475
                                       
 
476
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
477
                                        {
 
478
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
479
                                        }
 
480
                                        if(current_node != NULL)
 
481
                                        {
 
482
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
483
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
484
                                        }
 
485
                                       
 
486
                                   }
 
487
                                   is_early_node_valid = AXIS2_FALSE;
 
488
                                 
 
489
                                 element_qname = axutil_qname_create(env, "nodeName", "http://eucalyptus.ucsb.edu/", NULL);
 
490
                                 
 
491
 
 
492
                           if ( 
 
493
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
494
                           {
 
495
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
496
                              {
 
497
                                is_early_node_valid = AXIS2_TRUE;
 
498
                              }
 
499
                              
 
500
                                 
 
501
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
502
                                      if(text_value != NULL)
 
503
                                      {
 
504
                                            status = adb_ncGetConsoleOutputResponseType_set_nodeName(_ncGetConsoleOutputResponseType, env,
 
505
                                                               text_value);
 
506
                                      }
 
507
                                      
 
508
                                 if(AXIS2_FAILURE ==  status)
 
509
                                 {
 
510
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for nodeName ");
 
511
                                     if(element_qname)
 
512
                                     {
 
513
                                         axutil_qname_free(element_qname, env);
 
514
                                     }
 
515
                                     return AXIS2_FAILURE;
 
516
                                 }
 
517
                              }
 
518
                           
 
519
                  if(element_qname)
 
520
                  {
 
521
                     axutil_qname_free(element_qname, env);
 
522
                     element_qname = NULL;
 
523
                  }
 
524
                 
 
525
 
 
526
                     
 
527
                     /*
 
528
                      * building statusMessage element
 
529
                      */
 
530
                     
 
531
                     
 
532
                     
 
533
                                    /*
 
534
                                     * because elements are ordered this works fine
 
535
                                     */
 
536
                                  
 
537
                                   
 
538
                                   if(current_node != NULL && is_early_node_valid)
 
539
                                   {
 
540
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
541
                                       
 
542
                                       
 
543
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
544
                                        {
 
545
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
546
                                        }
 
547
                                        if(current_node != NULL)
 
548
                                        {
 
549
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
550
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
551
                                        }
 
552
                                       
 
553
                                   }
 
554
                                   is_early_node_valid = AXIS2_FALSE;
 
555
                                 
 
556
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
 
557
                                 
 
558
 
 
559
                           if ( 
 
560
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
561
                           {
 
562
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
563
                              {
 
564
                                is_early_node_valid = AXIS2_TRUE;
 
565
                              }
 
566
                              
 
567
                                 
 
568
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
569
                                      if(text_value != NULL)
 
570
                                      {
 
571
                                            status = adb_ncGetConsoleOutputResponseType_set_statusMessage(_ncGetConsoleOutputResponseType, env,
 
572
                                                                   atoi(text_value));
 
573
                                      }
 
574
                                      
 
575
                                 if(AXIS2_FAILURE ==  status)
 
576
                                 {
 
577
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
 
578
                                     if(element_qname)
 
579
                                     {
 
580
                                         axutil_qname_free(element_qname, env);
 
581
                                     }
 
582
                                     return AXIS2_FAILURE;
 
583
                                 }
 
584
                              }
 
585
                           
 
586
                  if(element_qname)
 
587
                  {
 
588
                     axutil_qname_free(element_qname, env);
 
589
                     element_qname = NULL;
 
590
                  }
 
591
                 
 
592
 
 
593
                     
 
594
                     /*
 
595
                      * building consoleOutput element
 
596
                      */
 
597
                     
 
598
                     
 
599
                     
 
600
                                    /*
 
601
                                     * because elements are ordered this works fine
 
602
                                     */
 
603
                                  
 
604
                                   
 
605
                                   if(current_node != NULL && is_early_node_valid)
 
606
                                   {
 
607
                                       current_node = axiom_node_get_next_sibling(current_node, env);
 
608
                                       
 
609
                                       
 
610
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
 
611
                                        {
 
612
                                            current_node = axiom_node_get_next_sibling(current_node, env);
 
613
                                        }
 
614
                                        if(current_node != NULL)
 
615
                                        {
 
616
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
 
617
                                            qname = axiom_element_get_qname(current_element, env, current_node);
 
618
                                        }
 
619
                                       
 
620
                                   }
 
621
                                   is_early_node_valid = AXIS2_FALSE;
 
622
                                 
 
623
                                 element_qname = axutil_qname_create(env, "consoleOutput", "http://eucalyptus.ucsb.edu/", NULL);
 
624
                                 
 
625
 
 
626
                           if ( 
 
627
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
 
628
                           {
 
629
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
 
630
                              {
 
631
                                is_early_node_valid = AXIS2_TRUE;
 
632
                              }
 
633
                              
 
634
                                 
 
635
                                      text_value = axiom_element_get_text(current_element, env, current_node);
 
636
                                      if(text_value != NULL)
 
637
                                      {
 
638
                                            status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env,
 
639
                                                               text_value);
 
640
                                      }
 
641
                                      
 
642
                                      else
 
643
                                      {
 
644
                                            /*
 
645
                                             * axis2_qname_t *qname = NULL;
 
646
                                             * axiom_attribute_t *the_attri = NULL;
 
647
                                             * 
 
648
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
 
649
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
 
650
                                             */
 
651
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
 
652
 
 
653
                                            axiom_attribute_t *the_attri = NULL;
 
654
                                            axis2_char_t *attrib_text = NULL;
 
655
                                            axutil_hash_t *attribute_hash = NULL;
 
656
 
 
657
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
 
658
 
 
659
                                            attrib_text = NULL;
 
660
                                            if(attribute_hash)
 
661
                                            {
 
662
                                                 axutil_hash_index_t *hi;
 
663
                                                 void *val;
 
664
                                                 const void *key;
 
665
                                        
 
666
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi)) 
 
667
                                                 {
 
668
                                                     axutil_hash_this(hi, &key, NULL, &val);
 
669
                                                     
 
670
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
 
671
                                                     {
 
672
                                                         the_attri = (axiom_attribute_t*)val;
 
673
                                                         break;
 
674
                                                     }
 
675
                                                 }
 
676
                                            }
 
677
 
 
678
                                            if(the_attri)
 
679
                                            {
 
680
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
 
681
                                            }
 
682
                                            else
 
683
                                            {
 
684
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
 
685
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
 
686
                                            }
 
687
 
 
688
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
 
689
                                            {
 
690
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element consoleOutput");
 
691
                                                status = AXIS2_FAILURE;
 
692
                                            }
 
693
                                            else
 
694
                                            {
 
695
                                                /* after all, we found this is a empty string */
 
696
                                                status = adb_ncGetConsoleOutputResponseType_set_consoleOutput(_ncGetConsoleOutputResponseType, env,
 
697
                                                                   "");
 
698
                                            }
 
699
                                      }
 
700
                                      
 
701
                                 if(AXIS2_FAILURE ==  status)
 
702
                                 {
 
703
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for consoleOutput ");
 
704
                                     if(element_qname)
 
705
                                     {
 
706
                                         axutil_qname_free(element_qname, env);
 
707
                                     }
 
708
                                     return AXIS2_FAILURE;
 
709
                                 }
 
710
                              }
 
711
                           
 
712
                              else if(!dont_care_minoccurs)
 
713
                              {
 
714
                                  if(element_qname)
 
715
                                  {
 
716
                                      axutil_qname_free(element_qname, env);
 
717
                                  }
 
718
                                  /* this is not a nillable element*/
 
719
                                  AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element consoleOutput missing");
 
720
                                  return AXIS2_FAILURE;
 
721
                              }
 
722
                           
 
723
                  if(element_qname)
 
724
                  {
 
725
                     axutil_qname_free(element_qname, env);
 
726
                     element_qname = NULL;
 
727
                  }
 
728
                 
 
729
          return status;
 
730
       }
 
731
 
 
732
          axis2_bool_t AXIS2_CALL
 
733
          adb_ncGetConsoleOutputResponseType_is_particle()
 
734
          {
 
735
            
 
736
                 return AXIS2_FALSE;
 
737
              
 
738
          }
 
739
 
 
740
 
 
741
          void AXIS2_CALL
 
742
          adb_ncGetConsoleOutputResponseType_declare_parent_namespaces(
 
743
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
744
                    const axutil_env_t *env, axiom_element_t *parent_element,
 
745
                    axutil_hash_t *namespaces, int *next_ns_index)
 
746
          {
 
747
            
 
748
                  /* Here this is an empty function, Nothing to declare */
 
749
                 
 
750
          }
 
751
 
 
752
        
 
753
        
 
754
        axiom_node_t* AXIS2_CALL
 
755
        adb_ncGetConsoleOutputResponseType_serialize(
 
756
                adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
757
                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)
 
758
        {
 
759
            
 
760
            
 
761
             axis2_char_t *string_to_stream;
 
762
            
 
763
         
 
764
         axiom_node_t *current_node = NULL;
 
765
         int tag_closed = 0;
 
766
 
 
767
         
 
768
         
 
769
                axiom_namespace_t *ns1 = NULL;
 
770
 
 
771
                axis2_char_t *qname_uri = NULL;
 
772
                axis2_char_t *qname_prefix = NULL;
 
773
                axis2_char_t *p_prefix = NULL;
 
774
                axis2_bool_t ns_already_defined;
 
775
            
 
776
                    axis2_char_t *text_value_1;
 
777
                    axis2_char_t *text_value_1_temp;
 
778
                    
 
779
                    axis2_char_t *text_value_2;
 
780
                    axis2_char_t *text_value_2_temp;
 
781
                    
 
782
                    axis2_char_t text_value_3[64];
 
783
                    
 
784
                    axis2_char_t *text_value_4;
 
785
                    axis2_char_t *text_value_4_temp;
 
786
                    
 
787
                    axis2_char_t text_value_5[64];
 
788
                    
 
789
                    axis2_char_t *text_value_6;
 
790
                    axis2_char_t *text_value_6_temp;
 
791
                    
 
792
               axis2_char_t *start_input_str = NULL;
 
793
               axis2_char_t *end_input_str = NULL;
 
794
               unsigned int start_input_str_len = 0;
 
795
               unsigned int end_input_str_len = 0;
 
796
            
 
797
            
 
798
               axiom_data_source_t *data_source = NULL;
 
799
               axutil_stream_t *stream = NULL;
 
800
 
 
801
            
 
802
 
 
803
            AXIS2_ENV_CHECK(env, NULL);
 
804
            AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL);
 
805
            
 
806
            
 
807
                    current_node = parent;
 
808
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
 
809
                    if (!data_source)
 
810
                        return NULL;
 
811
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
 
812
                    if (!stream)
 
813
                        return NULL;
 
814
                  
 
815
            if(!parent_tag_closed)
 
816
            {
 
817
            
 
818
              string_to_stream = ">"; 
 
819
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
 
820
              tag_closed = 1;
 
821
            
 
822
            }
 
823
            
 
824
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
825
                       {
 
826
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
827
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
828
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
829
                           
 
830
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
831
                                            "http://eucalyptus.ucsb.edu/",
 
832
                                            p_prefix));
 
833
                       }
 
834
                      
 
835
 
 
836
                   if (!_ncGetConsoleOutputResponseType->is_valid_correlationId)
 
837
                   {
 
838
                      
 
839
                           /* no need to complain for minoccurs=0 element */
 
840
                            
 
841
                          
 
842
                   }
 
843
                   else
 
844
                   {
 
845
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
846
                                 (4 + axutil_strlen(p_prefix) + 
 
847
                                  axutil_strlen("correlationId"))); 
 
848
                                 
 
849
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
850
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
851
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
 
852
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
853
                                  
 
854
                     
 
855
 
 
856
                   
 
857
                   
 
858
                     
 
859
                     /*
 
860
                      * parsing correlationId element
 
861
                      */
 
862
 
 
863
                    
 
864
                    
 
865
                            sprintf(start_input_str, "<%s%scorrelationId>",
 
866
                                 p_prefix?p_prefix:"",
 
867
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
868
                            
 
869
                        start_input_str_len = axutil_strlen(start_input_str);
 
870
                        sprintf(end_input_str, "</%s%scorrelationId>",
 
871
                                 p_prefix?p_prefix:"",
 
872
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
873
                        end_input_str_len = axutil_strlen(end_input_str);
 
874
                    
 
875
                           text_value_1 = _ncGetConsoleOutputResponseType->property_correlationId;
 
876
                           
 
877
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
878
                           
 
879
                            
 
880
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
 
881
                           if (text_value_1_temp)
 
882
                           {
 
883
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
 
884
                               AXIS2_FREE(env->allocator, text_value_1_temp);
 
885
                           }
 
886
                           else
 
887
                           {
 
888
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
 
889
                           }
 
890
                           
 
891
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
892
                           
 
893
                     
 
894
                     AXIS2_FREE(env->allocator,start_input_str);
 
895
                     AXIS2_FREE(env->allocator,end_input_str);
 
896
                 } 
 
897
 
 
898
                 
 
899
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
900
                       {
 
901
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
902
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
903
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
904
                           
 
905
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
906
                                            "http://eucalyptus.ucsb.edu/",
 
907
                                            p_prefix));
 
908
                       }
 
909
                      
 
910
 
 
911
                   if (!_ncGetConsoleOutputResponseType->is_valid_userId)
 
912
                   {
 
913
                      
 
914
                           /* no need to complain for minoccurs=0 element */
 
915
                            
 
916
                          
 
917
                   }
 
918
                   else
 
919
                   {
 
920
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
921
                                 (4 + axutil_strlen(p_prefix) + 
 
922
                                  axutil_strlen("userId"))); 
 
923
                                 
 
924
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
925
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
926
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
 
927
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
928
                                  
 
929
                     
 
930
 
 
931
                   
 
932
                   
 
933
                     
 
934
                     /*
 
935
                      * parsing userId element
 
936
                      */
 
937
 
 
938
                    
 
939
                    
 
940
                            sprintf(start_input_str, "<%s%suserId>",
 
941
                                 p_prefix?p_prefix:"",
 
942
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
943
                            
 
944
                        start_input_str_len = axutil_strlen(start_input_str);
 
945
                        sprintf(end_input_str, "</%s%suserId>",
 
946
                                 p_prefix?p_prefix:"",
 
947
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
948
                        end_input_str_len = axutil_strlen(end_input_str);
 
949
                    
 
950
                           text_value_2 = _ncGetConsoleOutputResponseType->property_userId;
 
951
                           
 
952
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
953
                           
 
954
                            
 
955
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
 
956
                           if (text_value_2_temp)
 
957
                           {
 
958
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
 
959
                               AXIS2_FREE(env->allocator, text_value_2_temp);
 
960
                           }
 
961
                           else
 
962
                           {
 
963
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
 
964
                           }
 
965
                           
 
966
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
967
                           
 
968
                     
 
969
                     AXIS2_FREE(env->allocator,start_input_str);
 
970
                     AXIS2_FREE(env->allocator,end_input_str);
 
971
                 } 
 
972
 
 
973
                 
 
974
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
975
                       {
 
976
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
977
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
978
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
979
                           
 
980
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
981
                                            "http://eucalyptus.ucsb.edu/",
 
982
                                            p_prefix));
 
983
                       }
 
984
                      
 
985
 
 
986
                   if (!_ncGetConsoleOutputResponseType->is_valid_return)
 
987
                   {
 
988
                      
 
989
                           /* no need to complain for minoccurs=0 element */
 
990
                            
 
991
                          
 
992
                   }
 
993
                   else
 
994
                   {
 
995
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
996
                                 (4 + axutil_strlen(p_prefix) + 
 
997
                                  axutil_strlen("return"))); 
 
998
                                 
 
999
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1000
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1001
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
 
1002
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1003
                                  
 
1004
                     
 
1005
 
 
1006
                   
 
1007
                   
 
1008
                     
 
1009
                     /*
 
1010
                      * parsing return element
 
1011
                      */
 
1012
 
 
1013
                    
 
1014
                    
 
1015
                            sprintf(start_input_str, "<%s%sreturn>",
 
1016
                                 p_prefix?p_prefix:"",
 
1017
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1018
                            
 
1019
                        start_input_str_len = axutil_strlen(start_input_str);
 
1020
                        sprintf(end_input_str, "</%s%sreturn>",
 
1021
                                 p_prefix?p_prefix:"",
 
1022
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1023
                        end_input_str_len = axutil_strlen(end_input_str);
 
1024
                    
 
1025
                           strcpy(text_value_3, (_ncGetConsoleOutputResponseType->property_return)?"true":"false");
 
1026
                           
 
1027
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1028
                           
 
1029
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
 
1030
                           
 
1031
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1032
                           
 
1033
                     
 
1034
                     AXIS2_FREE(env->allocator,start_input_str);
 
1035
                     AXIS2_FREE(env->allocator,end_input_str);
 
1036
                 } 
 
1037
 
 
1038
                 
 
1039
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1040
                       {
 
1041
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1042
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1043
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1044
                           
 
1045
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1046
                                            "http://eucalyptus.ucsb.edu/",
 
1047
                                            p_prefix));
 
1048
                       }
 
1049
                      
 
1050
 
 
1051
                   if (!_ncGetConsoleOutputResponseType->is_valid_nodeName)
 
1052
                   {
 
1053
                      
 
1054
                           /* no need to complain for minoccurs=0 element */
 
1055
                            
 
1056
                          
 
1057
                   }
 
1058
                   else
 
1059
                   {
 
1060
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1061
                                 (4 + axutil_strlen(p_prefix) + 
 
1062
                                  axutil_strlen("nodeName"))); 
 
1063
                                 
 
1064
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1065
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1066
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeName")));
 
1067
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1068
                                  
 
1069
                     
 
1070
 
 
1071
                   
 
1072
                   
 
1073
                     
 
1074
                     /*
 
1075
                      * parsing nodeName element
 
1076
                      */
 
1077
 
 
1078
                    
 
1079
                    
 
1080
                            sprintf(start_input_str, "<%s%snodeName>",
 
1081
                                 p_prefix?p_prefix:"",
 
1082
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1083
                            
 
1084
                        start_input_str_len = axutil_strlen(start_input_str);
 
1085
                        sprintf(end_input_str, "</%s%snodeName>",
 
1086
                                 p_prefix?p_prefix:"",
 
1087
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1088
                        end_input_str_len = axutil_strlen(end_input_str);
 
1089
                    
 
1090
                           text_value_4 = _ncGetConsoleOutputResponseType->property_nodeName;
 
1091
                           
 
1092
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1093
                           
 
1094
                            
 
1095
                           text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
 
1096
                           if (text_value_4_temp)
 
1097
                           {
 
1098
                               axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
 
1099
                               AXIS2_FREE(env->allocator, text_value_4_temp);
 
1100
                           }
 
1101
                           else
 
1102
                           {
 
1103
                               axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
 
1104
                           }
 
1105
                           
 
1106
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1107
                           
 
1108
                     
 
1109
                     AXIS2_FREE(env->allocator,start_input_str);
 
1110
                     AXIS2_FREE(env->allocator,end_input_str);
 
1111
                 } 
 
1112
 
 
1113
                 
 
1114
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1115
                       {
 
1116
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1117
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1118
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1119
                           
 
1120
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1121
                                            "http://eucalyptus.ucsb.edu/",
 
1122
                                            p_prefix));
 
1123
                       }
 
1124
                      
 
1125
 
 
1126
                   if (!_ncGetConsoleOutputResponseType->is_valid_statusMessage)
 
1127
                   {
 
1128
                      
 
1129
                           /* no need to complain for minoccurs=0 element */
 
1130
                            
 
1131
                          
 
1132
                   }
 
1133
                   else
 
1134
                   {
 
1135
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1136
                                 (4 + axutil_strlen(p_prefix) + 
 
1137
                                  axutil_strlen("statusMessage"))); 
 
1138
                                 
 
1139
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1140
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1141
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
 
1142
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1143
                                  
 
1144
                     
 
1145
 
 
1146
                   
 
1147
                   
 
1148
                     
 
1149
                     /*
 
1150
                      * parsing statusMessage element
 
1151
                      */
 
1152
 
 
1153
                    
 
1154
                    
 
1155
                            sprintf(start_input_str, "<%s%sstatusMessage>",
 
1156
                                 p_prefix?p_prefix:"",
 
1157
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1158
                            
 
1159
                        start_input_str_len = axutil_strlen(start_input_str);
 
1160
                        sprintf(end_input_str, "</%s%sstatusMessage>",
 
1161
                                 p_prefix?p_prefix:"",
 
1162
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1163
                        end_input_str_len = axutil_strlen(end_input_str);
 
1164
                    
 
1165
                               sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncGetConsoleOutputResponseType->property_statusMessage);
 
1166
                             
 
1167
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1168
                           
 
1169
                           axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
 
1170
                           
 
1171
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1172
                           
 
1173
                     
 
1174
                     AXIS2_FREE(env->allocator,start_input_str);
 
1175
                     AXIS2_FREE(env->allocator,end_input_str);
 
1176
                 } 
 
1177
 
 
1178
                 
 
1179
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1180
                       {
 
1181
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1182
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1183
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1184
                           
 
1185
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1186
                                            "http://eucalyptus.ucsb.edu/",
 
1187
                                            p_prefix));
 
1188
                       }
 
1189
                      
 
1190
 
 
1191
                   if (!_ncGetConsoleOutputResponseType->is_valid_consoleOutput)
 
1192
                   {
 
1193
                      
 
1194
                            
 
1195
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property consoleOutput");
 
1196
                            return NULL;
 
1197
                          
 
1198
                   }
 
1199
                   else
 
1200
                   {
 
1201
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1202
                                 (4 + axutil_strlen(p_prefix) + 
 
1203
                                  axutil_strlen("consoleOutput"))); 
 
1204
                                 
 
1205
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1206
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1207
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("consoleOutput")));
 
1208
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1209
                                  
 
1210
                     
 
1211
 
 
1212
                   
 
1213
                   
 
1214
                     
 
1215
                     /*
 
1216
                      * parsing consoleOutput element
 
1217
                      */
 
1218
 
 
1219
                    
 
1220
                    
 
1221
                            sprintf(start_input_str, "<%s%sconsoleOutput>",
 
1222
                                 p_prefix?p_prefix:"",
 
1223
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1224
                            
 
1225
                        start_input_str_len = axutil_strlen(start_input_str);
 
1226
                        sprintf(end_input_str, "</%s%sconsoleOutput>",
 
1227
                                 p_prefix?p_prefix:"",
 
1228
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1229
                        end_input_str_len = axutil_strlen(end_input_str);
 
1230
                    
 
1231
                           text_value_6 = _ncGetConsoleOutputResponseType->property_consoleOutput;
 
1232
                           
 
1233
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1234
                           
 
1235
                            
 
1236
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
 
1237
                           if (text_value_6_temp)
 
1238
                           {
 
1239
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
 
1240
                               AXIS2_FREE(env->allocator, text_value_6_temp);
 
1241
                           }
 
1242
                           else
 
1243
                           {
 
1244
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
 
1245
                           }
 
1246
                           
 
1247
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1248
                           
 
1249
                     
 
1250
                     AXIS2_FREE(env->allocator,start_input_str);
 
1251
                     AXIS2_FREE(env->allocator,end_input_str);
 
1252
                 } 
 
1253
 
 
1254
                 
 
1255
 
 
1256
            return parent;
 
1257
        }
 
1258
 
 
1259
 
 
1260
        
 
1261
 
 
1262
            /**
 
1263
             * getter for correlationId.
 
1264
             */
 
1265
            axis2_char_t* AXIS2_CALL
 
1266
            adb_ncGetConsoleOutputResponseType_get_correlationId(
 
1267
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1268
                    const axutil_env_t *env)
 
1269
             {
 
1270
                
 
1271
                    AXIS2_ENV_CHECK(env, NULL);
 
1272
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL);
 
1273
                  
 
1274
 
 
1275
                return _ncGetConsoleOutputResponseType->property_correlationId;
 
1276
             }
 
1277
 
 
1278
            /**
 
1279
             * setter for correlationId
 
1280
             */
 
1281
            axis2_status_t AXIS2_CALL
 
1282
            adb_ncGetConsoleOutputResponseType_set_correlationId(
 
1283
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1284
                    const axutil_env_t *env,
 
1285
                    const axis2_char_t*  arg_correlationId)
 
1286
             {
 
1287
                
 
1288
 
 
1289
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1290
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1291
                
 
1292
                if(_ncGetConsoleOutputResponseType->is_valid_correlationId &&
 
1293
                        arg_correlationId == _ncGetConsoleOutputResponseType->property_correlationId)
 
1294
                {
 
1295
                    
 
1296
                    return AXIS2_SUCCESS; 
 
1297
                }
 
1298
 
 
1299
                adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env);
 
1300
 
 
1301
                
 
1302
                if(NULL == arg_correlationId)
 
1303
                {
 
1304
                    /* We are already done */
 
1305
                    return AXIS2_SUCCESS;
 
1306
                }
 
1307
                _ncGetConsoleOutputResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
 
1308
                        if(NULL == _ncGetConsoleOutputResponseType->property_correlationId)
 
1309
                        {
 
1310
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
 
1311
                            return AXIS2_FAILURE;
 
1312
                        }
 
1313
                        _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_TRUE;
 
1314
                    
 
1315
                return AXIS2_SUCCESS;
 
1316
             }
 
1317
 
 
1318
             
 
1319
 
 
1320
           /**
 
1321
            * resetter for correlationId
 
1322
            */
 
1323
           axis2_status_t AXIS2_CALL
 
1324
           adb_ncGetConsoleOutputResponseType_reset_correlationId(
 
1325
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1326
                   const axutil_env_t *env)
 
1327
           {
 
1328
               int i = 0;
 
1329
               int count = 0;
 
1330
               void *element = NULL;
 
1331
 
 
1332
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1333
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1334
               
 
1335
 
 
1336
               
 
1337
            
 
1338
                
 
1339
                if(_ncGetConsoleOutputResponseType->property_correlationId != NULL)
 
1340
                {
 
1341
                   
 
1342
                   
 
1343
                        AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_correlationId);
 
1344
                     _ncGetConsoleOutputResponseType->property_correlationId = NULL;
 
1345
                }
 
1346
            
 
1347
                
 
1348
                
 
1349
                _ncGetConsoleOutputResponseType->is_valid_correlationId = AXIS2_FALSE; 
 
1350
               return AXIS2_SUCCESS;
 
1351
           }
 
1352
 
 
1353
           /**
 
1354
            * Check whether correlationId is nill
 
1355
            */
 
1356
           axis2_bool_t AXIS2_CALL
 
1357
           adb_ncGetConsoleOutputResponseType_is_correlationId_nil(
 
1358
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1359
                   const axutil_env_t *env)
 
1360
           {
 
1361
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1362
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1363
               
 
1364
               return !_ncGetConsoleOutputResponseType->is_valid_correlationId;
 
1365
           }
 
1366
 
 
1367
           /**
 
1368
            * Set correlationId to nill (currently the same as reset)
 
1369
            */
 
1370
           axis2_status_t AXIS2_CALL
 
1371
           adb_ncGetConsoleOutputResponseType_set_correlationId_nil(
 
1372
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1373
                   const axutil_env_t *env)
 
1374
           {
 
1375
               return adb_ncGetConsoleOutputResponseType_reset_correlationId(_ncGetConsoleOutputResponseType, env);
 
1376
           }
 
1377
 
 
1378
           
 
1379
 
 
1380
            /**
 
1381
             * getter for userId.
 
1382
             */
 
1383
            axis2_char_t* AXIS2_CALL
 
1384
            adb_ncGetConsoleOutputResponseType_get_userId(
 
1385
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1386
                    const axutil_env_t *env)
 
1387
             {
 
1388
                
 
1389
                    AXIS2_ENV_CHECK(env, NULL);
 
1390
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL);
 
1391
                  
 
1392
 
 
1393
                return _ncGetConsoleOutputResponseType->property_userId;
 
1394
             }
 
1395
 
 
1396
            /**
 
1397
             * setter for userId
 
1398
             */
 
1399
            axis2_status_t AXIS2_CALL
 
1400
            adb_ncGetConsoleOutputResponseType_set_userId(
 
1401
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1402
                    const axutil_env_t *env,
 
1403
                    const axis2_char_t*  arg_userId)
 
1404
             {
 
1405
                
 
1406
 
 
1407
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1408
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1409
                
 
1410
                if(_ncGetConsoleOutputResponseType->is_valid_userId &&
 
1411
                        arg_userId == _ncGetConsoleOutputResponseType->property_userId)
 
1412
                {
 
1413
                    
 
1414
                    return AXIS2_SUCCESS; 
 
1415
                }
 
1416
 
 
1417
                adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env);
 
1418
 
 
1419
                
 
1420
                if(NULL == arg_userId)
 
1421
                {
 
1422
                    /* We are already done */
 
1423
                    return AXIS2_SUCCESS;
 
1424
                }
 
1425
                _ncGetConsoleOutputResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
 
1426
                        if(NULL == _ncGetConsoleOutputResponseType->property_userId)
 
1427
                        {
 
1428
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
 
1429
                            return AXIS2_FAILURE;
 
1430
                        }
 
1431
                        _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_TRUE;
 
1432
                    
 
1433
                return AXIS2_SUCCESS;
 
1434
             }
 
1435
 
 
1436
             
 
1437
 
 
1438
           /**
 
1439
            * resetter for userId
 
1440
            */
 
1441
           axis2_status_t AXIS2_CALL
 
1442
           adb_ncGetConsoleOutputResponseType_reset_userId(
 
1443
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1444
                   const axutil_env_t *env)
 
1445
           {
 
1446
               int i = 0;
 
1447
               int count = 0;
 
1448
               void *element = NULL;
 
1449
 
 
1450
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1451
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1452
               
 
1453
 
 
1454
               
 
1455
            
 
1456
                
 
1457
                if(_ncGetConsoleOutputResponseType->property_userId != NULL)
 
1458
                {
 
1459
                   
 
1460
                   
 
1461
                        AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_userId);
 
1462
                     _ncGetConsoleOutputResponseType->property_userId = NULL;
 
1463
                }
 
1464
            
 
1465
                
 
1466
                
 
1467
                _ncGetConsoleOutputResponseType->is_valid_userId = AXIS2_FALSE; 
 
1468
               return AXIS2_SUCCESS;
 
1469
           }
 
1470
 
 
1471
           /**
 
1472
            * Check whether userId is nill
 
1473
            */
 
1474
           axis2_bool_t AXIS2_CALL
 
1475
           adb_ncGetConsoleOutputResponseType_is_userId_nil(
 
1476
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1477
                   const axutil_env_t *env)
 
1478
           {
 
1479
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1480
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1481
               
 
1482
               return !_ncGetConsoleOutputResponseType->is_valid_userId;
 
1483
           }
 
1484
 
 
1485
           /**
 
1486
            * Set userId to nill (currently the same as reset)
 
1487
            */
 
1488
           axis2_status_t AXIS2_CALL
 
1489
           adb_ncGetConsoleOutputResponseType_set_userId_nil(
 
1490
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1491
                   const axutil_env_t *env)
 
1492
           {
 
1493
               return adb_ncGetConsoleOutputResponseType_reset_userId(_ncGetConsoleOutputResponseType, env);
 
1494
           }
 
1495
 
 
1496
           
 
1497
 
 
1498
            /**
 
1499
             * getter for return.
 
1500
             */
 
1501
            axis2_bool_t AXIS2_CALL
 
1502
            adb_ncGetConsoleOutputResponseType_get_return(
 
1503
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1504
                    const axutil_env_t *env)
 
1505
             {
 
1506
                
 
1507
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
 
1508
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (axis2_bool_t)0);
 
1509
                  
 
1510
 
 
1511
                return _ncGetConsoleOutputResponseType->property_return;
 
1512
             }
 
1513
 
 
1514
            /**
 
1515
             * setter for return
 
1516
             */
 
1517
            axis2_status_t AXIS2_CALL
 
1518
            adb_ncGetConsoleOutputResponseType_set_return(
 
1519
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1520
                    const axutil_env_t *env,
 
1521
                    axis2_bool_t  arg_return)
 
1522
             {
 
1523
                
 
1524
 
 
1525
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1526
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1527
                
 
1528
                if(_ncGetConsoleOutputResponseType->is_valid_return &&
 
1529
                        arg_return == _ncGetConsoleOutputResponseType->property_return)
 
1530
                {
 
1531
                    
 
1532
                    return AXIS2_SUCCESS; 
 
1533
                }
 
1534
 
 
1535
                adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env);
 
1536
 
 
1537
                _ncGetConsoleOutputResponseType->property_return = arg_return;
 
1538
                        _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_TRUE;
 
1539
                    
 
1540
                return AXIS2_SUCCESS;
 
1541
             }
 
1542
 
 
1543
             
 
1544
 
 
1545
           /**
 
1546
            * resetter for return
 
1547
            */
 
1548
           axis2_status_t AXIS2_CALL
 
1549
           adb_ncGetConsoleOutputResponseType_reset_return(
 
1550
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1551
                   const axutil_env_t *env)
 
1552
           {
 
1553
               int i = 0;
 
1554
               int count = 0;
 
1555
               void *element = NULL;
 
1556
 
 
1557
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1558
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1559
               
 
1560
 
 
1561
               _ncGetConsoleOutputResponseType->is_valid_return = AXIS2_FALSE; 
 
1562
               return AXIS2_SUCCESS;
 
1563
           }
 
1564
 
 
1565
           /**
 
1566
            * Check whether return is nill
 
1567
            */
 
1568
           axis2_bool_t AXIS2_CALL
 
1569
           adb_ncGetConsoleOutputResponseType_is_return_nil(
 
1570
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1571
                   const axutil_env_t *env)
 
1572
           {
 
1573
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1574
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1575
               
 
1576
               return !_ncGetConsoleOutputResponseType->is_valid_return;
 
1577
           }
 
1578
 
 
1579
           /**
 
1580
            * Set return to nill (currently the same as reset)
 
1581
            */
 
1582
           axis2_status_t AXIS2_CALL
 
1583
           adb_ncGetConsoleOutputResponseType_set_return_nil(
 
1584
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1585
                   const axutil_env_t *env)
 
1586
           {
 
1587
               return adb_ncGetConsoleOutputResponseType_reset_return(_ncGetConsoleOutputResponseType, env);
 
1588
           }
 
1589
 
 
1590
           
 
1591
 
 
1592
            /**
 
1593
             * getter for nodeName.
 
1594
             */
 
1595
            axis2_char_t* AXIS2_CALL
 
1596
            adb_ncGetConsoleOutputResponseType_get_nodeName(
 
1597
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1598
                    const axutil_env_t *env)
 
1599
             {
 
1600
                
 
1601
                    AXIS2_ENV_CHECK(env, NULL);
 
1602
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL);
 
1603
                  
 
1604
 
 
1605
                return _ncGetConsoleOutputResponseType->property_nodeName;
 
1606
             }
 
1607
 
 
1608
            /**
 
1609
             * setter for nodeName
 
1610
             */
 
1611
            axis2_status_t AXIS2_CALL
 
1612
            adb_ncGetConsoleOutputResponseType_set_nodeName(
 
1613
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1614
                    const axutil_env_t *env,
 
1615
                    const axis2_char_t*  arg_nodeName)
 
1616
             {
 
1617
                
 
1618
 
 
1619
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1620
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1621
                
 
1622
                if(_ncGetConsoleOutputResponseType->is_valid_nodeName &&
 
1623
                        arg_nodeName == _ncGetConsoleOutputResponseType->property_nodeName)
 
1624
                {
 
1625
                    
 
1626
                    return AXIS2_SUCCESS; 
 
1627
                }
 
1628
 
 
1629
                adb_ncGetConsoleOutputResponseType_reset_nodeName(_ncGetConsoleOutputResponseType, env);
 
1630
 
 
1631
                
 
1632
                if(NULL == arg_nodeName)
 
1633
                {
 
1634
                    /* We are already done */
 
1635
                    return AXIS2_SUCCESS;
 
1636
                }
 
1637
                _ncGetConsoleOutputResponseType->property_nodeName = (axis2_char_t *)axutil_strdup(env, arg_nodeName);
 
1638
                        if(NULL == _ncGetConsoleOutputResponseType->property_nodeName)
 
1639
                        {
 
1640
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeName");
 
1641
                            return AXIS2_FAILURE;
 
1642
                        }
 
1643
                        _ncGetConsoleOutputResponseType->is_valid_nodeName = AXIS2_TRUE;
 
1644
                    
 
1645
                return AXIS2_SUCCESS;
 
1646
             }
 
1647
 
 
1648
             
 
1649
 
 
1650
           /**
 
1651
            * resetter for nodeName
 
1652
            */
 
1653
           axis2_status_t AXIS2_CALL
 
1654
           adb_ncGetConsoleOutputResponseType_reset_nodeName(
 
1655
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1656
                   const axutil_env_t *env)
 
1657
           {
 
1658
               int i = 0;
 
1659
               int count = 0;
 
1660
               void *element = NULL;
 
1661
 
 
1662
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1663
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1664
               
 
1665
 
 
1666
               
 
1667
            
 
1668
                
 
1669
                if(_ncGetConsoleOutputResponseType->property_nodeName != NULL)
 
1670
                {
 
1671
                   
 
1672
                   
 
1673
                        AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_nodeName);
 
1674
                     _ncGetConsoleOutputResponseType->property_nodeName = NULL;
 
1675
                }
 
1676
            
 
1677
                
 
1678
                
 
1679
                _ncGetConsoleOutputResponseType->is_valid_nodeName = AXIS2_FALSE; 
 
1680
               return AXIS2_SUCCESS;
 
1681
           }
 
1682
 
 
1683
           /**
 
1684
            * Check whether nodeName is nill
 
1685
            */
 
1686
           axis2_bool_t AXIS2_CALL
 
1687
           adb_ncGetConsoleOutputResponseType_is_nodeName_nil(
 
1688
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1689
                   const axutil_env_t *env)
 
1690
           {
 
1691
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1692
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1693
               
 
1694
               return !_ncGetConsoleOutputResponseType->is_valid_nodeName;
 
1695
           }
 
1696
 
 
1697
           /**
 
1698
            * Set nodeName to nill (currently the same as reset)
 
1699
            */
 
1700
           axis2_status_t AXIS2_CALL
 
1701
           adb_ncGetConsoleOutputResponseType_set_nodeName_nil(
 
1702
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1703
                   const axutil_env_t *env)
 
1704
           {
 
1705
               return adb_ncGetConsoleOutputResponseType_reset_nodeName(_ncGetConsoleOutputResponseType, env);
 
1706
           }
 
1707
 
 
1708
           
 
1709
 
 
1710
            /**
 
1711
             * getter for statusMessage.
 
1712
             */
 
1713
            int AXIS2_CALL
 
1714
            adb_ncGetConsoleOutputResponseType_get_statusMessage(
 
1715
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1716
                    const axutil_env_t *env)
 
1717
             {
 
1718
                
 
1719
                    AXIS2_ENV_CHECK(env, (int)0);
 
1720
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, (int)0);
 
1721
                  
 
1722
 
 
1723
                return _ncGetConsoleOutputResponseType->property_statusMessage;
 
1724
             }
 
1725
 
 
1726
            /**
 
1727
             * setter for statusMessage
 
1728
             */
 
1729
            axis2_status_t AXIS2_CALL
 
1730
            adb_ncGetConsoleOutputResponseType_set_statusMessage(
 
1731
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1732
                    const axutil_env_t *env,
 
1733
                    const int  arg_statusMessage)
 
1734
             {
 
1735
                
 
1736
 
 
1737
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1738
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1739
                
 
1740
                if(_ncGetConsoleOutputResponseType->is_valid_statusMessage &&
 
1741
                        arg_statusMessage == _ncGetConsoleOutputResponseType->property_statusMessage)
 
1742
                {
 
1743
                    
 
1744
                    return AXIS2_SUCCESS; 
 
1745
                }
 
1746
 
 
1747
                adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env);
 
1748
 
 
1749
                _ncGetConsoleOutputResponseType->property_statusMessage = arg_statusMessage;
 
1750
                        _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_TRUE;
 
1751
                    
 
1752
                return AXIS2_SUCCESS;
 
1753
             }
 
1754
 
 
1755
             
 
1756
 
 
1757
           /**
 
1758
            * resetter for statusMessage
 
1759
            */
 
1760
           axis2_status_t AXIS2_CALL
 
1761
           adb_ncGetConsoleOutputResponseType_reset_statusMessage(
 
1762
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1763
                   const axutil_env_t *env)
 
1764
           {
 
1765
               int i = 0;
 
1766
               int count = 0;
 
1767
               void *element = NULL;
 
1768
 
 
1769
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1770
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1771
               
 
1772
 
 
1773
               _ncGetConsoleOutputResponseType->is_valid_statusMessage = AXIS2_FALSE; 
 
1774
               return AXIS2_SUCCESS;
 
1775
           }
 
1776
 
 
1777
           /**
 
1778
            * Check whether statusMessage is nill
 
1779
            */
 
1780
           axis2_bool_t AXIS2_CALL
 
1781
           adb_ncGetConsoleOutputResponseType_is_statusMessage_nil(
 
1782
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1783
                   const axutil_env_t *env)
 
1784
           {
 
1785
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1786
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1787
               
 
1788
               return !_ncGetConsoleOutputResponseType->is_valid_statusMessage;
 
1789
           }
 
1790
 
 
1791
           /**
 
1792
            * Set statusMessage to nill (currently the same as reset)
 
1793
            */
 
1794
           axis2_status_t AXIS2_CALL
 
1795
           adb_ncGetConsoleOutputResponseType_set_statusMessage_nil(
 
1796
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1797
                   const axutil_env_t *env)
 
1798
           {
 
1799
               return adb_ncGetConsoleOutputResponseType_reset_statusMessage(_ncGetConsoleOutputResponseType, env);
 
1800
           }
 
1801
 
 
1802
           
 
1803
 
 
1804
            /**
 
1805
             * getter for consoleOutput.
 
1806
             */
 
1807
            axis2_char_t* AXIS2_CALL
 
1808
            adb_ncGetConsoleOutputResponseType_get_consoleOutput(
 
1809
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1810
                    const axutil_env_t *env)
 
1811
             {
 
1812
                
 
1813
                    AXIS2_ENV_CHECK(env, NULL);
 
1814
                    AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, NULL);
 
1815
                  
 
1816
 
 
1817
                return _ncGetConsoleOutputResponseType->property_consoleOutput;
 
1818
             }
 
1819
 
 
1820
            /**
 
1821
             * setter for consoleOutput
 
1822
             */
 
1823
            axis2_status_t AXIS2_CALL
 
1824
            adb_ncGetConsoleOutputResponseType_set_consoleOutput(
 
1825
                    adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1826
                    const axutil_env_t *env,
 
1827
                    const axis2_char_t*  arg_consoleOutput)
 
1828
             {
 
1829
                
 
1830
 
 
1831
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1832
                AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1833
                
 
1834
                if(_ncGetConsoleOutputResponseType->is_valid_consoleOutput &&
 
1835
                        arg_consoleOutput == _ncGetConsoleOutputResponseType->property_consoleOutput)
 
1836
                {
 
1837
                    
 
1838
                    return AXIS2_SUCCESS; 
 
1839
                }
 
1840
 
 
1841
                
 
1842
                  if(NULL == arg_consoleOutput)
 
1843
                  {
 
1844
                      AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "consoleOutput is being set to NULL, but it is not a nullable element");
 
1845
                      return AXIS2_FAILURE;
 
1846
                  }
 
1847
                adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env);
 
1848
 
 
1849
                
 
1850
                if(NULL == arg_consoleOutput)
 
1851
                {
 
1852
                    /* We are already done */
 
1853
                    return AXIS2_SUCCESS;
 
1854
                }
 
1855
                _ncGetConsoleOutputResponseType->property_consoleOutput = (axis2_char_t *)axutil_strdup(env, arg_consoleOutput);
 
1856
                        if(NULL == _ncGetConsoleOutputResponseType->property_consoleOutput)
 
1857
                        {
 
1858
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for consoleOutput");
 
1859
                            return AXIS2_FAILURE;
 
1860
                        }
 
1861
                        _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_TRUE;
 
1862
                    
 
1863
                return AXIS2_SUCCESS;
 
1864
             }
 
1865
 
 
1866
             
 
1867
 
 
1868
           /**
 
1869
            * resetter for consoleOutput
 
1870
            */
 
1871
           axis2_status_t AXIS2_CALL
 
1872
           adb_ncGetConsoleOutputResponseType_reset_consoleOutput(
 
1873
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1874
                   const axutil_env_t *env)
 
1875
           {
 
1876
               int i = 0;
 
1877
               int count = 0;
 
1878
               void *element = NULL;
 
1879
 
 
1880
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1881
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_FAILURE);
 
1882
               
 
1883
 
 
1884
               
 
1885
            
 
1886
                
 
1887
                if(_ncGetConsoleOutputResponseType->property_consoleOutput != NULL)
 
1888
                {
 
1889
                   
 
1890
                   
 
1891
                        AXIS2_FREE(env-> allocator, _ncGetConsoleOutputResponseType->property_consoleOutput);
 
1892
                     _ncGetConsoleOutputResponseType->property_consoleOutput = NULL;
 
1893
                }
 
1894
            
 
1895
                
 
1896
                
 
1897
                _ncGetConsoleOutputResponseType->is_valid_consoleOutput = AXIS2_FALSE; 
 
1898
               return AXIS2_SUCCESS;
 
1899
           }
 
1900
 
 
1901
           /**
 
1902
            * Check whether consoleOutput is nill
 
1903
            */
 
1904
           axis2_bool_t AXIS2_CALL
 
1905
           adb_ncGetConsoleOutputResponseType_is_consoleOutput_nil(
 
1906
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1907
                   const axutil_env_t *env)
 
1908
           {
 
1909
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1910
               AXIS2_PARAM_CHECK(env->error, _ncGetConsoleOutputResponseType, AXIS2_TRUE);
 
1911
               
 
1912
               return !_ncGetConsoleOutputResponseType->is_valid_consoleOutput;
 
1913
           }
 
1914
 
 
1915
           /**
 
1916
            * Set consoleOutput to nill (currently the same as reset)
 
1917
            */
 
1918
           axis2_status_t AXIS2_CALL
 
1919
           adb_ncGetConsoleOutputResponseType_set_consoleOutput_nil(
 
1920
                   adb_ncGetConsoleOutputResponseType_t* _ncGetConsoleOutputResponseType,
 
1921
                   const axutil_env_t *env)
 
1922
           {
 
1923
               return adb_ncGetConsoleOutputResponseType_reset_consoleOutput(_ncGetConsoleOutputResponseType, env);
 
1924
           }
 
1925
 
 
1926
           
 
1927