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

« back to all changes in this revision

Viewing changes to gatherlog/generated/adb_getLogsResponseType.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_getLogsResponseType.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_getLogsResponseType.h"
11
 
 
12
 
                /*
13
 
                 * This type was generated from the piece of schema that had
14
 
                 * name = getLogsResponseType
15
 
                 * Namespace URI = http://eucalyptus.ucsb.edu/
16
 
                 * Namespace Prefix = ns1
17
 
                 */
18
 
 
19
 
 
20
 
 
21
 
        struct adb_getLogsResponseType
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_char_t* property_statusMessage;
36
 
 
37
 
 
38
 
                axis2_bool_t is_valid_statusMessage;
39
 
 
40
 
 
41
 
            axis2_bool_t property_return;
42
 
 
43
 
 
44
 
                axis2_bool_t is_valid_return;
45
 
 
46
 
 
47
 
            axis2_char_t* property_serviceTag;
48
 
 
49
 
 
50
 
                axis2_bool_t is_valid_serviceTag;
51
 
 
52
 
 
53
 
            axis2_char_t* property_CCLog;
54
 
 
55
 
 
56
 
                axis2_bool_t is_valid_CCLog;
57
 
 
58
 
 
59
 
            axis2_char_t* property_NCLog;
60
 
 
61
 
 
62
 
                axis2_bool_t is_valid_NCLog;
63
 
 
64
 
 
65
 
            axis2_char_t* property_httpdLog;
66
 
 
67
 
 
68
 
                axis2_bool_t is_valid_httpdLog;
69
 
 
70
 
 
71
 
            axis2_char_t* property_axis2Log;
72
 
 
73
 
 
74
 
                axis2_bool_t is_valid_axis2Log;
75
 
 
76
 
 
77
 
 
78
 
        };
79
 
 
80
 
 
81
 
       /************************* Private Function prototypes ********************************/
82
 
 
83
 
 
84
 
                axis2_status_t AXIS2_CALL
85
 
                adb_getLogsResponseType_set_correlationId_nil(
86
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
87
 
                        const axutil_env_t *env);
88
 
 
89
 
 
90
 
                axis2_status_t AXIS2_CALL
91
 
                adb_getLogsResponseType_set_userId_nil(
92
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
93
 
                        const axutil_env_t *env);
94
 
 
95
 
 
96
 
                axis2_status_t AXIS2_CALL
97
 
                adb_getLogsResponseType_set_return_nil(
98
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
99
 
                        const axutil_env_t *env);
100
 
 
101
 
 
102
 
                axis2_status_t AXIS2_CALL
103
 
                adb_getLogsResponseType_set_serviceTag_nil(
104
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
105
 
                        const axutil_env_t *env);
106
 
 
107
 
 
108
 
                axis2_status_t AXIS2_CALL
109
 
                adb_getLogsResponseType_set_CCLog_nil(
110
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
111
 
                        const axutil_env_t *env);
112
 
 
113
 
 
114
 
                axis2_status_t AXIS2_CALL
115
 
                adb_getLogsResponseType_set_NCLog_nil(
116
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
117
 
                        const axutil_env_t *env);
118
 
 
119
 
 
120
 
                axis2_status_t AXIS2_CALL
121
 
                adb_getLogsResponseType_set_httpdLog_nil(
122
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
123
 
                        const axutil_env_t *env);
124
 
 
125
 
 
126
 
                axis2_status_t AXIS2_CALL
127
 
                adb_getLogsResponseType_set_axis2Log_nil(
128
 
                        adb_getLogsResponseType_t* _getLogsResponseType,
129
 
                        const axutil_env_t *env);
130
 
 
131
 
 
132
 
 
133
 
       /************************* Function Implmentations ********************************/
134
 
        adb_getLogsResponseType_t* AXIS2_CALL
135
 
        adb_getLogsResponseType_create(
136
 
            const axutil_env_t *env)
137
 
        {
138
 
            adb_getLogsResponseType_t *_getLogsResponseType = NULL;
139
 
 
140
 
            AXIS2_ENV_CHECK(env, NULL);
141
 
 
142
 
            _getLogsResponseType = (adb_getLogsResponseType_t *) AXIS2_MALLOC(env->
143
 
                allocator, sizeof(adb_getLogsResponseType_t));
144
 
 
145
 
            if(NULL == _getLogsResponseType)
146
 
            {
147
 
                AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
148
 
                return NULL;
149
 
            }
150
 
 
151
 
            memset(_getLogsResponseType, 0, sizeof(adb_getLogsResponseType_t));
152
 
 
153
 
            _getLogsResponseType->property_correlationId  = NULL;
154
 
                  _getLogsResponseType->is_valid_correlationId  = AXIS2_FALSE;
155
 
            _getLogsResponseType->property_userId  = NULL;
156
 
                  _getLogsResponseType->is_valid_userId  = AXIS2_FALSE;
157
 
            _getLogsResponseType->property_statusMessage  = NULL;
158
 
                  _getLogsResponseType->is_valid_statusMessage  = AXIS2_FALSE;
159
 
            _getLogsResponseType->is_valid_return  = AXIS2_FALSE;
160
 
            _getLogsResponseType->property_serviceTag  = NULL;
161
 
                  _getLogsResponseType->is_valid_serviceTag  = AXIS2_FALSE;
162
 
            _getLogsResponseType->property_CCLog  = NULL;
163
 
                  _getLogsResponseType->is_valid_CCLog  = AXIS2_FALSE;
164
 
            _getLogsResponseType->property_NCLog  = NULL;
165
 
                  _getLogsResponseType->is_valid_NCLog  = AXIS2_FALSE;
166
 
            _getLogsResponseType->property_httpdLog  = NULL;
167
 
                  _getLogsResponseType->is_valid_httpdLog  = AXIS2_FALSE;
168
 
            _getLogsResponseType->property_axis2Log  = NULL;
169
 
                  _getLogsResponseType->is_valid_axis2Log  = AXIS2_FALSE;
170
 
 
171
 
 
172
 
            return _getLogsResponseType;
173
 
        }
174
 
 
175
 
        axis2_status_t AXIS2_CALL
176
 
        adb_getLogsResponseType_free (
177
 
                adb_getLogsResponseType_t* _getLogsResponseType,
178
 
                const axutil_env_t *env)
179
 
        {
180
 
 
181
 
 
182
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
183
 
            AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
184
 
 
185
 
            adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env);
186
 
            adb_getLogsResponseType_reset_userId(_getLogsResponseType, env);
187
 
            adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env);
188
 
            adb_getLogsResponseType_reset_return(_getLogsResponseType, env);
189
 
            adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env);
190
 
            adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env);
191
 
            adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env);
192
 
            adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env);
193
 
            adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env);
194
 
 
195
 
 
196
 
            if(_getLogsResponseType)
197
 
            {
198
 
                AXIS2_FREE(env->allocator, _getLogsResponseType);
199
 
                _getLogsResponseType = NULL;
200
 
            }
201
 
            return AXIS2_SUCCESS;
202
 
        }
203
 
 
204
 
 
205
 
 
206
 
 
207
 
        axis2_status_t AXIS2_CALL
208
 
        adb_getLogsResponseType_deserialize(
209
 
                adb_getLogsResponseType_t* _getLogsResponseType,
210
 
                const axutil_env_t *env,
211
 
                axiom_node_t **dp_parent,
212
 
                axis2_bool_t *dp_is_early_node_valid,
213
 
                axis2_bool_t dont_care_minoccurs)
214
 
        {
215
 
          axiom_node_t *parent = *dp_parent;
216
 
 
217
 
          axis2_status_t status = AXIS2_SUCCESS;
218
 
 
219
 
             axis2_char_t* text_value = NULL;
220
 
             axutil_qname_t *qname = NULL;
221
 
 
222
 
            axutil_qname_t *element_qname = NULL;
223
 
 
224
 
               axiom_node_t *first_node = NULL;
225
 
               axis2_bool_t is_early_node_valid = AXIS2_TRUE;
226
 
               axiom_node_t *current_node = NULL;
227
 
               axiom_element_t *current_element = NULL;
228
 
 
229
 
            AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
230
 
            AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
231
 
 
232
 
 
233
 
 
234
 
              while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
235
 
              {
236
 
                  parent = axiom_node_get_next_sibling(parent, env);
237
 
              }
238
 
              if (NULL == parent)
239
 
              {
240
 
                /* This should be checked before everything */
241
 
                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
242
 
                            "Failed in building adb object for getLogsResponseType : "
243
 
                            "NULL elemenet can not be passed to deserialize");
244
 
                return AXIS2_FAILURE;
245
 
              }
246
 
 
247
 
 
248
 
                      first_node = axiom_node_get_first_child(parent, env);
249
 
 
250
 
 
251
 
 
252
 
 
253
 
                     /*
254
 
                      * building correlationId element
255
 
                      */
256
 
 
257
 
 
258
 
 
259
 
                                   current_node = first_node;
260
 
                                   is_early_node_valid = AXIS2_FALSE;
261
 
 
262
 
 
263
 
                                    while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
264
 
                                    {
265
 
                                        current_node = axiom_node_get_next_sibling(current_node, env);
266
 
                                    }
267
 
                                    if(current_node != NULL)
268
 
                                    {
269
 
                                        current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
270
 
                                        qname = axiom_element_get_qname(current_element, env, current_node);
271
 
                                    }
272
 
 
273
 
                                 element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
274
 
 
275
 
 
276
 
                           if (
277
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
278
 
                           {
279
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
280
 
                              {
281
 
                                is_early_node_valid = AXIS2_TRUE;
282
 
                              }
283
 
 
284
 
 
285
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
286
 
                                      if(text_value != NULL)
287
 
                                      {
288
 
                                            status = adb_getLogsResponseType_set_correlationId(_getLogsResponseType, env,
289
 
                                                               text_value);
290
 
                                      }
291
 
 
292
 
                                      else
293
 
                                      {
294
 
                                            /*
295
 
                                             * axis2_qname_t *qname = NULL;
296
 
                                             * axiom_attribute_t *the_attri = NULL;
297
 
                                             *
298
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
299
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
300
 
                                             */
301
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
302
 
 
303
 
                                            axiom_attribute_t *the_attri = NULL;
304
 
                                            axis2_char_t *attrib_text = NULL;
305
 
                                            axutil_hash_t *attribute_hash = NULL;
306
 
 
307
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
308
 
 
309
 
                                            attrib_text = NULL;
310
 
                                            if(attribute_hash)
311
 
                                            {
312
 
                                                 axutil_hash_index_t *hi;
313
 
                                                 void *val;
314
 
                                                 const void *key;
315
 
 
316
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
317
 
                                                 {
318
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
319
 
 
320
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
321
 
                                                     {
322
 
                                                         the_attri = (axiom_attribute_t*)val;
323
 
                                                         break;
324
 
                                                     }
325
 
                                                 }
326
 
                                            }
327
 
 
328
 
                                            if(the_attri)
329
 
                                            {
330
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
331
 
                                            }
332
 
                                            else
333
 
                                            {
334
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
335
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
336
 
                                            }
337
 
 
338
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
339
 
                                            {
340
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element correlationId");
341
 
                                                status = AXIS2_FAILURE;
342
 
                                            }
343
 
                                            else
344
 
                                            {
345
 
                                                /* after all, we found this is a empty string */
346
 
                                                status = adb_getLogsResponseType_set_correlationId(_getLogsResponseType, env,
347
 
                                                                   "");
348
 
                                            }
349
 
                                      }
350
 
 
351
 
                                 if(AXIS2_FAILURE ==  status)
352
 
                                 {
353
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for correlationId ");
354
 
                                     if(element_qname)
355
 
                                     {
356
 
                                         axutil_qname_free(element_qname, env);
357
 
                                     }
358
 
                                     return AXIS2_FAILURE;
359
 
                                 }
360
 
                              }
361
 
 
362
 
                  if(element_qname)
363
 
                  {
364
 
                     axutil_qname_free(element_qname, env);
365
 
                     element_qname = NULL;
366
 
                  }
367
 
 
368
 
 
369
 
 
370
 
                     /*
371
 
                      * building userId element
372
 
                      */
373
 
 
374
 
 
375
 
 
376
 
                                    /*
377
 
                                     * because elements are ordered this works fine
378
 
                                     */
379
 
 
380
 
 
381
 
                                   if(current_node != NULL && is_early_node_valid)
382
 
                                   {
383
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
384
 
 
385
 
 
386
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
387
 
                                        {
388
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
389
 
                                        }
390
 
                                        if(current_node != NULL)
391
 
                                        {
392
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
393
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
394
 
                                        }
395
 
 
396
 
                                   }
397
 
                                   is_early_node_valid = AXIS2_FALSE;
398
 
 
399
 
                                 element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
400
 
 
401
 
 
402
 
                           if (
403
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
404
 
                           {
405
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
406
 
                              {
407
 
                                is_early_node_valid = AXIS2_TRUE;
408
 
                              }
409
 
 
410
 
 
411
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
412
 
                                      if(text_value != NULL)
413
 
                                      {
414
 
                                            status = adb_getLogsResponseType_set_userId(_getLogsResponseType, env,
415
 
                                                               text_value);
416
 
                                      }
417
 
 
418
 
                                      else
419
 
                                      {
420
 
                                            /*
421
 
                                             * axis2_qname_t *qname = NULL;
422
 
                                             * axiom_attribute_t *the_attri = NULL;
423
 
                                             *
424
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
425
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
426
 
                                             */
427
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
428
 
 
429
 
                                            axiom_attribute_t *the_attri = NULL;
430
 
                                            axis2_char_t *attrib_text = NULL;
431
 
                                            axutil_hash_t *attribute_hash = NULL;
432
 
 
433
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
434
 
 
435
 
                                            attrib_text = NULL;
436
 
                                            if(attribute_hash)
437
 
                                            {
438
 
                                                 axutil_hash_index_t *hi;
439
 
                                                 void *val;
440
 
                                                 const void *key;
441
 
 
442
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
443
 
                                                 {
444
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
445
 
 
446
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
447
 
                                                     {
448
 
                                                         the_attri = (axiom_attribute_t*)val;
449
 
                                                         break;
450
 
                                                     }
451
 
                                                 }
452
 
                                            }
453
 
 
454
 
                                            if(the_attri)
455
 
                                            {
456
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
457
 
                                            }
458
 
                                            else
459
 
                                            {
460
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
461
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
462
 
                                            }
463
 
 
464
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
465
 
                                            {
466
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element userId");
467
 
                                                status = AXIS2_FAILURE;
468
 
                                            }
469
 
                                            else
470
 
                                            {
471
 
                                                /* after all, we found this is a empty string */
472
 
                                                status = adb_getLogsResponseType_set_userId(_getLogsResponseType, env,
473
 
                                                                   "");
474
 
                                            }
475
 
                                      }
476
 
 
477
 
                                 if(AXIS2_FAILURE ==  status)
478
 
                                 {
479
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for userId ");
480
 
                                     if(element_qname)
481
 
                                     {
482
 
                                         axutil_qname_free(element_qname, env);
483
 
                                     }
484
 
                                     return AXIS2_FAILURE;
485
 
                                 }
486
 
                              }
487
 
 
488
 
                  if(element_qname)
489
 
                  {
490
 
                     axutil_qname_free(element_qname, env);
491
 
                     element_qname = NULL;
492
 
                  }
493
 
 
494
 
 
495
 
 
496
 
                     /*
497
 
                      * building statusMessage element
498
 
                      */
499
 
 
500
 
 
501
 
 
502
 
                                    /*
503
 
                                     * because elements are ordered this works fine
504
 
                                     */
505
 
 
506
 
 
507
 
                                   if(current_node != NULL && is_early_node_valid)
508
 
                                   {
509
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
510
 
 
511
 
 
512
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
513
 
                                        {
514
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
515
 
                                        }
516
 
                                        if(current_node != NULL)
517
 
                                        {
518
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
519
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
520
 
                                        }
521
 
 
522
 
                                   }
523
 
                                   is_early_node_valid = AXIS2_FALSE;
524
 
 
525
 
                                 element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
526
 
 
527
 
 
528
 
                           if (
529
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
530
 
                           {
531
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
532
 
                              {
533
 
                                is_early_node_valid = AXIS2_TRUE;
534
 
                              }
535
 
 
536
 
 
537
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
538
 
                                      if(text_value != NULL)
539
 
                                      {
540
 
                                            status = adb_getLogsResponseType_set_statusMessage(_getLogsResponseType, env,
541
 
                                                               text_value);
542
 
                                      }
543
 
 
544
 
                                 if(AXIS2_FAILURE ==  status)
545
 
                                 {
546
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
547
 
                                     if(element_qname)
548
 
                                     {
549
 
                                         axutil_qname_free(element_qname, env);
550
 
                                     }
551
 
                                     return AXIS2_FAILURE;
552
 
                                 }
553
 
                              }
554
 
 
555
 
                  if(element_qname)
556
 
                  {
557
 
                     axutil_qname_free(element_qname, env);
558
 
                     element_qname = NULL;
559
 
                  }
560
 
 
561
 
 
562
 
 
563
 
                     /*
564
 
                      * building return element
565
 
                      */
566
 
 
567
 
 
568
 
 
569
 
                                    /*
570
 
                                     * because elements are ordered this works fine
571
 
                                     */
572
 
 
573
 
 
574
 
                                   if(current_node != NULL && is_early_node_valid)
575
 
                                   {
576
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
577
 
 
578
 
 
579
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
580
 
                                        {
581
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
582
 
                                        }
583
 
                                        if(current_node != NULL)
584
 
                                        {
585
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
586
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
587
 
                                        }
588
 
 
589
 
                                   }
590
 
                                   is_early_node_valid = AXIS2_FALSE;
591
 
 
592
 
                                 element_qname = axutil_qname_create(env, "return", "http://eucalyptus.ucsb.edu/", NULL);
593
 
 
594
 
 
595
 
                           if (
596
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
597
 
                           {
598
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
599
 
                              {
600
 
                                is_early_node_valid = AXIS2_TRUE;
601
 
                              }
602
 
 
603
 
 
604
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
605
 
                                      if(text_value != NULL)
606
 
                                      {
607
 
                                            if (!axutil_strcasecmp(text_value , "true"))
608
 
                                            {
609
 
                                                status = adb_getLogsResponseType_set_return(_getLogsResponseType, env,
610
 
                                                                 AXIS2_TRUE);
611
 
                                            }
612
 
                                            else
613
 
                                            {
614
 
                                                status = adb_getLogsResponseType_set_return(_getLogsResponseType, env,
615
 
                                                                      AXIS2_FALSE);
616
 
                                            }
617
 
                                      }
618
 
 
619
 
                                      else
620
 
                                      {
621
 
                                          AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element return");
622
 
                                          status = AXIS2_FAILURE;
623
 
                                      }
624
 
 
625
 
                                 if(AXIS2_FAILURE ==  status)
626
 
                                 {
627
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for return ");
628
 
                                     if(element_qname)
629
 
                                     {
630
 
                                         axutil_qname_free(element_qname, env);
631
 
                                     }
632
 
                                     return AXIS2_FAILURE;
633
 
                                 }
634
 
                              }
635
 
 
636
 
                  if(element_qname)
637
 
                  {
638
 
                     axutil_qname_free(element_qname, env);
639
 
                     element_qname = NULL;
640
 
                  }
641
 
 
642
 
 
643
 
 
644
 
                     /*
645
 
                      * building serviceTag element
646
 
                      */
647
 
 
648
 
 
649
 
 
650
 
                                    /*
651
 
                                     * because elements are ordered this works fine
652
 
                                     */
653
 
 
654
 
 
655
 
                                   if(current_node != NULL && is_early_node_valid)
656
 
                                   {
657
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
658
 
 
659
 
 
660
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
661
 
                                        {
662
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
663
 
                                        }
664
 
                                        if(current_node != NULL)
665
 
                                        {
666
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
667
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
668
 
                                        }
669
 
 
670
 
                                   }
671
 
                                   is_early_node_valid = AXIS2_FALSE;
672
 
 
673
 
                                 element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL);
674
 
 
675
 
 
676
 
                           if (
677
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
678
 
                           {
679
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
680
 
                              {
681
 
                                is_early_node_valid = AXIS2_TRUE;
682
 
                              }
683
 
 
684
 
 
685
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
686
 
                                      if(text_value != NULL)
687
 
                                      {
688
 
                                            status = adb_getLogsResponseType_set_serviceTag(_getLogsResponseType, env,
689
 
                                                               text_value);
690
 
                                      }
691
 
 
692
 
                                      else
693
 
                                      {
694
 
                                            /*
695
 
                                             * axis2_qname_t *qname = NULL;
696
 
                                             * axiom_attribute_t *the_attri = NULL;
697
 
                                             *
698
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
699
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
700
 
                                             */
701
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
702
 
 
703
 
                                            axiom_attribute_t *the_attri = NULL;
704
 
                                            axis2_char_t *attrib_text = NULL;
705
 
                                            axutil_hash_t *attribute_hash = NULL;
706
 
 
707
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
708
 
 
709
 
                                            attrib_text = NULL;
710
 
                                            if(attribute_hash)
711
 
                                            {
712
 
                                                 axutil_hash_index_t *hi;
713
 
                                                 void *val;
714
 
                                                 const void *key;
715
 
 
716
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
717
 
                                                 {
718
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
719
 
 
720
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
721
 
                                                     {
722
 
                                                         the_attri = (axiom_attribute_t*)val;
723
 
                                                         break;
724
 
                                                     }
725
 
                                                 }
726
 
                                            }
727
 
 
728
 
                                            if(the_attri)
729
 
                                            {
730
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
731
 
                                            }
732
 
                                            else
733
 
                                            {
734
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
735
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
736
 
                                            }
737
 
 
738
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
739
 
                                            {
740
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element serviceTag");
741
 
                                                status = AXIS2_FAILURE;
742
 
                                            }
743
 
                                            else
744
 
                                            {
745
 
                                                /* after all, we found this is a empty string */
746
 
                                                status = adb_getLogsResponseType_set_serviceTag(_getLogsResponseType, env,
747
 
                                                                   "");
748
 
                                            }
749
 
                                      }
750
 
 
751
 
                                 if(AXIS2_FAILURE ==  status)
752
 
                                 {
753
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for serviceTag ");
754
 
                                     if(element_qname)
755
 
                                     {
756
 
                                         axutil_qname_free(element_qname, env);
757
 
                                     }
758
 
                                     return AXIS2_FAILURE;
759
 
                                 }
760
 
                              }
761
 
 
762
 
                  if(element_qname)
763
 
                  {
764
 
                     axutil_qname_free(element_qname, env);
765
 
                     element_qname = NULL;
766
 
                  }
767
 
 
768
 
 
769
 
 
770
 
                     /*
771
 
                      * building CCLog element
772
 
                      */
773
 
 
774
 
 
775
 
 
776
 
                                    /*
777
 
                                     * because elements are ordered this works fine
778
 
                                     */
779
 
 
780
 
 
781
 
                                   if(current_node != NULL && is_early_node_valid)
782
 
                                   {
783
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
784
 
 
785
 
 
786
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
787
 
                                        {
788
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
789
 
                                        }
790
 
                                        if(current_node != NULL)
791
 
                                        {
792
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
793
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
794
 
                                        }
795
 
 
796
 
                                   }
797
 
                                   is_early_node_valid = AXIS2_FALSE;
798
 
 
799
 
                                 element_qname = axutil_qname_create(env, "CCLog", "http://eucalyptus.ucsb.edu/", NULL);
800
 
 
801
 
 
802
 
                           if (
803
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
804
 
                           {
805
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
806
 
                              {
807
 
                                is_early_node_valid = AXIS2_TRUE;
808
 
                              }
809
 
 
810
 
 
811
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
812
 
                                      if(text_value != NULL)
813
 
                                      {
814
 
                                            status = adb_getLogsResponseType_set_CCLog(_getLogsResponseType, env,
815
 
                                                               text_value);
816
 
                                      }
817
 
 
818
 
                                      else
819
 
                                      {
820
 
                                            /*
821
 
                                             * axis2_qname_t *qname = NULL;
822
 
                                             * axiom_attribute_t *the_attri = NULL;
823
 
                                             *
824
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
825
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
826
 
                                             */
827
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
828
 
 
829
 
                                            axiom_attribute_t *the_attri = NULL;
830
 
                                            axis2_char_t *attrib_text = NULL;
831
 
                                            axutil_hash_t *attribute_hash = NULL;
832
 
 
833
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
834
 
 
835
 
                                            attrib_text = NULL;
836
 
                                            if(attribute_hash)
837
 
                                            {
838
 
                                                 axutil_hash_index_t *hi;
839
 
                                                 void *val;
840
 
                                                 const void *key;
841
 
 
842
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
843
 
                                                 {
844
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
845
 
 
846
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
847
 
                                                     {
848
 
                                                         the_attri = (axiom_attribute_t*)val;
849
 
                                                         break;
850
 
                                                     }
851
 
                                                 }
852
 
                                            }
853
 
 
854
 
                                            if(the_attri)
855
 
                                            {
856
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
857
 
                                            }
858
 
                                            else
859
 
                                            {
860
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
861
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
862
 
                                            }
863
 
 
864
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
865
 
                                            {
866
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element CCLog");
867
 
                                                status = AXIS2_FAILURE;
868
 
                                            }
869
 
                                            else
870
 
                                            {
871
 
                                                /* after all, we found this is a empty string */
872
 
                                                status = adb_getLogsResponseType_set_CCLog(_getLogsResponseType, env,
873
 
                                                                   "");
874
 
                                            }
875
 
                                      }
876
 
 
877
 
                                 if(AXIS2_FAILURE ==  status)
878
 
                                 {
879
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for CCLog ");
880
 
                                     if(element_qname)
881
 
                                     {
882
 
                                         axutil_qname_free(element_qname, env);
883
 
                                     }
884
 
                                     return AXIS2_FAILURE;
885
 
                                 }
886
 
                              }
887
 
 
888
 
                  if(element_qname)
889
 
                  {
890
 
                     axutil_qname_free(element_qname, env);
891
 
                     element_qname = NULL;
892
 
                  }
893
 
 
894
 
 
895
 
 
896
 
                     /*
897
 
                      * building NCLog element
898
 
                      */
899
 
 
900
 
 
901
 
 
902
 
                                    /*
903
 
                                     * because elements are ordered this works fine
904
 
                                     */
905
 
 
906
 
 
907
 
                                   if(current_node != NULL && is_early_node_valid)
908
 
                                   {
909
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
910
 
 
911
 
 
912
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
913
 
                                        {
914
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
915
 
                                        }
916
 
                                        if(current_node != NULL)
917
 
                                        {
918
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
919
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
920
 
                                        }
921
 
 
922
 
                                   }
923
 
                                   is_early_node_valid = AXIS2_FALSE;
924
 
 
925
 
                                 element_qname = axutil_qname_create(env, "NCLog", "http://eucalyptus.ucsb.edu/", NULL);
926
 
 
927
 
 
928
 
                           if (
929
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
930
 
                           {
931
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
932
 
                              {
933
 
                                is_early_node_valid = AXIS2_TRUE;
934
 
                              }
935
 
 
936
 
 
937
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
938
 
                                      if(text_value != NULL)
939
 
                                      {
940
 
                                            status = adb_getLogsResponseType_set_NCLog(_getLogsResponseType, env,
941
 
                                                               text_value);
942
 
                                      }
943
 
 
944
 
                                      else
945
 
                                      {
946
 
                                            /*
947
 
                                             * axis2_qname_t *qname = NULL;
948
 
                                             * axiom_attribute_t *the_attri = NULL;
949
 
                                             *
950
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
951
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
952
 
                                             */
953
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
954
 
 
955
 
                                            axiom_attribute_t *the_attri = NULL;
956
 
                                            axis2_char_t *attrib_text = NULL;
957
 
                                            axutil_hash_t *attribute_hash = NULL;
958
 
 
959
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
960
 
 
961
 
                                            attrib_text = NULL;
962
 
                                            if(attribute_hash)
963
 
                                            {
964
 
                                                 axutil_hash_index_t *hi;
965
 
                                                 void *val;
966
 
                                                 const void *key;
967
 
 
968
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
969
 
                                                 {
970
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
971
 
 
972
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
973
 
                                                     {
974
 
                                                         the_attri = (axiom_attribute_t*)val;
975
 
                                                         break;
976
 
                                                     }
977
 
                                                 }
978
 
                                            }
979
 
 
980
 
                                            if(the_attri)
981
 
                                            {
982
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
983
 
                                            }
984
 
                                            else
985
 
                                            {
986
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
987
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
988
 
                                            }
989
 
 
990
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
991
 
                                            {
992
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element NCLog");
993
 
                                                status = AXIS2_FAILURE;
994
 
                                            }
995
 
                                            else
996
 
                                            {
997
 
                                                /* after all, we found this is a empty string */
998
 
                                                status = adb_getLogsResponseType_set_NCLog(_getLogsResponseType, env,
999
 
                                                                   "");
1000
 
                                            }
1001
 
                                      }
1002
 
 
1003
 
                                 if(AXIS2_FAILURE ==  status)
1004
 
                                 {
1005
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for NCLog ");
1006
 
                                     if(element_qname)
1007
 
                                     {
1008
 
                                         axutil_qname_free(element_qname, env);
1009
 
                                     }
1010
 
                                     return AXIS2_FAILURE;
1011
 
                                 }
1012
 
                              }
1013
 
 
1014
 
                  if(element_qname)
1015
 
                  {
1016
 
                     axutil_qname_free(element_qname, env);
1017
 
                     element_qname = NULL;
1018
 
                  }
1019
 
 
1020
 
 
1021
 
 
1022
 
                     /*
1023
 
                      * building httpdLog element
1024
 
                      */
1025
 
 
1026
 
 
1027
 
 
1028
 
                                    /*
1029
 
                                     * because elements are ordered this works fine
1030
 
                                     */
1031
 
 
1032
 
 
1033
 
                                   if(current_node != NULL && is_early_node_valid)
1034
 
                                   {
1035
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1036
 
 
1037
 
 
1038
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1039
 
                                        {
1040
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1041
 
                                        }
1042
 
                                        if(current_node != NULL)
1043
 
                                        {
1044
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1045
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1046
 
                                        }
1047
 
 
1048
 
                                   }
1049
 
                                   is_early_node_valid = AXIS2_FALSE;
1050
 
 
1051
 
                                 element_qname = axutil_qname_create(env, "httpdLog", "http://eucalyptus.ucsb.edu/", NULL);
1052
 
 
1053
 
 
1054
 
                           if (
1055
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1056
 
                           {
1057
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1058
 
                              {
1059
 
                                is_early_node_valid = AXIS2_TRUE;
1060
 
                              }
1061
 
 
1062
 
 
1063
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1064
 
                                      if(text_value != NULL)
1065
 
                                      {
1066
 
                                            status = adb_getLogsResponseType_set_httpdLog(_getLogsResponseType, env,
1067
 
                                                               text_value);
1068
 
                                      }
1069
 
 
1070
 
                                      else
1071
 
                                      {
1072
 
                                            /*
1073
 
                                             * axis2_qname_t *qname = NULL;
1074
 
                                             * axiom_attribute_t *the_attri = NULL;
1075
 
                                             *
1076
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1077
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1078
 
                                             */
1079
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
1080
 
 
1081
 
                                            axiom_attribute_t *the_attri = NULL;
1082
 
                                            axis2_char_t *attrib_text = NULL;
1083
 
                                            axutil_hash_t *attribute_hash = NULL;
1084
 
 
1085
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
1086
 
 
1087
 
                                            attrib_text = NULL;
1088
 
                                            if(attribute_hash)
1089
 
                                            {
1090
 
                                                 axutil_hash_index_t *hi;
1091
 
                                                 void *val;
1092
 
                                                 const void *key;
1093
 
 
1094
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
1095
 
                                                 {
1096
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
1097
 
 
1098
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1099
 
                                                     {
1100
 
                                                         the_attri = (axiom_attribute_t*)val;
1101
 
                                                         break;
1102
 
                                                     }
1103
 
                                                 }
1104
 
                                            }
1105
 
 
1106
 
                                            if(the_attri)
1107
 
                                            {
1108
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
1109
 
                                            }
1110
 
                                            else
1111
 
                                            {
1112
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
1113
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
1114
 
                                            }
1115
 
 
1116
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
1117
 
                                            {
1118
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element httpdLog");
1119
 
                                                status = AXIS2_FAILURE;
1120
 
                                            }
1121
 
                                            else
1122
 
                                            {
1123
 
                                                /* after all, we found this is a empty string */
1124
 
                                                status = adb_getLogsResponseType_set_httpdLog(_getLogsResponseType, env,
1125
 
                                                                   "");
1126
 
                                            }
1127
 
                                      }
1128
 
 
1129
 
                                 if(AXIS2_FAILURE ==  status)
1130
 
                                 {
1131
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for httpdLog ");
1132
 
                                     if(element_qname)
1133
 
                                     {
1134
 
                                         axutil_qname_free(element_qname, env);
1135
 
                                     }
1136
 
                                     return AXIS2_FAILURE;
1137
 
                                 }
1138
 
                              }
1139
 
 
1140
 
                  if(element_qname)
1141
 
                  {
1142
 
                     axutil_qname_free(element_qname, env);
1143
 
                     element_qname = NULL;
1144
 
                  }
1145
 
 
1146
 
 
1147
 
 
1148
 
                     /*
1149
 
                      * building axis2Log element
1150
 
                      */
1151
 
 
1152
 
 
1153
 
 
1154
 
                                    /*
1155
 
                                     * because elements are ordered this works fine
1156
 
                                     */
1157
 
 
1158
 
 
1159
 
                                   if(current_node != NULL && is_early_node_valid)
1160
 
                                   {
1161
 
                                       current_node = axiom_node_get_next_sibling(current_node, env);
1162
 
 
1163
 
 
1164
 
                                        while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
1165
 
                                        {
1166
 
                                            current_node = axiom_node_get_next_sibling(current_node, env);
1167
 
                                        }
1168
 
                                        if(current_node != NULL)
1169
 
                                        {
1170
 
                                            current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1171
 
                                            qname = axiom_element_get_qname(current_element, env, current_node);
1172
 
                                        }
1173
 
 
1174
 
                                   }
1175
 
                                   is_early_node_valid = AXIS2_FALSE;
1176
 
 
1177
 
                                 element_qname = axutil_qname_create(env, "axis2Log", "http://eucalyptus.ucsb.edu/", NULL);
1178
 
 
1179
 
 
1180
 
                           if (
1181
 
                                (current_node   && current_element && (axutil_qname_equals(element_qname, env, qname))))
1182
 
                           {
1183
 
                              if( current_node   && current_element && (axutil_qname_equals(element_qname, env, qname)))
1184
 
                              {
1185
 
                                is_early_node_valid = AXIS2_TRUE;
1186
 
                              }
1187
 
 
1188
 
 
1189
 
                                      text_value = axiom_element_get_text(current_element, env, current_node);
1190
 
                                      if(text_value != NULL)
1191
 
                                      {
1192
 
                                            status = adb_getLogsResponseType_set_axis2Log(_getLogsResponseType, env,
1193
 
                                                               text_value);
1194
 
                                      }
1195
 
 
1196
 
                                      else
1197
 
                                      {
1198
 
                                            /*
1199
 
                                             * axis2_qname_t *qname = NULL;
1200
 
                                             * axiom_attribute_t *the_attri = NULL;
1201
 
                                             *
1202
 
                                             * qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1203
 
                                             * the_attri = axiom_element_get_attribute(current_element, env, qname);
1204
 
                                             */
1205
 
                                            /* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
1206
 
 
1207
 
                                            axiom_attribute_t *the_attri = NULL;
1208
 
                                            axis2_char_t *attrib_text = NULL;
1209
 
                                            axutil_hash_t *attribute_hash = NULL;
1210
 
 
1211
 
                                            attribute_hash = axiom_element_get_all_attributes(current_element, env);
1212
 
 
1213
 
                                            attrib_text = NULL;
1214
 
                                            if(attribute_hash)
1215
 
                                            {
1216
 
                                                 axutil_hash_index_t *hi;
1217
 
                                                 void *val;
1218
 
                                                 const void *key;
1219
 
 
1220
 
                                                 for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
1221
 
                                                 {
1222
 
                                                     axutil_hash_this(hi, &key, NULL, &val);
1223
 
 
1224
 
                                                     if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
1225
 
                                                     {
1226
 
                                                         the_attri = (axiom_attribute_t*)val;
1227
 
                                                         break;
1228
 
                                                     }
1229
 
                                                 }
1230
 
                                            }
1231
 
 
1232
 
                                            if(the_attri)
1233
 
                                            {
1234
 
                                                attrib_text = axiom_attribute_get_value(the_attri, env);
1235
 
                                            }
1236
 
                                            else
1237
 
                                            {
1238
 
                                                /* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
1239
 
                                                attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
1240
 
                                            }
1241
 
 
1242
 
                                            if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
1243
 
                                            {
1244
 
                                                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element axis2Log");
1245
 
                                                status = AXIS2_FAILURE;
1246
 
                                            }
1247
 
                                            else
1248
 
                                            {
1249
 
                                                /* after all, we found this is a empty string */
1250
 
                                                status = adb_getLogsResponseType_set_axis2Log(_getLogsResponseType, env,
1251
 
                                                                   "");
1252
 
                                            }
1253
 
                                      }
1254
 
 
1255
 
                                 if(AXIS2_FAILURE ==  status)
1256
 
                                 {
1257
 
                                     AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for axis2Log ");
1258
 
                                     if(element_qname)
1259
 
                                     {
1260
 
                                         axutil_qname_free(element_qname, env);
1261
 
                                     }
1262
 
                                     return AXIS2_FAILURE;
1263
 
                                 }
1264
 
                              }
1265
 
 
1266
 
                  if(element_qname)
1267
 
                  {
1268
 
                     axutil_qname_free(element_qname, env);
1269
 
                     element_qname = NULL;
1270
 
                  }
1271
 
 
1272
 
          return status;
1273
 
       }
1274
 
 
1275
 
          axis2_bool_t AXIS2_CALL
1276
 
          adb_getLogsResponseType_is_particle()
1277
 
          {
1278
 
 
1279
 
                 return AXIS2_FALSE;
1280
 
 
1281
 
          }
1282
 
 
1283
 
 
1284
 
          void AXIS2_CALL
1285
 
          adb_getLogsResponseType_declare_parent_namespaces(
1286
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
1287
 
                    const axutil_env_t *env, axiom_element_t *parent_element,
1288
 
                    axutil_hash_t *namespaces, int *next_ns_index)
1289
 
          {
1290
 
 
1291
 
                  /* Here this is an empty function, Nothing to declare */
1292
 
 
1293
 
          }
1294
 
 
1295
 
 
1296
 
 
1297
 
        axiom_node_t* AXIS2_CALL
1298
 
        adb_getLogsResponseType_serialize(
1299
 
                adb_getLogsResponseType_t* _getLogsResponseType,
1300
 
                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)
1301
 
        {
1302
 
 
1303
 
 
1304
 
             axis2_char_t *string_to_stream;
1305
 
 
1306
 
 
1307
 
         axiom_node_t *current_node = NULL;
1308
 
         int tag_closed = 0;
1309
 
 
1310
 
 
1311
 
 
1312
 
                axiom_namespace_t *ns1 = NULL;
1313
 
 
1314
 
                axis2_char_t *qname_uri = NULL;
1315
 
                axis2_char_t *qname_prefix = NULL;
1316
 
                axis2_char_t *p_prefix = NULL;
1317
 
                axis2_bool_t ns_already_defined;
1318
 
 
1319
 
                    axis2_char_t *text_value_1;
1320
 
                    axis2_char_t *text_value_1_temp;
1321
 
 
1322
 
                    axis2_char_t *text_value_2;
1323
 
                    axis2_char_t *text_value_2_temp;
1324
 
 
1325
 
                    axis2_char_t *text_value_3;
1326
 
                    axis2_char_t *text_value_3_temp;
1327
 
 
1328
 
                    axis2_char_t text_value_4[64];
1329
 
 
1330
 
                    axis2_char_t *text_value_5;
1331
 
                    axis2_char_t *text_value_5_temp;
1332
 
 
1333
 
                    axis2_char_t *text_value_6;
1334
 
                    axis2_char_t *text_value_6_temp;
1335
 
 
1336
 
                    axis2_char_t *text_value_7;
1337
 
                    axis2_char_t *text_value_7_temp;
1338
 
 
1339
 
                    axis2_char_t *text_value_8;
1340
 
                    axis2_char_t *text_value_8_temp;
1341
 
 
1342
 
                    axis2_char_t *text_value_9;
1343
 
                    axis2_char_t *text_value_9_temp;
1344
 
 
1345
 
               axis2_char_t *start_input_str = NULL;
1346
 
               axis2_char_t *end_input_str = NULL;
1347
 
               unsigned int start_input_str_len = 0;
1348
 
               unsigned int end_input_str_len = 0;
1349
 
 
1350
 
 
1351
 
               axiom_data_source_t *data_source = NULL;
1352
 
               axutil_stream_t *stream = NULL;
1353
 
 
1354
 
 
1355
 
 
1356
 
            AXIS2_ENV_CHECK(env, NULL);
1357
 
            AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
1358
 
 
1359
 
 
1360
 
                    current_node = parent;
1361
 
                    data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
1362
 
                    if (!data_source)
1363
 
                        return NULL;
1364
 
                    stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
1365
 
                    if (!stream)
1366
 
                        return NULL;
1367
 
 
1368
 
            if(!parent_tag_closed)
1369
 
            {
1370
 
 
1371
 
              string_to_stream = ">";
1372
 
              axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
1373
 
              tag_closed = 1;
1374
 
 
1375
 
            }
1376
 
 
1377
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1378
 
                       {
1379
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1380
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1381
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1382
 
 
1383
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1384
 
                                            "http://eucalyptus.ucsb.edu/",
1385
 
                                            p_prefix));
1386
 
                       }
1387
 
 
1388
 
 
1389
 
                   if (!_getLogsResponseType->is_valid_correlationId)
1390
 
                   {
1391
 
 
1392
 
                           /* no need to complain for minoccurs=0 element */
1393
 
 
1394
 
 
1395
 
                   }
1396
 
                   else
1397
 
                   {
1398
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1399
 
                                 (4 + axutil_strlen(p_prefix) +
1400
 
                                  axutil_strlen("correlationId")));
1401
 
 
1402
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1403
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1404
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
1405
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1406
 
 
1407
 
 
1408
 
 
1409
 
 
1410
 
 
1411
 
 
1412
 
                     /*
1413
 
                      * parsing correlationId element
1414
 
                      */
1415
 
 
1416
 
 
1417
 
 
1418
 
                            sprintf(start_input_str, "<%s%scorrelationId>",
1419
 
                                 p_prefix?p_prefix:"",
1420
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1421
 
 
1422
 
                        start_input_str_len = axutil_strlen(start_input_str);
1423
 
                        sprintf(end_input_str, "</%s%scorrelationId>",
1424
 
                                 p_prefix?p_prefix:"",
1425
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1426
 
                        end_input_str_len = axutil_strlen(end_input_str);
1427
 
 
1428
 
                           text_value_1 = _getLogsResponseType->property_correlationId;
1429
 
 
1430
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1431
 
 
1432
 
 
1433
 
                           text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
1434
 
                           if (text_value_1_temp)
1435
 
                           {
1436
 
                               axutil_stream_write(stream, env, text_value_1_temp, axutil_strlen(text_value_1_temp));
1437
 
                               AXIS2_FREE(env->allocator, text_value_1_temp);
1438
 
                           }
1439
 
                           else
1440
 
                           {
1441
 
                               axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
1442
 
                           }
1443
 
 
1444
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1445
 
 
1446
 
 
1447
 
                     AXIS2_FREE(env->allocator,start_input_str);
1448
 
                     AXIS2_FREE(env->allocator,end_input_str);
1449
 
                 }
1450
 
 
1451
 
 
1452
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1453
 
                       {
1454
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1455
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1456
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1457
 
 
1458
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1459
 
                                            "http://eucalyptus.ucsb.edu/",
1460
 
                                            p_prefix));
1461
 
                       }
1462
 
 
1463
 
 
1464
 
                   if (!_getLogsResponseType->is_valid_userId)
1465
 
                   {
1466
 
 
1467
 
                           /* no need to complain for minoccurs=0 element */
1468
 
 
1469
 
 
1470
 
                   }
1471
 
                   else
1472
 
                   {
1473
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1474
 
                                 (4 + axutil_strlen(p_prefix) +
1475
 
                                  axutil_strlen("userId")));
1476
 
 
1477
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1478
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1479
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
1480
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
                     /*
1488
 
                      * parsing userId element
1489
 
                      */
1490
 
 
1491
 
 
1492
 
 
1493
 
                            sprintf(start_input_str, "<%s%suserId>",
1494
 
                                 p_prefix?p_prefix:"",
1495
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1496
 
 
1497
 
                        start_input_str_len = axutil_strlen(start_input_str);
1498
 
                        sprintf(end_input_str, "</%s%suserId>",
1499
 
                                 p_prefix?p_prefix:"",
1500
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1501
 
                        end_input_str_len = axutil_strlen(end_input_str);
1502
 
 
1503
 
                           text_value_2 = _getLogsResponseType->property_userId;
1504
 
 
1505
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1506
 
 
1507
 
 
1508
 
                           text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
1509
 
                           if (text_value_2_temp)
1510
 
                           {
1511
 
                               axutil_stream_write(stream, env, text_value_2_temp, axutil_strlen(text_value_2_temp));
1512
 
                               AXIS2_FREE(env->allocator, text_value_2_temp);
1513
 
                           }
1514
 
                           else
1515
 
                           {
1516
 
                               axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
1517
 
                           }
1518
 
 
1519
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1520
 
 
1521
 
 
1522
 
                     AXIS2_FREE(env->allocator,start_input_str);
1523
 
                     AXIS2_FREE(env->allocator,end_input_str);
1524
 
                 }
1525
 
 
1526
 
 
1527
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1528
 
                       {
1529
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1530
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1531
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1532
 
 
1533
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1534
 
                                            "http://eucalyptus.ucsb.edu/",
1535
 
                                            p_prefix));
1536
 
                       }
1537
 
 
1538
 
 
1539
 
                   if (!_getLogsResponseType->is_valid_statusMessage)
1540
 
                   {
1541
 
 
1542
 
                           /* no need to complain for minoccurs=0 element */
1543
 
 
1544
 
 
1545
 
                   }
1546
 
                   else
1547
 
                   {
1548
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1549
 
                                 (4 + axutil_strlen(p_prefix) +
1550
 
                                  axutil_strlen("statusMessage")));
1551
 
 
1552
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1553
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1554
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
1555
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1556
 
 
1557
 
 
1558
 
 
1559
 
 
1560
 
 
1561
 
 
1562
 
                     /*
1563
 
                      * parsing statusMessage element
1564
 
                      */
1565
 
 
1566
 
 
1567
 
 
1568
 
                            sprintf(start_input_str, "<%s%sstatusMessage>",
1569
 
                                 p_prefix?p_prefix:"",
1570
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1571
 
 
1572
 
                        start_input_str_len = axutil_strlen(start_input_str);
1573
 
                        sprintf(end_input_str, "</%s%sstatusMessage>",
1574
 
                                 p_prefix?p_prefix:"",
1575
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1576
 
                        end_input_str_len = axutil_strlen(end_input_str);
1577
 
 
1578
 
                           text_value_3 = _getLogsResponseType->property_statusMessage;
1579
 
 
1580
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1581
 
 
1582
 
 
1583
 
                           text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
1584
 
                           if (text_value_3_temp)
1585
 
                           {
1586
 
                               axutil_stream_write(stream, env, text_value_3_temp, axutil_strlen(text_value_3_temp));
1587
 
                               AXIS2_FREE(env->allocator, text_value_3_temp);
1588
 
                           }
1589
 
                           else
1590
 
                           {
1591
 
                               axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1592
 
                           }
1593
 
 
1594
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1595
 
 
1596
 
 
1597
 
                     AXIS2_FREE(env->allocator,start_input_str);
1598
 
                     AXIS2_FREE(env->allocator,end_input_str);
1599
 
                 }
1600
 
 
1601
 
 
1602
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1603
 
                       {
1604
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1605
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1606
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1607
 
 
1608
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1609
 
                                            "http://eucalyptus.ucsb.edu/",
1610
 
                                            p_prefix));
1611
 
                       }
1612
 
 
1613
 
 
1614
 
                   if (!_getLogsResponseType->is_valid_return)
1615
 
                   {
1616
 
 
1617
 
                           /* no need to complain for minoccurs=0 element */
1618
 
 
1619
 
 
1620
 
                   }
1621
 
                   else
1622
 
                   {
1623
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1624
 
                                 (4 + axutil_strlen(p_prefix) +
1625
 
                                  axutil_strlen("return")));
1626
 
 
1627
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1628
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1629
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1630
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1631
 
 
1632
 
 
1633
 
 
1634
 
 
1635
 
 
1636
 
 
1637
 
                     /*
1638
 
                      * parsing return element
1639
 
                      */
1640
 
 
1641
 
 
1642
 
 
1643
 
                            sprintf(start_input_str, "<%s%sreturn>",
1644
 
                                 p_prefix?p_prefix:"",
1645
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1646
 
 
1647
 
                        start_input_str_len = axutil_strlen(start_input_str);
1648
 
                        sprintf(end_input_str, "</%s%sreturn>",
1649
 
                                 p_prefix?p_prefix:"",
1650
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1651
 
                        end_input_str_len = axutil_strlen(end_input_str);
1652
 
 
1653
 
                           strcpy(text_value_4, (_getLogsResponseType->property_return)?"true":"false");
1654
 
 
1655
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1656
 
 
1657
 
                           axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1658
 
 
1659
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1660
 
 
1661
 
 
1662
 
                     AXIS2_FREE(env->allocator,start_input_str);
1663
 
                     AXIS2_FREE(env->allocator,end_input_str);
1664
 
                 }
1665
 
 
1666
 
 
1667
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1668
 
                       {
1669
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1670
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1671
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1672
 
 
1673
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1674
 
                                            "http://eucalyptus.ucsb.edu/",
1675
 
                                            p_prefix));
1676
 
                       }
1677
 
 
1678
 
 
1679
 
                   if (!_getLogsResponseType->is_valid_serviceTag)
1680
 
                   {
1681
 
 
1682
 
                           /* no need to complain for minoccurs=0 element */
1683
 
 
1684
 
 
1685
 
                   }
1686
 
                   else
1687
 
                   {
1688
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1689
 
                                 (4 + axutil_strlen(p_prefix) +
1690
 
                                  axutil_strlen("serviceTag")));
1691
 
 
1692
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1693
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1694
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag")));
1695
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1696
 
 
1697
 
 
1698
 
 
1699
 
 
1700
 
 
1701
 
 
1702
 
                     /*
1703
 
                      * parsing serviceTag element
1704
 
                      */
1705
 
 
1706
 
 
1707
 
 
1708
 
                            sprintf(start_input_str, "<%s%sserviceTag>",
1709
 
                                 p_prefix?p_prefix:"",
1710
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1711
 
 
1712
 
                        start_input_str_len = axutil_strlen(start_input_str);
1713
 
                        sprintf(end_input_str, "</%s%sserviceTag>",
1714
 
                                 p_prefix?p_prefix:"",
1715
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1716
 
                        end_input_str_len = axutil_strlen(end_input_str);
1717
 
 
1718
 
                           text_value_5 = _getLogsResponseType->property_serviceTag;
1719
 
 
1720
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1721
 
 
1722
 
 
1723
 
                           text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1724
 
                           if (text_value_5_temp)
1725
 
                           {
1726
 
                               axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
1727
 
                               AXIS2_FREE(env->allocator, text_value_5_temp);
1728
 
                           }
1729
 
                           else
1730
 
                           {
1731
 
                               axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1732
 
                           }
1733
 
 
1734
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1735
 
 
1736
 
 
1737
 
                     AXIS2_FREE(env->allocator,start_input_str);
1738
 
                     AXIS2_FREE(env->allocator,end_input_str);
1739
 
                 }
1740
 
 
1741
 
 
1742
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1743
 
                       {
1744
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1745
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1746
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1747
 
 
1748
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1749
 
                                            "http://eucalyptus.ucsb.edu/",
1750
 
                                            p_prefix));
1751
 
                       }
1752
 
 
1753
 
 
1754
 
                   if (!_getLogsResponseType->is_valid_CCLog)
1755
 
                   {
1756
 
 
1757
 
                           /* no need to complain for minoccurs=0 element */
1758
 
 
1759
 
 
1760
 
                   }
1761
 
                   else
1762
 
                   {
1763
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1764
 
                                 (4 + axutil_strlen(p_prefix) +
1765
 
                                  axutil_strlen("CCLog")));
1766
 
 
1767
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1768
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1769
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("CCLog")));
1770
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
                     /*
1778
 
                      * parsing CCLog element
1779
 
                      */
1780
 
 
1781
 
 
1782
 
 
1783
 
                            sprintf(start_input_str, "<%s%sCCLog>",
1784
 
                                 p_prefix?p_prefix:"",
1785
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1786
 
 
1787
 
                        start_input_str_len = axutil_strlen(start_input_str);
1788
 
                        sprintf(end_input_str, "</%s%sCCLog>",
1789
 
                                 p_prefix?p_prefix:"",
1790
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1791
 
                        end_input_str_len = axutil_strlen(end_input_str);
1792
 
 
1793
 
                           text_value_6 = _getLogsResponseType->property_CCLog;
1794
 
 
1795
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1796
 
 
1797
 
 
1798
 
                           text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
1799
 
                           if (text_value_6_temp)
1800
 
                           {
1801
 
                               axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
1802
 
                               AXIS2_FREE(env->allocator, text_value_6_temp);
1803
 
                           }
1804
 
                           else
1805
 
                           {
1806
 
                               axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
1807
 
                           }
1808
 
 
1809
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1810
 
 
1811
 
 
1812
 
                     AXIS2_FREE(env->allocator,start_input_str);
1813
 
                     AXIS2_FREE(env->allocator,end_input_str);
1814
 
                 }
1815
 
 
1816
 
 
1817
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1818
 
                       {
1819
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1820
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1821
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1822
 
 
1823
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1824
 
                                            "http://eucalyptus.ucsb.edu/",
1825
 
                                            p_prefix));
1826
 
                       }
1827
 
 
1828
 
 
1829
 
                   if (!_getLogsResponseType->is_valid_NCLog)
1830
 
                   {
1831
 
 
1832
 
                           /* no need to complain for minoccurs=0 element */
1833
 
 
1834
 
 
1835
 
                   }
1836
 
                   else
1837
 
                   {
1838
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1839
 
                                 (4 + axutil_strlen(p_prefix) +
1840
 
                                  axutil_strlen("NCLog")));
1841
 
 
1842
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1843
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1844
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("NCLog")));
1845
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1846
 
 
1847
 
 
1848
 
 
1849
 
 
1850
 
 
1851
 
 
1852
 
                     /*
1853
 
                      * parsing NCLog element
1854
 
                      */
1855
 
 
1856
 
 
1857
 
 
1858
 
                            sprintf(start_input_str, "<%s%sNCLog>",
1859
 
                                 p_prefix?p_prefix:"",
1860
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1861
 
 
1862
 
                        start_input_str_len = axutil_strlen(start_input_str);
1863
 
                        sprintf(end_input_str, "</%s%sNCLog>",
1864
 
                                 p_prefix?p_prefix:"",
1865
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1866
 
                        end_input_str_len = axutil_strlen(end_input_str);
1867
 
 
1868
 
                           text_value_7 = _getLogsResponseType->property_NCLog;
1869
 
 
1870
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1871
 
 
1872
 
 
1873
 
                           text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
1874
 
                           if (text_value_7_temp)
1875
 
                           {
1876
 
                               axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
1877
 
                               AXIS2_FREE(env->allocator, text_value_7_temp);
1878
 
                           }
1879
 
                           else
1880
 
                           {
1881
 
                               axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
1882
 
                           }
1883
 
 
1884
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1885
 
 
1886
 
 
1887
 
                     AXIS2_FREE(env->allocator,start_input_str);
1888
 
                     AXIS2_FREE(env->allocator,end_input_str);
1889
 
                 }
1890
 
 
1891
 
 
1892
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1893
 
                       {
1894
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1895
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1896
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1897
 
 
1898
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1899
 
                                            "http://eucalyptus.ucsb.edu/",
1900
 
                                            p_prefix));
1901
 
                       }
1902
 
 
1903
 
 
1904
 
                   if (!_getLogsResponseType->is_valid_httpdLog)
1905
 
                   {
1906
 
 
1907
 
                           /* no need to complain for minoccurs=0 element */
1908
 
 
1909
 
 
1910
 
                   }
1911
 
                   else
1912
 
                   {
1913
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1914
 
                                 (4 + axutil_strlen(p_prefix) +
1915
 
                                  axutil_strlen("httpdLog")));
1916
 
 
1917
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1918
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1919
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("httpdLog")));
1920
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
                     /*
1928
 
                      * parsing httpdLog element
1929
 
                      */
1930
 
 
1931
 
 
1932
 
 
1933
 
                            sprintf(start_input_str, "<%s%shttpdLog>",
1934
 
                                 p_prefix?p_prefix:"",
1935
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1936
 
 
1937
 
                        start_input_str_len = axutil_strlen(start_input_str);
1938
 
                        sprintf(end_input_str, "</%s%shttpdLog>",
1939
 
                                 p_prefix?p_prefix:"",
1940
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1941
 
                        end_input_str_len = axutil_strlen(end_input_str);
1942
 
 
1943
 
                           text_value_8 = _getLogsResponseType->property_httpdLog;
1944
 
 
1945
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1946
 
 
1947
 
 
1948
 
                           text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
1949
 
                           if (text_value_8_temp)
1950
 
                           {
1951
 
                               axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
1952
 
                               AXIS2_FREE(env->allocator, text_value_8_temp);
1953
 
                           }
1954
 
                           else
1955
 
                           {
1956
 
                               axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
1957
 
                           }
1958
 
 
1959
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1960
 
 
1961
 
 
1962
 
                     AXIS2_FREE(env->allocator,start_input_str);
1963
 
                     AXIS2_FREE(env->allocator,end_input_str);
1964
 
                 }
1965
 
 
1966
 
 
1967
 
                       if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1968
 
                       {
1969
 
                           p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1970
 
                           sprintf(p_prefix, "n%d", (*next_ns_index)++);
1971
 
                           axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1972
 
 
1973
 
                           axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1974
 
                                            "http://eucalyptus.ucsb.edu/",
1975
 
                                            p_prefix));
1976
 
                       }
1977
 
 
1978
 
 
1979
 
                   if (!_getLogsResponseType->is_valid_axis2Log)
1980
 
                   {
1981
 
 
1982
 
                           /* no need to complain for minoccurs=0 element */
1983
 
 
1984
 
 
1985
 
                   }
1986
 
                   else
1987
 
                   {
1988
 
                     start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1989
 
                                 (4 + axutil_strlen(p_prefix) +
1990
 
                                  axutil_strlen("axis2Log")));
1991
 
 
1992
 
                                 /* axutil_strlen("<:>") + 1 = 4 */
1993
 
                     end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1994
 
                                 (5 + axutil_strlen(p_prefix) + axutil_strlen("axis2Log")));
1995
 
                                  /* axutil_strlen("</:>") + 1 = 5 */
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
                     /*
2003
 
                      * parsing axis2Log element
2004
 
                      */
2005
 
 
2006
 
 
2007
 
 
2008
 
                            sprintf(start_input_str, "<%s%saxis2Log>",
2009
 
                                 p_prefix?p_prefix:"",
2010
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2011
 
 
2012
 
                        start_input_str_len = axutil_strlen(start_input_str);
2013
 
                        sprintf(end_input_str, "</%s%saxis2Log>",
2014
 
                                 p_prefix?p_prefix:"",
2015
 
                                 (p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2016
 
                        end_input_str_len = axutil_strlen(end_input_str);
2017
 
 
2018
 
                           text_value_9 = _getLogsResponseType->property_axis2Log;
2019
 
 
2020
 
                           axutil_stream_write(stream, env, start_input_str, start_input_str_len);
2021
 
 
2022
 
 
2023
 
                           text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
2024
 
                           if (text_value_9_temp)
2025
 
                           {
2026
 
                               axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
2027
 
                               AXIS2_FREE(env->allocator, text_value_9_temp);
2028
 
                           }
2029
 
                           else
2030
 
                           {
2031
 
                               axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
2032
 
                           }
2033
 
 
2034
 
                           axutil_stream_write(stream, env, end_input_str, end_input_str_len);
2035
 
 
2036
 
 
2037
 
                     AXIS2_FREE(env->allocator,start_input_str);
2038
 
                     AXIS2_FREE(env->allocator,end_input_str);
2039
 
                 }
2040
 
 
2041
 
 
2042
 
 
2043
 
            return parent;
2044
 
        }
2045
 
 
2046
 
 
2047
 
 
2048
 
 
2049
 
            /**
2050
 
             * getter for correlationId.
2051
 
             */
2052
 
            axis2_char_t* AXIS2_CALL
2053
 
            adb_getLogsResponseType_get_correlationId(
2054
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2055
 
                    const axutil_env_t *env)
2056
 
             {
2057
 
 
2058
 
                    AXIS2_ENV_CHECK(env, NULL);
2059
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2060
 
 
2061
 
 
2062
 
                return _getLogsResponseType->property_correlationId;
2063
 
             }
2064
 
 
2065
 
            /**
2066
 
             * setter for correlationId
2067
 
             */
2068
 
            axis2_status_t AXIS2_CALL
2069
 
            adb_getLogsResponseType_set_correlationId(
2070
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2071
 
                    const axutil_env_t *env,
2072
 
                    const axis2_char_t*  arg_correlationId)
2073
 
             {
2074
 
 
2075
 
 
2076
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2077
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2078
 
 
2079
 
                if(_getLogsResponseType->is_valid_correlationId &&
2080
 
                        arg_correlationId == _getLogsResponseType->property_correlationId)
2081
 
                {
2082
 
 
2083
 
                    return AXIS2_SUCCESS;
2084
 
                }
2085
 
 
2086
 
                adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env);
2087
 
 
2088
 
 
2089
 
                if(NULL == arg_correlationId)
2090
 
                {
2091
 
                    /* We are already done */
2092
 
                    return AXIS2_SUCCESS;
2093
 
                }
2094
 
                _getLogsResponseType->property_correlationId = (axis2_char_t *)axutil_strdup(env, arg_correlationId);
2095
 
                        if(NULL == _getLogsResponseType->property_correlationId)
2096
 
                        {
2097
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for correlationId");
2098
 
                            return AXIS2_FAILURE;
2099
 
                        }
2100
 
                        _getLogsResponseType->is_valid_correlationId = AXIS2_TRUE;
2101
 
 
2102
 
                return AXIS2_SUCCESS;
2103
 
             }
2104
 
 
2105
 
 
2106
 
 
2107
 
           /**
2108
 
            * resetter for correlationId
2109
 
            */
2110
 
           axis2_status_t AXIS2_CALL
2111
 
           adb_getLogsResponseType_reset_correlationId(
2112
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2113
 
                   const axutil_env_t *env)
2114
 
           {
2115
 
               int i = 0;
2116
 
               int count = 0;
2117
 
               void *element = NULL;
2118
 
 
2119
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2120
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2121
 
 
2122
 
 
2123
 
 
2124
 
 
2125
 
 
2126
 
                if(_getLogsResponseType->property_correlationId != NULL)
2127
 
                {
2128
 
 
2129
 
 
2130
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_correlationId);
2131
 
                     _getLogsResponseType->property_correlationId = NULL;
2132
 
                }
2133
 
 
2134
 
 
2135
 
 
2136
 
                _getLogsResponseType->is_valid_correlationId = AXIS2_FALSE;
2137
 
               return AXIS2_SUCCESS;
2138
 
           }
2139
 
 
2140
 
           /**
2141
 
            * Check whether correlationId is nill
2142
 
            */
2143
 
           axis2_bool_t AXIS2_CALL
2144
 
           adb_getLogsResponseType_is_correlationId_nil(
2145
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2146
 
                   const axutil_env_t *env)
2147
 
           {
2148
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2149
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2150
 
 
2151
 
               return !_getLogsResponseType->is_valid_correlationId;
2152
 
           }
2153
 
 
2154
 
           /**
2155
 
            * Set correlationId to nill (currently the same as reset)
2156
 
            */
2157
 
           axis2_status_t AXIS2_CALL
2158
 
           adb_getLogsResponseType_set_correlationId_nil(
2159
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2160
 
                   const axutil_env_t *env)
2161
 
           {
2162
 
               return adb_getLogsResponseType_reset_correlationId(_getLogsResponseType, env);
2163
 
           }
2164
 
 
2165
 
 
2166
 
 
2167
 
            /**
2168
 
             * getter for userId.
2169
 
             */
2170
 
            axis2_char_t* AXIS2_CALL
2171
 
            adb_getLogsResponseType_get_userId(
2172
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2173
 
                    const axutil_env_t *env)
2174
 
             {
2175
 
 
2176
 
                    AXIS2_ENV_CHECK(env, NULL);
2177
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2178
 
 
2179
 
 
2180
 
                return _getLogsResponseType->property_userId;
2181
 
             }
2182
 
 
2183
 
            /**
2184
 
             * setter for userId
2185
 
             */
2186
 
            axis2_status_t AXIS2_CALL
2187
 
            adb_getLogsResponseType_set_userId(
2188
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2189
 
                    const axutil_env_t *env,
2190
 
                    const axis2_char_t*  arg_userId)
2191
 
             {
2192
 
 
2193
 
 
2194
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2195
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2196
 
 
2197
 
                if(_getLogsResponseType->is_valid_userId &&
2198
 
                        arg_userId == _getLogsResponseType->property_userId)
2199
 
                {
2200
 
 
2201
 
                    return AXIS2_SUCCESS;
2202
 
                }
2203
 
 
2204
 
                adb_getLogsResponseType_reset_userId(_getLogsResponseType, env);
2205
 
 
2206
 
 
2207
 
                if(NULL == arg_userId)
2208
 
                {
2209
 
                    /* We are already done */
2210
 
                    return AXIS2_SUCCESS;
2211
 
                }
2212
 
                _getLogsResponseType->property_userId = (axis2_char_t *)axutil_strdup(env, arg_userId);
2213
 
                        if(NULL == _getLogsResponseType->property_userId)
2214
 
                        {
2215
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for userId");
2216
 
                            return AXIS2_FAILURE;
2217
 
                        }
2218
 
                        _getLogsResponseType->is_valid_userId = AXIS2_TRUE;
2219
 
 
2220
 
                return AXIS2_SUCCESS;
2221
 
             }
2222
 
 
2223
 
 
2224
 
 
2225
 
           /**
2226
 
            * resetter for userId
2227
 
            */
2228
 
           axis2_status_t AXIS2_CALL
2229
 
           adb_getLogsResponseType_reset_userId(
2230
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2231
 
                   const axutil_env_t *env)
2232
 
           {
2233
 
               int i = 0;
2234
 
               int count = 0;
2235
 
               void *element = NULL;
2236
 
 
2237
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2238
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2239
 
 
2240
 
 
2241
 
 
2242
 
 
2243
 
 
2244
 
                if(_getLogsResponseType->property_userId != NULL)
2245
 
                {
2246
 
 
2247
 
 
2248
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_userId);
2249
 
                     _getLogsResponseType->property_userId = NULL;
2250
 
                }
2251
 
 
2252
 
 
2253
 
 
2254
 
                _getLogsResponseType->is_valid_userId = AXIS2_FALSE;
2255
 
               return AXIS2_SUCCESS;
2256
 
           }
2257
 
 
2258
 
           /**
2259
 
            * Check whether userId is nill
2260
 
            */
2261
 
           axis2_bool_t AXIS2_CALL
2262
 
           adb_getLogsResponseType_is_userId_nil(
2263
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2264
 
                   const axutil_env_t *env)
2265
 
           {
2266
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2267
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2268
 
 
2269
 
               return !_getLogsResponseType->is_valid_userId;
2270
 
           }
2271
 
 
2272
 
           /**
2273
 
            * Set userId to nill (currently the same as reset)
2274
 
            */
2275
 
           axis2_status_t AXIS2_CALL
2276
 
           adb_getLogsResponseType_set_userId_nil(
2277
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2278
 
                   const axutil_env_t *env)
2279
 
           {
2280
 
               return adb_getLogsResponseType_reset_userId(_getLogsResponseType, env);
2281
 
           }
2282
 
 
2283
 
 
2284
 
 
2285
 
            /**
2286
 
             * getter for statusMessage.
2287
 
             */
2288
 
            axis2_char_t* AXIS2_CALL
2289
 
            adb_getLogsResponseType_get_statusMessage(
2290
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2291
 
                    const axutil_env_t *env)
2292
 
             {
2293
 
 
2294
 
                    AXIS2_ENV_CHECK(env, NULL);
2295
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2296
 
 
2297
 
 
2298
 
                return _getLogsResponseType->property_statusMessage;
2299
 
             }
2300
 
 
2301
 
            /**
2302
 
             * setter for statusMessage
2303
 
             */
2304
 
            axis2_status_t AXIS2_CALL
2305
 
            adb_getLogsResponseType_set_statusMessage(
2306
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2307
 
                    const axutil_env_t *env,
2308
 
                    const axis2_char_t*  arg_statusMessage)
2309
 
             {
2310
 
 
2311
 
 
2312
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2313
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2314
 
 
2315
 
                if(_getLogsResponseType->is_valid_statusMessage &&
2316
 
                        arg_statusMessage == _getLogsResponseType->property_statusMessage)
2317
 
                {
2318
 
 
2319
 
                    return AXIS2_SUCCESS;
2320
 
                }
2321
 
 
2322
 
                adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env);
2323
 
 
2324
 
 
2325
 
                if(NULL == arg_statusMessage)
2326
 
                {
2327
 
                    /* We are already done */
2328
 
                    return AXIS2_SUCCESS;
2329
 
                }
2330
 
                _getLogsResponseType->property_statusMessage = (axis2_char_t *)axutil_strdup(env, arg_statusMessage);
2331
 
                        if(NULL == _getLogsResponseType->property_statusMessage)
2332
 
                        {
2333
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for statusMessage");
2334
 
                            return AXIS2_FAILURE;
2335
 
                        }
2336
 
                        _getLogsResponseType->is_valid_statusMessage = AXIS2_TRUE;
2337
 
 
2338
 
                return AXIS2_SUCCESS;
2339
 
             }
2340
 
 
2341
 
 
2342
 
 
2343
 
           /**
2344
 
            * resetter for statusMessage
2345
 
            */
2346
 
           axis2_status_t AXIS2_CALL
2347
 
           adb_getLogsResponseType_reset_statusMessage(
2348
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2349
 
                   const axutil_env_t *env)
2350
 
           {
2351
 
               int i = 0;
2352
 
               int count = 0;
2353
 
               void *element = NULL;
2354
 
 
2355
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2356
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2357
 
 
2358
 
 
2359
 
 
2360
 
 
2361
 
 
2362
 
                if(_getLogsResponseType->property_statusMessage != NULL)
2363
 
                {
2364
 
 
2365
 
 
2366
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_statusMessage);
2367
 
                     _getLogsResponseType->property_statusMessage = NULL;
2368
 
                }
2369
 
 
2370
 
 
2371
 
 
2372
 
                _getLogsResponseType->is_valid_statusMessage = AXIS2_FALSE;
2373
 
               return AXIS2_SUCCESS;
2374
 
           }
2375
 
 
2376
 
           /**
2377
 
            * Check whether statusMessage is nill
2378
 
            */
2379
 
           axis2_bool_t AXIS2_CALL
2380
 
           adb_getLogsResponseType_is_statusMessage_nil(
2381
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2382
 
                   const axutil_env_t *env)
2383
 
           {
2384
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2385
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2386
 
 
2387
 
               return !_getLogsResponseType->is_valid_statusMessage;
2388
 
           }
2389
 
 
2390
 
           /**
2391
 
            * Set statusMessage to nill (currently the same as reset)
2392
 
            */
2393
 
           axis2_status_t AXIS2_CALL
2394
 
           adb_getLogsResponseType_set_statusMessage_nil(
2395
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2396
 
                   const axutil_env_t *env)
2397
 
           {
2398
 
               return adb_getLogsResponseType_reset_statusMessage(_getLogsResponseType, env);
2399
 
           }
2400
 
 
2401
 
 
2402
 
 
2403
 
            /**
2404
 
             * getter for return.
2405
 
             */
2406
 
            axis2_bool_t AXIS2_CALL
2407
 
            adb_getLogsResponseType_get_return(
2408
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2409
 
                    const axutil_env_t *env)
2410
 
             {
2411
 
 
2412
 
                    AXIS2_ENV_CHECK(env, (axis2_bool_t)0);
2413
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, (axis2_bool_t)0);
2414
 
 
2415
 
 
2416
 
                return _getLogsResponseType->property_return;
2417
 
             }
2418
 
 
2419
 
            /**
2420
 
             * setter for return
2421
 
             */
2422
 
            axis2_status_t AXIS2_CALL
2423
 
            adb_getLogsResponseType_set_return(
2424
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2425
 
                    const axutil_env_t *env,
2426
 
                    axis2_bool_t  arg_return)
2427
 
             {
2428
 
 
2429
 
 
2430
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2431
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2432
 
 
2433
 
                if(_getLogsResponseType->is_valid_return &&
2434
 
                        arg_return == _getLogsResponseType->property_return)
2435
 
                {
2436
 
 
2437
 
                    return AXIS2_SUCCESS;
2438
 
                }
2439
 
 
2440
 
                adb_getLogsResponseType_reset_return(_getLogsResponseType, env);
2441
 
 
2442
 
                _getLogsResponseType->property_return = arg_return;
2443
 
                        _getLogsResponseType->is_valid_return = AXIS2_TRUE;
2444
 
 
2445
 
                return AXIS2_SUCCESS;
2446
 
             }
2447
 
 
2448
 
 
2449
 
 
2450
 
           /**
2451
 
            * resetter for return
2452
 
            */
2453
 
           axis2_status_t AXIS2_CALL
2454
 
           adb_getLogsResponseType_reset_return(
2455
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2456
 
                   const axutil_env_t *env)
2457
 
           {
2458
 
               int i = 0;
2459
 
               int count = 0;
2460
 
               void *element = NULL;
2461
 
 
2462
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2463
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2464
 
 
2465
 
 
2466
 
               _getLogsResponseType->is_valid_return = AXIS2_FALSE;
2467
 
               return AXIS2_SUCCESS;
2468
 
           }
2469
 
 
2470
 
           /**
2471
 
            * Check whether return is nill
2472
 
            */
2473
 
           axis2_bool_t AXIS2_CALL
2474
 
           adb_getLogsResponseType_is_return_nil(
2475
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2476
 
                   const axutil_env_t *env)
2477
 
           {
2478
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2479
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2480
 
 
2481
 
               return !_getLogsResponseType->is_valid_return;
2482
 
           }
2483
 
 
2484
 
           /**
2485
 
            * Set return to nill (currently the same as reset)
2486
 
            */
2487
 
           axis2_status_t AXIS2_CALL
2488
 
           adb_getLogsResponseType_set_return_nil(
2489
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2490
 
                   const axutil_env_t *env)
2491
 
           {
2492
 
               return adb_getLogsResponseType_reset_return(_getLogsResponseType, env);
2493
 
           }
2494
 
 
2495
 
 
2496
 
 
2497
 
            /**
2498
 
             * getter for serviceTag.
2499
 
             */
2500
 
            axis2_char_t* AXIS2_CALL
2501
 
            adb_getLogsResponseType_get_serviceTag(
2502
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2503
 
                    const axutil_env_t *env)
2504
 
             {
2505
 
 
2506
 
                    AXIS2_ENV_CHECK(env, NULL);
2507
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2508
 
 
2509
 
 
2510
 
                return _getLogsResponseType->property_serviceTag;
2511
 
             }
2512
 
 
2513
 
            /**
2514
 
             * setter for serviceTag
2515
 
             */
2516
 
            axis2_status_t AXIS2_CALL
2517
 
            adb_getLogsResponseType_set_serviceTag(
2518
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2519
 
                    const axutil_env_t *env,
2520
 
                    const axis2_char_t*  arg_serviceTag)
2521
 
             {
2522
 
 
2523
 
 
2524
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2525
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2526
 
 
2527
 
                if(_getLogsResponseType->is_valid_serviceTag &&
2528
 
                        arg_serviceTag == _getLogsResponseType->property_serviceTag)
2529
 
                {
2530
 
 
2531
 
                    return AXIS2_SUCCESS;
2532
 
                }
2533
 
 
2534
 
                adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env);
2535
 
 
2536
 
 
2537
 
                if(NULL == arg_serviceTag)
2538
 
                {
2539
 
                    /* We are already done */
2540
 
                    return AXIS2_SUCCESS;
2541
 
                }
2542
 
                _getLogsResponseType->property_serviceTag = (axis2_char_t *)axutil_strdup(env, arg_serviceTag);
2543
 
                        if(NULL == _getLogsResponseType->property_serviceTag)
2544
 
                        {
2545
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for serviceTag");
2546
 
                            return AXIS2_FAILURE;
2547
 
                        }
2548
 
                        _getLogsResponseType->is_valid_serviceTag = AXIS2_TRUE;
2549
 
 
2550
 
                return AXIS2_SUCCESS;
2551
 
             }
2552
 
 
2553
 
 
2554
 
 
2555
 
           /**
2556
 
            * resetter for serviceTag
2557
 
            */
2558
 
           axis2_status_t AXIS2_CALL
2559
 
           adb_getLogsResponseType_reset_serviceTag(
2560
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2561
 
                   const axutil_env_t *env)
2562
 
           {
2563
 
               int i = 0;
2564
 
               int count = 0;
2565
 
               void *element = NULL;
2566
 
 
2567
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2568
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2569
 
 
2570
 
 
2571
 
 
2572
 
 
2573
 
 
2574
 
                if(_getLogsResponseType->property_serviceTag != NULL)
2575
 
                {
2576
 
 
2577
 
 
2578
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_serviceTag);
2579
 
                     _getLogsResponseType->property_serviceTag = NULL;
2580
 
                }
2581
 
 
2582
 
 
2583
 
 
2584
 
                _getLogsResponseType->is_valid_serviceTag = AXIS2_FALSE;
2585
 
               return AXIS2_SUCCESS;
2586
 
           }
2587
 
 
2588
 
           /**
2589
 
            * Check whether serviceTag is nill
2590
 
            */
2591
 
           axis2_bool_t AXIS2_CALL
2592
 
           adb_getLogsResponseType_is_serviceTag_nil(
2593
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2594
 
                   const axutil_env_t *env)
2595
 
           {
2596
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2597
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2598
 
 
2599
 
               return !_getLogsResponseType->is_valid_serviceTag;
2600
 
           }
2601
 
 
2602
 
           /**
2603
 
            * Set serviceTag to nill (currently the same as reset)
2604
 
            */
2605
 
           axis2_status_t AXIS2_CALL
2606
 
           adb_getLogsResponseType_set_serviceTag_nil(
2607
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2608
 
                   const axutil_env_t *env)
2609
 
           {
2610
 
               return adb_getLogsResponseType_reset_serviceTag(_getLogsResponseType, env);
2611
 
           }
2612
 
 
2613
 
 
2614
 
 
2615
 
            /**
2616
 
             * getter for CCLog.
2617
 
             */
2618
 
            axis2_char_t* AXIS2_CALL
2619
 
            adb_getLogsResponseType_get_CCLog(
2620
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2621
 
                    const axutil_env_t *env)
2622
 
             {
2623
 
 
2624
 
                    AXIS2_ENV_CHECK(env, NULL);
2625
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2626
 
 
2627
 
 
2628
 
                return _getLogsResponseType->property_CCLog;
2629
 
             }
2630
 
 
2631
 
            /**
2632
 
             * setter for CCLog
2633
 
             */
2634
 
            axis2_status_t AXIS2_CALL
2635
 
            adb_getLogsResponseType_set_CCLog(
2636
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2637
 
                    const axutil_env_t *env,
2638
 
                    const axis2_char_t*  arg_CCLog)
2639
 
             {
2640
 
 
2641
 
 
2642
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2643
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2644
 
 
2645
 
                if(_getLogsResponseType->is_valid_CCLog &&
2646
 
                        arg_CCLog == _getLogsResponseType->property_CCLog)
2647
 
                {
2648
 
 
2649
 
                    return AXIS2_SUCCESS;
2650
 
                }
2651
 
 
2652
 
                adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env);
2653
 
 
2654
 
 
2655
 
                if(NULL == arg_CCLog)
2656
 
                {
2657
 
                    /* We are already done */
2658
 
                    return AXIS2_SUCCESS;
2659
 
                }
2660
 
                _getLogsResponseType->property_CCLog = (axis2_char_t *)axutil_strdup(env, arg_CCLog);
2661
 
                        if(NULL == _getLogsResponseType->property_CCLog)
2662
 
                        {
2663
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for CCLog");
2664
 
                            return AXIS2_FAILURE;
2665
 
                        }
2666
 
                        _getLogsResponseType->is_valid_CCLog = AXIS2_TRUE;
2667
 
 
2668
 
                return AXIS2_SUCCESS;
2669
 
             }
2670
 
 
2671
 
 
2672
 
 
2673
 
           /**
2674
 
            * resetter for CCLog
2675
 
            */
2676
 
           axis2_status_t AXIS2_CALL
2677
 
           adb_getLogsResponseType_reset_CCLog(
2678
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2679
 
                   const axutil_env_t *env)
2680
 
           {
2681
 
               int i = 0;
2682
 
               int count = 0;
2683
 
               void *element = NULL;
2684
 
 
2685
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2686
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2687
 
 
2688
 
 
2689
 
 
2690
 
 
2691
 
 
2692
 
                if(_getLogsResponseType->property_CCLog != NULL)
2693
 
                {
2694
 
 
2695
 
 
2696
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_CCLog);
2697
 
                     _getLogsResponseType->property_CCLog = NULL;
2698
 
                }
2699
 
 
2700
 
 
2701
 
 
2702
 
                _getLogsResponseType->is_valid_CCLog = AXIS2_FALSE;
2703
 
               return AXIS2_SUCCESS;
2704
 
           }
2705
 
 
2706
 
           /**
2707
 
            * Check whether CCLog is nill
2708
 
            */
2709
 
           axis2_bool_t AXIS2_CALL
2710
 
           adb_getLogsResponseType_is_CCLog_nil(
2711
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2712
 
                   const axutil_env_t *env)
2713
 
           {
2714
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2715
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2716
 
 
2717
 
               return !_getLogsResponseType->is_valid_CCLog;
2718
 
           }
2719
 
 
2720
 
           /**
2721
 
            * Set CCLog to nill (currently the same as reset)
2722
 
            */
2723
 
           axis2_status_t AXIS2_CALL
2724
 
           adb_getLogsResponseType_set_CCLog_nil(
2725
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2726
 
                   const axutil_env_t *env)
2727
 
           {
2728
 
               return adb_getLogsResponseType_reset_CCLog(_getLogsResponseType, env);
2729
 
           }
2730
 
 
2731
 
 
2732
 
 
2733
 
            /**
2734
 
             * getter for NCLog.
2735
 
             */
2736
 
            axis2_char_t* AXIS2_CALL
2737
 
            adb_getLogsResponseType_get_NCLog(
2738
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2739
 
                    const axutil_env_t *env)
2740
 
             {
2741
 
 
2742
 
                    AXIS2_ENV_CHECK(env, NULL);
2743
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2744
 
 
2745
 
 
2746
 
                return _getLogsResponseType->property_NCLog;
2747
 
             }
2748
 
 
2749
 
            /**
2750
 
             * setter for NCLog
2751
 
             */
2752
 
            axis2_status_t AXIS2_CALL
2753
 
            adb_getLogsResponseType_set_NCLog(
2754
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2755
 
                    const axutil_env_t *env,
2756
 
                    const axis2_char_t*  arg_NCLog)
2757
 
             {
2758
 
 
2759
 
 
2760
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2761
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2762
 
 
2763
 
                if(_getLogsResponseType->is_valid_NCLog &&
2764
 
                        arg_NCLog == _getLogsResponseType->property_NCLog)
2765
 
                {
2766
 
 
2767
 
                    return AXIS2_SUCCESS;
2768
 
                }
2769
 
 
2770
 
                adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env);
2771
 
 
2772
 
 
2773
 
                if(NULL == arg_NCLog)
2774
 
                {
2775
 
                    /* We are already done */
2776
 
                    return AXIS2_SUCCESS;
2777
 
                }
2778
 
                _getLogsResponseType->property_NCLog = (axis2_char_t *)axutil_strdup(env, arg_NCLog);
2779
 
                        if(NULL == _getLogsResponseType->property_NCLog)
2780
 
                        {
2781
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for NCLog");
2782
 
                            return AXIS2_FAILURE;
2783
 
                        }
2784
 
                        _getLogsResponseType->is_valid_NCLog = AXIS2_TRUE;
2785
 
 
2786
 
                return AXIS2_SUCCESS;
2787
 
             }
2788
 
 
2789
 
 
2790
 
 
2791
 
           /**
2792
 
            * resetter for NCLog
2793
 
            */
2794
 
           axis2_status_t AXIS2_CALL
2795
 
           adb_getLogsResponseType_reset_NCLog(
2796
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2797
 
                   const axutil_env_t *env)
2798
 
           {
2799
 
               int i = 0;
2800
 
               int count = 0;
2801
 
               void *element = NULL;
2802
 
 
2803
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2804
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2805
 
 
2806
 
 
2807
 
 
2808
 
 
2809
 
 
2810
 
                if(_getLogsResponseType->property_NCLog != NULL)
2811
 
                {
2812
 
 
2813
 
 
2814
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_NCLog);
2815
 
                     _getLogsResponseType->property_NCLog = NULL;
2816
 
                }
2817
 
 
2818
 
 
2819
 
 
2820
 
                _getLogsResponseType->is_valid_NCLog = AXIS2_FALSE;
2821
 
               return AXIS2_SUCCESS;
2822
 
           }
2823
 
 
2824
 
           /**
2825
 
            * Check whether NCLog is nill
2826
 
            */
2827
 
           axis2_bool_t AXIS2_CALL
2828
 
           adb_getLogsResponseType_is_NCLog_nil(
2829
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2830
 
                   const axutil_env_t *env)
2831
 
           {
2832
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2833
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2834
 
 
2835
 
               return !_getLogsResponseType->is_valid_NCLog;
2836
 
           }
2837
 
 
2838
 
           /**
2839
 
            * Set NCLog to nill (currently the same as reset)
2840
 
            */
2841
 
           axis2_status_t AXIS2_CALL
2842
 
           adb_getLogsResponseType_set_NCLog_nil(
2843
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2844
 
                   const axutil_env_t *env)
2845
 
           {
2846
 
               return adb_getLogsResponseType_reset_NCLog(_getLogsResponseType, env);
2847
 
           }
2848
 
 
2849
 
 
2850
 
 
2851
 
            /**
2852
 
             * getter for httpdLog.
2853
 
             */
2854
 
            axis2_char_t* AXIS2_CALL
2855
 
            adb_getLogsResponseType_get_httpdLog(
2856
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2857
 
                    const axutil_env_t *env)
2858
 
             {
2859
 
 
2860
 
                    AXIS2_ENV_CHECK(env, NULL);
2861
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2862
 
 
2863
 
 
2864
 
                return _getLogsResponseType->property_httpdLog;
2865
 
             }
2866
 
 
2867
 
            /**
2868
 
             * setter for httpdLog
2869
 
             */
2870
 
            axis2_status_t AXIS2_CALL
2871
 
            adb_getLogsResponseType_set_httpdLog(
2872
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2873
 
                    const axutil_env_t *env,
2874
 
                    const axis2_char_t*  arg_httpdLog)
2875
 
             {
2876
 
 
2877
 
 
2878
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2879
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2880
 
 
2881
 
                if(_getLogsResponseType->is_valid_httpdLog &&
2882
 
                        arg_httpdLog == _getLogsResponseType->property_httpdLog)
2883
 
                {
2884
 
 
2885
 
                    return AXIS2_SUCCESS;
2886
 
                }
2887
 
 
2888
 
                adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env);
2889
 
 
2890
 
 
2891
 
                if(NULL == arg_httpdLog)
2892
 
                {
2893
 
                    /* We are already done */
2894
 
                    return AXIS2_SUCCESS;
2895
 
                }
2896
 
                _getLogsResponseType->property_httpdLog = (axis2_char_t *)axutil_strdup(env, arg_httpdLog);
2897
 
                        if(NULL == _getLogsResponseType->property_httpdLog)
2898
 
                        {
2899
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for httpdLog");
2900
 
                            return AXIS2_FAILURE;
2901
 
                        }
2902
 
                        _getLogsResponseType->is_valid_httpdLog = AXIS2_TRUE;
2903
 
 
2904
 
                return AXIS2_SUCCESS;
2905
 
             }
2906
 
 
2907
 
 
2908
 
 
2909
 
           /**
2910
 
            * resetter for httpdLog
2911
 
            */
2912
 
           axis2_status_t AXIS2_CALL
2913
 
           adb_getLogsResponseType_reset_httpdLog(
2914
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2915
 
                   const axutil_env_t *env)
2916
 
           {
2917
 
               int i = 0;
2918
 
               int count = 0;
2919
 
               void *element = NULL;
2920
 
 
2921
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2922
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2923
 
 
2924
 
 
2925
 
 
2926
 
 
2927
 
 
2928
 
                if(_getLogsResponseType->property_httpdLog != NULL)
2929
 
                {
2930
 
 
2931
 
 
2932
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_httpdLog);
2933
 
                     _getLogsResponseType->property_httpdLog = NULL;
2934
 
                }
2935
 
 
2936
 
 
2937
 
 
2938
 
                _getLogsResponseType->is_valid_httpdLog = AXIS2_FALSE;
2939
 
               return AXIS2_SUCCESS;
2940
 
           }
2941
 
 
2942
 
           /**
2943
 
            * Check whether httpdLog is nill
2944
 
            */
2945
 
           axis2_bool_t AXIS2_CALL
2946
 
           adb_getLogsResponseType_is_httpdLog_nil(
2947
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2948
 
                   const axutil_env_t *env)
2949
 
           {
2950
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
2951
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
2952
 
 
2953
 
               return !_getLogsResponseType->is_valid_httpdLog;
2954
 
           }
2955
 
 
2956
 
           /**
2957
 
            * Set httpdLog to nill (currently the same as reset)
2958
 
            */
2959
 
           axis2_status_t AXIS2_CALL
2960
 
           adb_getLogsResponseType_set_httpdLog_nil(
2961
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
2962
 
                   const axutil_env_t *env)
2963
 
           {
2964
 
               return adb_getLogsResponseType_reset_httpdLog(_getLogsResponseType, env);
2965
 
           }
2966
 
 
2967
 
 
2968
 
 
2969
 
            /**
2970
 
             * getter for axis2Log.
2971
 
             */
2972
 
            axis2_char_t* AXIS2_CALL
2973
 
            adb_getLogsResponseType_get_axis2Log(
2974
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2975
 
                    const axutil_env_t *env)
2976
 
             {
2977
 
 
2978
 
                    AXIS2_ENV_CHECK(env, NULL);
2979
 
                    AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
2980
 
 
2981
 
 
2982
 
                return _getLogsResponseType->property_axis2Log;
2983
 
             }
2984
 
 
2985
 
            /**
2986
 
             * setter for axis2Log
2987
 
             */
2988
 
            axis2_status_t AXIS2_CALL
2989
 
            adb_getLogsResponseType_set_axis2Log(
2990
 
                    adb_getLogsResponseType_t* _getLogsResponseType,
2991
 
                    const axutil_env_t *env,
2992
 
                    const axis2_char_t*  arg_axis2Log)
2993
 
             {
2994
 
 
2995
 
 
2996
 
                AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
2997
 
                AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
2998
 
 
2999
 
                if(_getLogsResponseType->is_valid_axis2Log &&
3000
 
                        arg_axis2Log == _getLogsResponseType->property_axis2Log)
3001
 
                {
3002
 
 
3003
 
                    return AXIS2_SUCCESS;
3004
 
                }
3005
 
 
3006
 
                adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env);
3007
 
 
3008
 
 
3009
 
                if(NULL == arg_axis2Log)
3010
 
                {
3011
 
                    /* We are already done */
3012
 
                    return AXIS2_SUCCESS;
3013
 
                }
3014
 
                _getLogsResponseType->property_axis2Log = (axis2_char_t *)axutil_strdup(env, arg_axis2Log);
3015
 
                        if(NULL == _getLogsResponseType->property_axis2Log)
3016
 
                        {
3017
 
                            AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for axis2Log");
3018
 
                            return AXIS2_FAILURE;
3019
 
                        }
3020
 
                        _getLogsResponseType->is_valid_axis2Log = AXIS2_TRUE;
3021
 
 
3022
 
                return AXIS2_SUCCESS;
3023
 
             }
3024
 
 
3025
 
 
3026
 
 
3027
 
           /**
3028
 
            * resetter for axis2Log
3029
 
            */
3030
 
           axis2_status_t AXIS2_CALL
3031
 
           adb_getLogsResponseType_reset_axis2Log(
3032
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
3033
 
                   const axutil_env_t *env)
3034
 
           {
3035
 
               int i = 0;
3036
 
               int count = 0;
3037
 
               void *element = NULL;
3038
 
 
3039
 
               AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
3040
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
3041
 
 
3042
 
 
3043
 
 
3044
 
 
3045
 
 
3046
 
                if(_getLogsResponseType->property_axis2Log != NULL)
3047
 
                {
3048
 
 
3049
 
 
3050
 
                        AXIS2_FREE(env-> allocator, _getLogsResponseType->property_axis2Log);
3051
 
                     _getLogsResponseType->property_axis2Log = NULL;
3052
 
                }
3053
 
 
3054
 
 
3055
 
 
3056
 
                _getLogsResponseType->is_valid_axis2Log = AXIS2_FALSE;
3057
 
               return AXIS2_SUCCESS;
3058
 
           }
3059
 
 
3060
 
           /**
3061
 
            * Check whether axis2Log is nill
3062
 
            */
3063
 
           axis2_bool_t AXIS2_CALL
3064
 
           adb_getLogsResponseType_is_axis2Log_nil(
3065
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
3066
 
                   const axutil_env_t *env)
3067
 
           {
3068
 
               AXIS2_ENV_CHECK(env, AXIS2_TRUE);
3069
 
               AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_TRUE);
3070
 
 
3071
 
               return !_getLogsResponseType->is_valid_axis2Log;
3072
 
           }
3073
 
 
3074
 
           /**
3075
 
            * Set axis2Log to nill (currently the same as reset)
3076
 
            */
3077
 
           axis2_status_t AXIS2_CALL
3078
 
           adb_getLogsResponseType_set_axis2Log_nil(
3079
 
                   adb_getLogsResponseType_t* _getLogsResponseType,
3080
 
                   const axutil_env_t *env)
3081
 
           {
3082
 
               return adb_getLogsResponseType_reset_axis2Log(_getLogsResponseType, env);
3083
 
           }
3084
 
 
3085
 
 
3086