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

« back to all changes in this revision

Viewing changes to node/generated/adb_ncStartNetworkResponseType.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_ncStartNetworkResponseType.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_ncStartNetworkResponseType.h"
 
11
        
 
12
                /*
 
13
                 * This type was generated from the piece of schema that had
 
14
                 * name = ncStartNetworkResponseType
 
15
                 * Namespace URI = http://eucalyptus.ucsb.edu/
 
16
                 * Namespace Prefix = ns1
 
17
                 */
 
18
           
 
19
 
 
20
 
 
21
        struct adb_ncStartNetworkResponseType
 
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_networkStatus;
 
54
 
 
55
                
 
56
                axis2_bool_t is_valid_networkStatus;
 
57
 
 
58
 
 
59
            
 
60
        };
 
61
 
 
62
 
 
63
       /************************* Private Function prototypes ********************************/
 
64
        
 
65
 
 
66
                axis2_status_t AXIS2_CALL
 
67
                adb_ncStartNetworkResponseType_set_userId_nil(
 
68
                        adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
69
                        const axutil_env_t *env);
 
70
            
 
71
 
 
72
                axis2_status_t AXIS2_CALL
 
73
                adb_ncStartNetworkResponseType_set_return_nil(
 
74
                        adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
75
                        const axutil_env_t *env);
 
76
            
 
77
 
 
78
                axis2_status_t AXIS2_CALL
 
79
                adb_ncStartNetworkResponseType_set_networkStatus_nil(
 
80
                        adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
81
                        const axutil_env_t *env);
 
82
            
 
83
 
 
84
 
 
85
       /************************* Function Implmentations ********************************/
 
86
        adb_ncStartNetworkResponseType_t* AXIS2_CALL
 
87
        adb_ncStartNetworkResponseType_create(
 
88
            const axutil_env_t *env)
 
89
        {
 
90
            adb_ncStartNetworkResponseType_t *_ncStartNetworkResponseType = NULL;
 
91
            
 
92
            AXIS2_ENV_CHECK(env, NULL);
 
93
 
 
94
            _ncStartNetworkResponseType = (adb_ncStartNetworkResponseType_t *) AXIS2_MALLOC(env->
 
95
                allocator, sizeof(adb_ncStartNetworkResponseType_t));
 
96
 
 
97
            if(NULL == _ncStartNetworkResponseType)
 
98
            {
 
99
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
 
100
                return NULL;
 
101
            }
 
102
 
 
103
            memset(_ncStartNetworkResponseType, 0, sizeof(adb_ncStartNetworkResponseType_t));
 
104
 
 
105
            _ncStartNetworkResponseType->property_correlationId  = NULL;
 
106
                  _ncStartNetworkResponseType->is_valid_correlationId  = AXIS2_FALSE;
 
107
            _ncStartNetworkResponseType->property_userId  = NULL;
 
108
                  _ncStartNetworkResponseType->is_valid_userId  = AXIS2_FALSE;
 
109
            _ncStartNetworkResponseType->is_valid_return  = AXIS2_FALSE;
 
110
            _ncStartNetworkResponseType->property_nodeName  = NULL;
 
111
                  _ncStartNetworkResponseType->is_valid_nodeName  = AXIS2_FALSE;
 
112
            _ncStartNetworkResponseType->is_valid_statusMessage  = AXIS2_FALSE;
 
113
            _ncStartNetworkResponseType->property_networkStatus  = NULL;
 
114
                  _ncStartNetworkResponseType->is_valid_networkStatus  = AXIS2_FALSE;
 
115
            
 
116
 
 
117
            return _ncStartNetworkResponseType;
 
118
        }
 
119
 
 
120
        axis2_status_t AXIS2_CALL
 
121
        adb_ncStartNetworkResponseType_free (
 
122
                adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
123
                const axutil_env_t *env)
 
124
        {
 
125
            
 
126
 
 
127
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
128
            AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
129
 
 
130
            adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env);
 
131
            adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env);
 
132
            adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env);
 
133
            adb_ncStartNetworkResponseType_reset_nodeName(_ncStartNetworkResponseType, env);
 
134
            adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env);
 
135
            adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env);
 
136
            
 
137
 
 
138
            if(_ncStartNetworkResponseType)
 
139
            {
 
140
                AXIS2_FREE(env->allocator, _ncStartNetworkResponseType);
 
141
                _ncStartNetworkResponseType = NULL;
 
142
            }
 
143
            return AXIS2_SUCCESS;
 
144
        }
 
145
 
 
146
 
 
147
        
 
148
 
 
149
        axis2_status_t AXIS2_CALL
 
150
        adb_ncStartNetworkResponseType_deserialize(
 
151
                adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
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, _ncStartNetworkResponseType, 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 ncStartNetworkResponseType : "
 
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_ncStartNetworkResponseType_set_correlationId(_ncStartNetworkResponseType, 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_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, 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_ncStartNetworkResponseType_set_userId(_ncStartNetworkResponseType, 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_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, env,
 
426
                                                                 AXIS2_TRUE);
 
427
                                            }
 
428
                                            else
 
429
                                            {
 
430
                                                status = adb_ncStartNetworkResponseType_set_return(_ncStartNetworkResponseType, 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_ncStartNetworkResponseType_set_nodeName(_ncStartNetworkResponseType, 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_ncStartNetworkResponseType_set_statusMessage(_ncStartNetworkResponseType, 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 networkStatus 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, "networkStatus", "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_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, 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 networkStatus");
 
691
                                                status = AXIS2_FAILURE;
 
692
                                            }
 
693
                                            else
 
694
                                            {
 
695
                                                /* after all, we found this is a empty string */
 
696
                                                status = adb_ncStartNetworkResponseType_set_networkStatus(_ncStartNetworkResponseType, 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 networkStatus ");
 
704
                                     if(element_qname)
 
705
                                     {
 
706
                                         axutil_qname_free(element_qname, env);
 
707
                                     }
 
708
                                     return AXIS2_FAILURE;
 
709
                                 }
 
710
                              }
 
711
                           
 
712
                  if(element_qname)
 
713
                  {
 
714
                     axutil_qname_free(element_qname, env);
 
715
                     element_qname = NULL;
 
716
                  }
 
717
                 
 
718
          return status;
 
719
       }
 
720
 
 
721
          axis2_bool_t AXIS2_CALL
 
722
          adb_ncStartNetworkResponseType_is_particle()
 
723
          {
 
724
            
 
725
                 return AXIS2_FALSE;
 
726
              
 
727
          }
 
728
 
 
729
 
 
730
          void AXIS2_CALL
 
731
          adb_ncStartNetworkResponseType_declare_parent_namespaces(
 
732
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
733
                    const axutil_env_t *env, axiom_element_t *parent_element,
 
734
                    axutil_hash_t *namespaces, int *next_ns_index)
 
735
          {
 
736
            
 
737
                  /* Here this is an empty function, Nothing to declare */
 
738
                 
 
739
          }
 
740
 
 
741
        
 
742
        
 
743
        axiom_node_t* AXIS2_CALL
 
744
        adb_ncStartNetworkResponseType_serialize(
 
745
                adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
746
                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)
 
747
        {
 
748
            
 
749
            
 
750
             axis2_char_t *string_to_stream;
 
751
            
 
752
         
 
753
         axiom_node_t *current_node = NULL;
 
754
         int tag_closed = 0;
 
755
 
 
756
         
 
757
         
 
758
                axiom_namespace_t *ns1 = NULL;
 
759
 
 
760
                axis2_char_t *qname_uri = NULL;
 
761
                axis2_char_t *qname_prefix = NULL;
 
762
                axis2_char_t *p_prefix = NULL;
 
763
                axis2_bool_t ns_already_defined;
 
764
            
 
765
                    axis2_char_t *text_value_1;
 
766
                    axis2_char_t *text_value_1_temp;
 
767
                    
 
768
                    axis2_char_t *text_value_2;
 
769
                    axis2_char_t *text_value_2_temp;
 
770
                    
 
771
                    axis2_char_t text_value_3[64];
 
772
                    
 
773
                    axis2_char_t *text_value_4;
 
774
                    axis2_char_t *text_value_4_temp;
 
775
                    
 
776
                    axis2_char_t text_value_5[64];
 
777
                    
 
778
                    axis2_char_t *text_value_6;
 
779
                    axis2_char_t *text_value_6_temp;
 
780
                    
 
781
               axis2_char_t *start_input_str = NULL;
 
782
               axis2_char_t *end_input_str = NULL;
 
783
               unsigned int start_input_str_len = 0;
 
784
               unsigned int end_input_str_len = 0;
 
785
            
 
786
            
 
787
               axiom_data_source_t *data_source = NULL;
 
788
               axutil_stream_t *stream = NULL;
 
789
 
 
790
            
 
791
 
 
792
            AXIS2_ENV_CHECK(env, NULL);
 
793
            AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL);
 
794
            
 
795
            
 
796
                    current_node = parent;
 
797
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
 
798
                    if (!data_source)
 
799
                        return NULL;
 
800
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
 
801
                    if (!stream)
 
802
                        return NULL;
 
803
                  
 
804
            if(!parent_tag_closed)
 
805
            {
 
806
            
 
807
              string_to_stream = ">"; 
 
808
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
 
809
              tag_closed = 1;
 
810
            
 
811
            }
 
812
            
 
813
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
814
                       {
 
815
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
816
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
817
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
818
                           
 
819
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
820
                                            "http://eucalyptus.ucsb.edu/",
 
821
                                            p_prefix));
 
822
                       }
 
823
                      
 
824
 
 
825
                   if (!_ncStartNetworkResponseType->is_valid_correlationId)
 
826
                   {
 
827
                      
 
828
                           /* no need to complain for minoccurs=0 element */
 
829
                            
 
830
                          
 
831
                   }
 
832
                   else
 
833
                   {
 
834
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
835
                                 (4 + axutil_strlen(p_prefix) + 
 
836
                                  axutil_strlen("correlationId"))); 
 
837
                                 
 
838
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
839
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
840
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
 
841
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
842
                                  
 
843
                     
 
844
 
 
845
                   
 
846
                   
 
847
                     
 
848
                     /*
 
849
                      * parsing correlationId element
 
850
                      */
 
851
 
 
852
                    
 
853
                    
 
854
                            sprintf(start_input_str, "<%s%scorrelationId>",
 
855
                                 p_prefix?p_prefix:"",
 
856
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
857
                            
 
858
                        start_input_str_len = axutil_strlen(start_input_str);
 
859
                        sprintf(end_input_str, "</%s%scorrelationId>",
 
860
                                 p_prefix?p_prefix:"",
 
861
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
862
                        end_input_str_len = axutil_strlen(end_input_str);
 
863
                    
 
864
                           text_value_1 = _ncStartNetworkResponseType->property_correlationId;
 
865
                           
 
866
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
867
                           
 
868
                            
 
869
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
 
870
                           if (text_value_1_temp)
 
871
                           {
 
872
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
 
873
                               AXIS2_FREE(env->allocator, text_value_1_temp);
 
874
                           }
 
875
                           else
 
876
                           {
 
877
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
 
878
                           }
 
879
                           
 
880
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
881
                           
 
882
                     
 
883
                     AXIS2_FREE(env->allocator,start_input_str);
 
884
                     AXIS2_FREE(env->allocator,end_input_str);
 
885
                 } 
 
886
 
 
887
                 
 
888
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
889
                       {
 
890
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
891
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
892
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
893
                           
 
894
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
895
                                            "http://eucalyptus.ucsb.edu/",
 
896
                                            p_prefix));
 
897
                       }
 
898
                      
 
899
 
 
900
                   if (!_ncStartNetworkResponseType->is_valid_userId)
 
901
                   {
 
902
                      
 
903
                           /* no need to complain for minoccurs=0 element */
 
904
                            
 
905
                          
 
906
                   }
 
907
                   else
 
908
                   {
 
909
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
910
                                 (4 + axutil_strlen(p_prefix) + 
 
911
                                  axutil_strlen("userId"))); 
 
912
                                 
 
913
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
914
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
915
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
 
916
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
917
                                  
 
918
                     
 
919
 
 
920
                   
 
921
                   
 
922
                     
 
923
                     /*
 
924
                      * parsing userId element
 
925
                      */
 
926
 
 
927
                    
 
928
                    
 
929
                            sprintf(start_input_str, "<%s%suserId>",
 
930
                                 p_prefix?p_prefix:"",
 
931
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
932
                            
 
933
                        start_input_str_len = axutil_strlen(start_input_str);
 
934
                        sprintf(end_input_str, "</%s%suserId>",
 
935
                                 p_prefix?p_prefix:"",
 
936
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
937
                        end_input_str_len = axutil_strlen(end_input_str);
 
938
                    
 
939
                           text_value_2 = _ncStartNetworkResponseType->property_userId;
 
940
                           
 
941
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
942
                           
 
943
                            
 
944
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
 
945
                           if (text_value_2_temp)
 
946
                           {
 
947
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
 
948
                               AXIS2_FREE(env->allocator, text_value_2_temp);
 
949
                           }
 
950
                           else
 
951
                           {
 
952
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
 
953
                           }
 
954
                           
 
955
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
956
                           
 
957
                     
 
958
                     AXIS2_FREE(env->allocator,start_input_str);
 
959
                     AXIS2_FREE(env->allocator,end_input_str);
 
960
                 } 
 
961
 
 
962
                 
 
963
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
964
                       {
 
965
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
966
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
967
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
968
                           
 
969
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
970
                                            "http://eucalyptus.ucsb.edu/",
 
971
                                            p_prefix));
 
972
                       }
 
973
                      
 
974
 
 
975
                   if (!_ncStartNetworkResponseType->is_valid_return)
 
976
                   {
 
977
                      
 
978
                           /* no need to complain for minoccurs=0 element */
 
979
                            
 
980
                          
 
981
                   }
 
982
                   else
 
983
                   {
 
984
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
985
                                 (4 + axutil_strlen(p_prefix) + 
 
986
                                  axutil_strlen("return"))); 
 
987
                                 
 
988
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
989
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
990
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
 
991
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
992
                                  
 
993
                     
 
994
 
 
995
                   
 
996
                   
 
997
                     
 
998
                     /*
 
999
                      * parsing return element
 
1000
                      */
 
1001
 
 
1002
                    
 
1003
                    
 
1004
                            sprintf(start_input_str, "<%s%sreturn>",
 
1005
                                 p_prefix?p_prefix:"",
 
1006
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1007
                            
 
1008
                        start_input_str_len = axutil_strlen(start_input_str);
 
1009
                        sprintf(end_input_str, "</%s%sreturn>",
 
1010
                                 p_prefix?p_prefix:"",
 
1011
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1012
                        end_input_str_len = axutil_strlen(end_input_str);
 
1013
                    
 
1014
                           strcpy(text_value_3, (_ncStartNetworkResponseType->property_return)?"true":"false");
 
1015
                           
 
1016
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1017
                           
 
1018
                           axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
 
1019
                           
 
1020
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1021
                           
 
1022
                     
 
1023
                     AXIS2_FREE(env->allocator,start_input_str);
 
1024
                     AXIS2_FREE(env->allocator,end_input_str);
 
1025
                 } 
 
1026
 
 
1027
                 
 
1028
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1029
                       {
 
1030
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1031
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1032
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1033
                           
 
1034
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1035
                                            "http://eucalyptus.ucsb.edu/",
 
1036
                                            p_prefix));
 
1037
                       }
 
1038
                      
 
1039
 
 
1040
                   if (!_ncStartNetworkResponseType->is_valid_nodeName)
 
1041
                   {
 
1042
                      
 
1043
                           /* no need to complain for minoccurs=0 element */
 
1044
                            
 
1045
                          
 
1046
                   }
 
1047
                   else
 
1048
                   {
 
1049
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1050
                                 (4 + axutil_strlen(p_prefix) + 
 
1051
                                  axutil_strlen("nodeName"))); 
 
1052
                                 
 
1053
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1054
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1055
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("nodeName")));
 
1056
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1057
                                  
 
1058
                     
 
1059
 
 
1060
                   
 
1061
                   
 
1062
                     
 
1063
                     /*
 
1064
                      * parsing nodeName element
 
1065
                      */
 
1066
 
 
1067
                    
 
1068
                    
 
1069
                            sprintf(start_input_str, "<%s%snodeName>",
 
1070
                                 p_prefix?p_prefix:"",
 
1071
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1072
                            
 
1073
                        start_input_str_len = axutil_strlen(start_input_str);
 
1074
                        sprintf(end_input_str, "</%s%snodeName>",
 
1075
                                 p_prefix?p_prefix:"",
 
1076
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1077
                        end_input_str_len = axutil_strlen(end_input_str);
 
1078
                    
 
1079
                           text_value_4 = _ncStartNetworkResponseType->property_nodeName;
 
1080
                           
 
1081
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1082
                           
 
1083
                            
 
1084
                           text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
 
1085
                           if (text_value_4_temp)
 
1086
                           {
 
1087
                               axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
 
1088
                               AXIS2_FREE(env->allocator, text_value_4_temp);
 
1089
                           }
 
1090
                           else
 
1091
                           {
 
1092
                               axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
 
1093
                           }
 
1094
                           
 
1095
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1096
                           
 
1097
                     
 
1098
                     AXIS2_FREE(env->allocator,start_input_str);
 
1099
                     AXIS2_FREE(env->allocator,end_input_str);
 
1100
                 } 
 
1101
 
 
1102
                 
 
1103
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1104
                       {
 
1105
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1106
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1107
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1108
                           
 
1109
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1110
                                            "http://eucalyptus.ucsb.edu/",
 
1111
                                            p_prefix));
 
1112
                       }
 
1113
                      
 
1114
 
 
1115
                   if (!_ncStartNetworkResponseType->is_valid_statusMessage)
 
1116
                   {
 
1117
                      
 
1118
                           /* no need to complain for minoccurs=0 element */
 
1119
                            
 
1120
                          
 
1121
                   }
 
1122
                   else
 
1123
                   {
 
1124
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1125
                                 (4 + axutil_strlen(p_prefix) + 
 
1126
                                  axutil_strlen("statusMessage"))); 
 
1127
                                 
 
1128
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1129
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1130
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
 
1131
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1132
                                  
 
1133
                     
 
1134
 
 
1135
                   
 
1136
                   
 
1137
                     
 
1138
                     /*
 
1139
                      * parsing statusMessage element
 
1140
                      */
 
1141
 
 
1142
                    
 
1143
                    
 
1144
                            sprintf(start_input_str, "<%s%sstatusMessage>",
 
1145
                                 p_prefix?p_prefix:"",
 
1146
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1147
                            
 
1148
                        start_input_str_len = axutil_strlen(start_input_str);
 
1149
                        sprintf(end_input_str, "</%s%sstatusMessage>",
 
1150
                                 p_prefix?p_prefix:"",
 
1151
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1152
                        end_input_str_len = axutil_strlen(end_input_str);
 
1153
                    
 
1154
                               sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncStartNetworkResponseType->property_statusMessage);
 
1155
                             
 
1156
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1157
                           
 
1158
                           axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
 
1159
                           
 
1160
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1161
                           
 
1162
                     
 
1163
                     AXIS2_FREE(env->allocator,start_input_str);
 
1164
                     AXIS2_FREE(env->allocator,end_input_str);
 
1165
                 } 
 
1166
 
 
1167
                 
 
1168
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
 
1169
                       {
 
1170
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
 
1171
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
 
1172
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
 
1173
                           
 
1174
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
 
1175
                                            "http://eucalyptus.ucsb.edu/",
 
1176
                                            p_prefix));
 
1177
                       }
 
1178
                      
 
1179
 
 
1180
                   if (!_ncStartNetworkResponseType->is_valid_networkStatus)
 
1181
                   {
 
1182
                      
 
1183
                           /* no need to complain for minoccurs=0 element */
 
1184
                            
 
1185
                          
 
1186
                   }
 
1187
                   else
 
1188
                   {
 
1189
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1190
                                 (4 + axutil_strlen(p_prefix) + 
 
1191
                                  axutil_strlen("networkStatus"))); 
 
1192
                                 
 
1193
                                 /* axutil_strlen("<:>") + 1 = 4 */
 
1194
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
 
1195
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("networkStatus")));
 
1196
                                  /* axutil_strlen("</:>") + 1 = 5 */
 
1197
                                  
 
1198
                     
 
1199
 
 
1200
                   
 
1201
                   
 
1202
                     
 
1203
                     /*
 
1204
                      * parsing networkStatus element
 
1205
                      */
 
1206
 
 
1207
                    
 
1208
                    
 
1209
                            sprintf(start_input_str, "<%s%snetworkStatus>",
 
1210
                                 p_prefix?p_prefix:"",
 
1211
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1212
                            
 
1213
                        start_input_str_len = axutil_strlen(start_input_str);
 
1214
                        sprintf(end_input_str, "</%s%snetworkStatus>",
 
1215
                                 p_prefix?p_prefix:"",
 
1216
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
 
1217
                        end_input_str_len = axutil_strlen(end_input_str);
 
1218
                    
 
1219
                           text_value_6 = _ncStartNetworkResponseType->property_networkStatus;
 
1220
                           
 
1221
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
 
1222
                           
 
1223
                            
 
1224
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
 
1225
                           if (text_value_6_temp)
 
1226
                           {
 
1227
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
 
1228
                               AXIS2_FREE(env->allocator, text_value_6_temp);
 
1229
                           }
 
1230
                           else
 
1231
                           {
 
1232
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
 
1233
                           }
 
1234
                           
 
1235
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
 
1236
                           
 
1237
                     
 
1238
                     AXIS2_FREE(env->allocator,start_input_str);
 
1239
                     AXIS2_FREE(env->allocator,end_input_str);
 
1240
                 } 
 
1241
 
 
1242
                 
 
1243
 
 
1244
            return parent;
 
1245
        }
 
1246
 
 
1247
 
 
1248
        
 
1249
 
 
1250
            /**
 
1251
             * getter for correlationId.
 
1252
             */
 
1253
            axis2_char_t* AXIS2_CALL
 
1254
            adb_ncStartNetworkResponseType_get_correlationId(
 
1255
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1256
                    const axutil_env_t *env)
 
1257
             {
 
1258
                
 
1259
                    AXIS2_ENV_CHECK(env, NULL);
 
1260
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL);
 
1261
                  
 
1262
 
 
1263
                return _ncStartNetworkResponseType->property_correlationId;
 
1264
             }
 
1265
 
 
1266
            /**
 
1267
             * setter for correlationId
 
1268
             */
 
1269
            axis2_status_t AXIS2_CALL
 
1270
            adb_ncStartNetworkResponseType_set_correlationId(
 
1271
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1272
                    const axutil_env_t *env,
 
1273
                    const axis2_char_t*  arg_correlationId)
 
1274
             {
 
1275
                
 
1276
 
 
1277
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1278
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1279
                
 
1280
                if(_ncStartNetworkResponseType->is_valid_correlationId &&
 
1281
                        arg_correlationId == _ncStartNetworkResponseType->property_correlationId)
 
1282
                {
 
1283
                    
 
1284
                    return AXIS2_SUCCESS; 
 
1285
                }
 
1286
 
 
1287
                adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env);
 
1288
 
 
1289
                
 
1290
                if(NULL == arg_correlationId)
 
1291
                {
 
1292
                    /* We are already done */
 
1293
                    return AXIS2_SUCCESS;
 
1294
                }
 
1295
                _ncStartNetworkResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
 
1296
                        if(NULL == _ncStartNetworkResponseType->property_correlationId)
 
1297
                        {
 
1298
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
 
1299
                            return AXIS2_FAILURE;
 
1300
                        }
 
1301
                        _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_TRUE;
 
1302
                    
 
1303
                return AXIS2_SUCCESS;
 
1304
             }
 
1305
 
 
1306
             
 
1307
 
 
1308
           /**
 
1309
            * resetter for correlationId
 
1310
            */
 
1311
           axis2_status_t AXIS2_CALL
 
1312
           adb_ncStartNetworkResponseType_reset_correlationId(
 
1313
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1314
                   const axutil_env_t *env)
 
1315
           {
 
1316
               int i = 0;
 
1317
               int count = 0;
 
1318
               void *element = NULL;
 
1319
 
 
1320
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1321
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1322
               
 
1323
 
 
1324
               
 
1325
            
 
1326
                
 
1327
                if(_ncStartNetworkResponseType->property_correlationId != NULL)
 
1328
                {
 
1329
                   
 
1330
                   
 
1331
                        AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_correlationId);
 
1332
                     _ncStartNetworkResponseType->property_correlationId = NULL;
 
1333
                }
 
1334
            
 
1335
                
 
1336
                
 
1337
                _ncStartNetworkResponseType->is_valid_correlationId = AXIS2_FALSE; 
 
1338
               return AXIS2_SUCCESS;
 
1339
           }
 
1340
 
 
1341
           /**
 
1342
            * Check whether correlationId is nill
 
1343
            */
 
1344
           axis2_bool_t AXIS2_CALL
 
1345
           adb_ncStartNetworkResponseType_is_correlationId_nil(
 
1346
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1347
                   const axutil_env_t *env)
 
1348
           {
 
1349
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1350
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1351
               
 
1352
               return !_ncStartNetworkResponseType->is_valid_correlationId;
 
1353
           }
 
1354
 
 
1355
           /**
 
1356
            * Set correlationId to nill (currently the same as reset)
 
1357
            */
 
1358
           axis2_status_t AXIS2_CALL
 
1359
           adb_ncStartNetworkResponseType_set_correlationId_nil(
 
1360
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1361
                   const axutil_env_t *env)
 
1362
           {
 
1363
               return adb_ncStartNetworkResponseType_reset_correlationId(_ncStartNetworkResponseType, env);
 
1364
           }
 
1365
 
 
1366
           
 
1367
 
 
1368
            /**
 
1369
             * getter for userId.
 
1370
             */
 
1371
            axis2_char_t* AXIS2_CALL
 
1372
            adb_ncStartNetworkResponseType_get_userId(
 
1373
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1374
                    const axutil_env_t *env)
 
1375
             {
 
1376
                
 
1377
                    AXIS2_ENV_CHECK(env, NULL);
 
1378
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL);
 
1379
                  
 
1380
 
 
1381
                return _ncStartNetworkResponseType->property_userId;
 
1382
             }
 
1383
 
 
1384
            /**
 
1385
             * setter for userId
 
1386
             */
 
1387
            axis2_status_t AXIS2_CALL
 
1388
            adb_ncStartNetworkResponseType_set_userId(
 
1389
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1390
                    const axutil_env_t *env,
 
1391
                    const axis2_char_t*  arg_userId)
 
1392
             {
 
1393
                
 
1394
 
 
1395
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1396
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1397
                
 
1398
                if(_ncStartNetworkResponseType->is_valid_userId &&
 
1399
                        arg_userId == _ncStartNetworkResponseType->property_userId)
 
1400
                {
 
1401
                    
 
1402
                    return AXIS2_SUCCESS; 
 
1403
                }
 
1404
 
 
1405
                adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env);
 
1406
 
 
1407
                
 
1408
                if(NULL == arg_userId)
 
1409
                {
 
1410
                    /* We are already done */
 
1411
                    return AXIS2_SUCCESS;
 
1412
                }
 
1413
                _ncStartNetworkResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
 
1414
                        if(NULL == _ncStartNetworkResponseType->property_userId)
 
1415
                        {
 
1416
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
 
1417
                            return AXIS2_FAILURE;
 
1418
                        }
 
1419
                        _ncStartNetworkResponseType->is_valid_userId = AXIS2_TRUE;
 
1420
                    
 
1421
                return AXIS2_SUCCESS;
 
1422
             }
 
1423
 
 
1424
             
 
1425
 
 
1426
           /**
 
1427
            * resetter for userId
 
1428
            */
 
1429
           axis2_status_t AXIS2_CALL
 
1430
           adb_ncStartNetworkResponseType_reset_userId(
 
1431
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1432
                   const axutil_env_t *env)
 
1433
           {
 
1434
               int i = 0;
 
1435
               int count = 0;
 
1436
               void *element = NULL;
 
1437
 
 
1438
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1439
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1440
               
 
1441
 
 
1442
               
 
1443
            
 
1444
                
 
1445
                if(_ncStartNetworkResponseType->property_userId != NULL)
 
1446
                {
 
1447
                   
 
1448
                   
 
1449
                        AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_userId);
 
1450
                     _ncStartNetworkResponseType->property_userId = NULL;
 
1451
                }
 
1452
            
 
1453
                
 
1454
                
 
1455
                _ncStartNetworkResponseType->is_valid_userId = AXIS2_FALSE; 
 
1456
               return AXIS2_SUCCESS;
 
1457
           }
 
1458
 
 
1459
           /**
 
1460
            * Check whether userId is nill
 
1461
            */
 
1462
           axis2_bool_t AXIS2_CALL
 
1463
           adb_ncStartNetworkResponseType_is_userId_nil(
 
1464
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1465
                   const axutil_env_t *env)
 
1466
           {
 
1467
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1468
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1469
               
 
1470
               return !_ncStartNetworkResponseType->is_valid_userId;
 
1471
           }
 
1472
 
 
1473
           /**
 
1474
            * Set userId to nill (currently the same as reset)
 
1475
            */
 
1476
           axis2_status_t AXIS2_CALL
 
1477
           adb_ncStartNetworkResponseType_set_userId_nil(
 
1478
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1479
                   const axutil_env_t *env)
 
1480
           {
 
1481
               return adb_ncStartNetworkResponseType_reset_userId(_ncStartNetworkResponseType, env);
 
1482
           }
 
1483
 
 
1484
           
 
1485
 
 
1486
            /**
 
1487
             * getter for return.
 
1488
             */
 
1489
            axis2_bool_t AXIS2_CALL
 
1490
            adb_ncStartNetworkResponseType_get_return(
 
1491
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1492
                    const axutil_env_t *env)
 
1493
             {
 
1494
                
 
1495
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
 
1496
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (axis2_bool_t)0);
 
1497
                  
 
1498
 
 
1499
                return _ncStartNetworkResponseType->property_return;
 
1500
             }
 
1501
 
 
1502
            /**
 
1503
             * setter for return
 
1504
             */
 
1505
            axis2_status_t AXIS2_CALL
 
1506
            adb_ncStartNetworkResponseType_set_return(
 
1507
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1508
                    const axutil_env_t *env,
 
1509
                    axis2_bool_t  arg_return)
 
1510
             {
 
1511
                
 
1512
 
 
1513
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1514
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1515
                
 
1516
                if(_ncStartNetworkResponseType->is_valid_return &&
 
1517
                        arg_return == _ncStartNetworkResponseType->property_return)
 
1518
                {
 
1519
                    
 
1520
                    return AXIS2_SUCCESS; 
 
1521
                }
 
1522
 
 
1523
                adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env);
 
1524
 
 
1525
                _ncStartNetworkResponseType->property_return = arg_return;
 
1526
                        _ncStartNetworkResponseType->is_valid_return = AXIS2_TRUE;
 
1527
                    
 
1528
                return AXIS2_SUCCESS;
 
1529
             }
 
1530
 
 
1531
             
 
1532
 
 
1533
           /**
 
1534
            * resetter for return
 
1535
            */
 
1536
           axis2_status_t AXIS2_CALL
 
1537
           adb_ncStartNetworkResponseType_reset_return(
 
1538
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1539
                   const axutil_env_t *env)
 
1540
           {
 
1541
               int i = 0;
 
1542
               int count = 0;
 
1543
               void *element = NULL;
 
1544
 
 
1545
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1546
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1547
               
 
1548
 
 
1549
               _ncStartNetworkResponseType->is_valid_return = AXIS2_FALSE; 
 
1550
               return AXIS2_SUCCESS;
 
1551
           }
 
1552
 
 
1553
           /**
 
1554
            * Check whether return is nill
 
1555
            */
 
1556
           axis2_bool_t AXIS2_CALL
 
1557
           adb_ncStartNetworkResponseType_is_return_nil(
 
1558
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1559
                   const axutil_env_t *env)
 
1560
           {
 
1561
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1562
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1563
               
 
1564
               return !_ncStartNetworkResponseType->is_valid_return;
 
1565
           }
 
1566
 
 
1567
           /**
 
1568
            * Set return to nill (currently the same as reset)
 
1569
            */
 
1570
           axis2_status_t AXIS2_CALL
 
1571
           adb_ncStartNetworkResponseType_set_return_nil(
 
1572
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1573
                   const axutil_env_t *env)
 
1574
           {
 
1575
               return adb_ncStartNetworkResponseType_reset_return(_ncStartNetworkResponseType, env);
 
1576
           }
 
1577
 
 
1578
           
 
1579
 
 
1580
            /**
 
1581
             * getter for nodeName.
 
1582
             */
 
1583
            axis2_char_t* AXIS2_CALL
 
1584
            adb_ncStartNetworkResponseType_get_nodeName(
 
1585
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1586
                    const axutil_env_t *env)
 
1587
             {
 
1588
                
 
1589
                    AXIS2_ENV_CHECK(env, NULL);
 
1590
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL);
 
1591
                  
 
1592
 
 
1593
                return _ncStartNetworkResponseType->property_nodeName;
 
1594
             }
 
1595
 
 
1596
            /**
 
1597
             * setter for nodeName
 
1598
             */
 
1599
            axis2_status_t AXIS2_CALL
 
1600
            adb_ncStartNetworkResponseType_set_nodeName(
 
1601
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1602
                    const axutil_env_t *env,
 
1603
                    const axis2_char_t*  arg_nodeName)
 
1604
             {
 
1605
                
 
1606
 
 
1607
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1608
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1609
                
 
1610
                if(_ncStartNetworkResponseType->is_valid_nodeName &&
 
1611
                        arg_nodeName == _ncStartNetworkResponseType->property_nodeName)
 
1612
                {
 
1613
                    
 
1614
                    return AXIS2_SUCCESS; 
 
1615
                }
 
1616
 
 
1617
                adb_ncStartNetworkResponseType_reset_nodeName(_ncStartNetworkResponseType, env);
 
1618
 
 
1619
                
 
1620
                if(NULL == arg_nodeName)
 
1621
                {
 
1622
                    /* We are already done */
 
1623
                    return AXIS2_SUCCESS;
 
1624
                }
 
1625
                _ncStartNetworkResponseType->property_nodeName = (axis2_char_t *)axutil_strdup(env, arg_nodeName);
 
1626
                        if(NULL == _ncStartNetworkResponseType->property_nodeName)
 
1627
                        {
 
1628
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for nodeName");
 
1629
                            return AXIS2_FAILURE;
 
1630
                        }
 
1631
                        _ncStartNetworkResponseType->is_valid_nodeName = AXIS2_TRUE;
 
1632
                    
 
1633
                return AXIS2_SUCCESS;
 
1634
             }
 
1635
 
 
1636
             
 
1637
 
 
1638
           /**
 
1639
            * resetter for nodeName
 
1640
            */
 
1641
           axis2_status_t AXIS2_CALL
 
1642
           adb_ncStartNetworkResponseType_reset_nodeName(
 
1643
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1644
                   const axutil_env_t *env)
 
1645
           {
 
1646
               int i = 0;
 
1647
               int count = 0;
 
1648
               void *element = NULL;
 
1649
 
 
1650
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1651
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1652
               
 
1653
 
 
1654
               
 
1655
            
 
1656
                
 
1657
                if(_ncStartNetworkResponseType->property_nodeName != NULL)
 
1658
                {
 
1659
                   
 
1660
                   
 
1661
                        AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_nodeName);
 
1662
                     _ncStartNetworkResponseType->property_nodeName = NULL;
 
1663
                }
 
1664
            
 
1665
                
 
1666
                
 
1667
                _ncStartNetworkResponseType->is_valid_nodeName = AXIS2_FALSE; 
 
1668
               return AXIS2_SUCCESS;
 
1669
           }
 
1670
 
 
1671
           /**
 
1672
            * Check whether nodeName is nill
 
1673
            */
 
1674
           axis2_bool_t AXIS2_CALL
 
1675
           adb_ncStartNetworkResponseType_is_nodeName_nil(
 
1676
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1677
                   const axutil_env_t *env)
 
1678
           {
 
1679
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1680
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1681
               
 
1682
               return !_ncStartNetworkResponseType->is_valid_nodeName;
 
1683
           }
 
1684
 
 
1685
           /**
 
1686
            * Set nodeName to nill (currently the same as reset)
 
1687
            */
 
1688
           axis2_status_t AXIS2_CALL
 
1689
           adb_ncStartNetworkResponseType_set_nodeName_nil(
 
1690
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1691
                   const axutil_env_t *env)
 
1692
           {
 
1693
               return adb_ncStartNetworkResponseType_reset_nodeName(_ncStartNetworkResponseType, env);
 
1694
           }
 
1695
 
 
1696
           
 
1697
 
 
1698
            /**
 
1699
             * getter for statusMessage.
 
1700
             */
 
1701
            int AXIS2_CALL
 
1702
            adb_ncStartNetworkResponseType_get_statusMessage(
 
1703
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1704
                    const axutil_env_t *env)
 
1705
             {
 
1706
                
 
1707
                    AXIS2_ENV_CHECK(env, (int)0);
 
1708
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, (int)0);
 
1709
                  
 
1710
 
 
1711
                return _ncStartNetworkResponseType->property_statusMessage;
 
1712
             }
 
1713
 
 
1714
            /**
 
1715
             * setter for statusMessage
 
1716
             */
 
1717
            axis2_status_t AXIS2_CALL
 
1718
            adb_ncStartNetworkResponseType_set_statusMessage(
 
1719
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1720
                    const axutil_env_t *env,
 
1721
                    const int  arg_statusMessage)
 
1722
             {
 
1723
                
 
1724
 
 
1725
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1726
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1727
                
 
1728
                if(_ncStartNetworkResponseType->is_valid_statusMessage &&
 
1729
                        arg_statusMessage == _ncStartNetworkResponseType->property_statusMessage)
 
1730
                {
 
1731
                    
 
1732
                    return AXIS2_SUCCESS; 
 
1733
                }
 
1734
 
 
1735
                adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env);
 
1736
 
 
1737
                _ncStartNetworkResponseType->property_statusMessage = arg_statusMessage;
 
1738
                        _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_TRUE;
 
1739
                    
 
1740
                return AXIS2_SUCCESS;
 
1741
             }
 
1742
 
 
1743
             
 
1744
 
 
1745
           /**
 
1746
            * resetter for statusMessage
 
1747
            */
 
1748
           axis2_status_t AXIS2_CALL
 
1749
           adb_ncStartNetworkResponseType_reset_statusMessage(
 
1750
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1751
                   const axutil_env_t *env)
 
1752
           {
 
1753
               int i = 0;
 
1754
               int count = 0;
 
1755
               void *element = NULL;
 
1756
 
 
1757
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1758
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1759
               
 
1760
 
 
1761
               _ncStartNetworkResponseType->is_valid_statusMessage = AXIS2_FALSE; 
 
1762
               return AXIS2_SUCCESS;
 
1763
           }
 
1764
 
 
1765
           /**
 
1766
            * Check whether statusMessage is nill
 
1767
            */
 
1768
           axis2_bool_t AXIS2_CALL
 
1769
           adb_ncStartNetworkResponseType_is_statusMessage_nil(
 
1770
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1771
                   const axutil_env_t *env)
 
1772
           {
 
1773
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1774
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1775
               
 
1776
               return !_ncStartNetworkResponseType->is_valid_statusMessage;
 
1777
           }
 
1778
 
 
1779
           /**
 
1780
            * Set statusMessage to nill (currently the same as reset)
 
1781
            */
 
1782
           axis2_status_t AXIS2_CALL
 
1783
           adb_ncStartNetworkResponseType_set_statusMessage_nil(
 
1784
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1785
                   const axutil_env_t *env)
 
1786
           {
 
1787
               return adb_ncStartNetworkResponseType_reset_statusMessage(_ncStartNetworkResponseType, env);
 
1788
           }
 
1789
 
 
1790
           
 
1791
 
 
1792
            /**
 
1793
             * getter for networkStatus.
 
1794
             */
 
1795
            axis2_char_t* AXIS2_CALL
 
1796
            adb_ncStartNetworkResponseType_get_networkStatus(
 
1797
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1798
                    const axutil_env_t *env)
 
1799
             {
 
1800
                
 
1801
                    AXIS2_ENV_CHECK(env, NULL);
 
1802
                    AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, NULL);
 
1803
                  
 
1804
 
 
1805
                return _ncStartNetworkResponseType->property_networkStatus;
 
1806
             }
 
1807
 
 
1808
            /**
 
1809
             * setter for networkStatus
 
1810
             */
 
1811
            axis2_status_t AXIS2_CALL
 
1812
            adb_ncStartNetworkResponseType_set_networkStatus(
 
1813
                    adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1814
                    const axutil_env_t *env,
 
1815
                    const axis2_char_t*  arg_networkStatus)
 
1816
             {
 
1817
                
 
1818
 
 
1819
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1820
                AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1821
                
 
1822
                if(_ncStartNetworkResponseType->is_valid_networkStatus &&
 
1823
                        arg_networkStatus == _ncStartNetworkResponseType->property_networkStatus)
 
1824
                {
 
1825
                    
 
1826
                    return AXIS2_SUCCESS; 
 
1827
                }
 
1828
 
 
1829
                adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env);
 
1830
 
 
1831
                
 
1832
                if(NULL == arg_networkStatus)
 
1833
                {
 
1834
                    /* We are already done */
 
1835
                    return AXIS2_SUCCESS;
 
1836
                }
 
1837
                _ncStartNetworkResponseType->property_networkStatus = (axis2_char_t *)axutil_strdup(env, arg_networkStatus);
 
1838
                        if(NULL == _ncStartNetworkResponseType->property_networkStatus)
 
1839
                        {
 
1840
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for networkStatus");
 
1841
                            return AXIS2_FAILURE;
 
1842
                        }
 
1843
                        _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_TRUE;
 
1844
                    
 
1845
                return AXIS2_SUCCESS;
 
1846
             }
 
1847
 
 
1848
             
 
1849
 
 
1850
           /**
 
1851
            * resetter for networkStatus
 
1852
            */
 
1853
           axis2_status_t AXIS2_CALL
 
1854
           adb_ncStartNetworkResponseType_reset_networkStatus(
 
1855
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1856
                   const axutil_env_t *env)
 
1857
           {
 
1858
               int i = 0;
 
1859
               int count = 0;
 
1860
               void *element = NULL;
 
1861
 
 
1862
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
 
1863
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_FAILURE);
 
1864
               
 
1865
 
 
1866
               
 
1867
            
 
1868
                
 
1869
                if(_ncStartNetworkResponseType->property_networkStatus != NULL)
 
1870
                {
 
1871
                   
 
1872
                   
 
1873
                        AXIS2_FREE(env-> allocator, _ncStartNetworkResponseType->property_networkStatus);
 
1874
                     _ncStartNetworkResponseType->property_networkStatus = NULL;
 
1875
                }
 
1876
            
 
1877
                
 
1878
                
 
1879
                _ncStartNetworkResponseType->is_valid_networkStatus = AXIS2_FALSE; 
 
1880
               return AXIS2_SUCCESS;
 
1881
           }
 
1882
 
 
1883
           /**
 
1884
            * Check whether networkStatus is nill
 
1885
            */
 
1886
           axis2_bool_t AXIS2_CALL
 
1887
           adb_ncStartNetworkResponseType_is_networkStatus_nil(
 
1888
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1889
                   const axutil_env_t *env)
 
1890
           {
 
1891
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
 
1892
               AXIS2_PARAM_CHECK(env->error, _ncStartNetworkResponseType, AXIS2_TRUE);
 
1893
               
 
1894
               return !_ncStartNetworkResponseType->is_valid_networkStatus;
 
1895
           }
 
1896
 
 
1897
           /**
 
1898
            * Set networkStatus to nill (currently the same as reset)
 
1899
            */
 
1900
           axis2_status_t AXIS2_CALL
 
1901
           adb_ncStartNetworkResponseType_set_networkStatus_nil(
 
1902
                   adb_ncStartNetworkResponseType_t* _ncStartNetworkResponseType,
 
1903
                   const axutil_env_t *env)
 
1904
           {
 
1905
               return adb_ncStartNetworkResponseType_reset_networkStatus(_ncStartNetworkResponseType, env);
 
1906
           }
 
1907
 
 
1908
           
 
1909