10
10
#include "adb_getLogsResponseType.h"
13
13
* This type was generated from the piece of schema that had
14
14
* name = getLogsResponseType
15
15
* Namespace URI = http://eucalyptus.ucsb.edu/
16
16
* Namespace Prefix = ns1
21
21
struct adb_getLogsResponseType
23
23
axis2_char_t* property_correlationId;
26
26
axis2_bool_t is_valid_correlationId;
29
29
axis2_char_t* property_userId;
32
32
axis2_bool_t is_valid_userId;
35
35
axis2_char_t* property_statusMessage;
38
38
axis2_bool_t is_valid_statusMessage;
41
41
axis2_bool_t property_return;
44
44
axis2_bool_t is_valid_return;
47
47
axis2_char_t* property_serviceTag;
50
50
axis2_bool_t is_valid_serviceTag;
53
53
axis2_char_t* property_CCLog;
56
56
axis2_bool_t is_valid_CCLog;
59
59
axis2_char_t* property_NCLog;
62
62
axis2_bool_t is_valid_NCLog;
65
65
axis2_char_t* property_httpdLog;
68
68
axis2_bool_t is_valid_httpdLog;
71
71
axis2_char_t* property_axis2Log;
74
74
axis2_bool_t is_valid_axis2Log;
81
81
/************************* Private Function prototypes ********************************/
84
84
axis2_status_t AXIS2_CALL
85
85
adb_getLogsResponseType_set_correlationId_nil(
86
86
adb_getLogsResponseType_t* _getLogsResponseType,
87
87
const axutil_env_t *env);
90
90
axis2_status_t AXIS2_CALL
91
91
adb_getLogsResponseType_set_userId_nil(
92
92
adb_getLogsResponseType_t* _getLogsResponseType,
93
93
const axutil_env_t *env);
96
96
axis2_status_t AXIS2_CALL
97
97
adb_getLogsResponseType_set_return_nil(
98
98
adb_getLogsResponseType_t* _getLogsResponseType,
99
99
const axutil_env_t *env);
102
102
axis2_status_t AXIS2_CALL
103
103
adb_getLogsResponseType_set_serviceTag_nil(
104
104
adb_getLogsResponseType_t* _getLogsResponseType,
105
105
const axutil_env_t *env);
108
108
axis2_status_t AXIS2_CALL
109
109
adb_getLogsResponseType_set_CCLog_nil(
110
110
adb_getLogsResponseType_t* _getLogsResponseType,
111
111
const axutil_env_t *env);
114
114
axis2_status_t AXIS2_CALL
115
115
adb_getLogsResponseType_set_NCLog_nil(
116
116
adb_getLogsResponseType_t* _getLogsResponseType,
117
117
const axutil_env_t *env);
120
120
axis2_status_t AXIS2_CALL
121
121
adb_getLogsResponseType_set_httpdLog_nil(
122
122
adb_getLogsResponseType_t* _getLogsResponseType,
123
123
const axutil_env_t *env);
126
126
axis2_status_t AXIS2_CALL
127
127
adb_getLogsResponseType_set_axis2Log_nil(
128
128
adb_getLogsResponseType_t* _getLogsResponseType,
129
129
const axutil_env_t *env);
133
133
/************************* Function Implmentations ********************************/
213
213
axis2_bool_t dont_care_minoccurs)
215
215
axiom_node_t *parent = *dp_parent;
217
217
axis2_status_t status = AXIS2_SUCCESS;
219
219
axis2_char_t* text_value = NULL;
220
220
axutil_qname_t *qname = NULL;
222
axutil_qname_t *element_qname = NULL;
222
axutil_qname_t *element_qname = NULL;
224
224
axiom_node_t *first_node = NULL;
225
225
axis2_bool_t is_early_node_valid = AXIS2_TRUE;
226
226
axiom_node_t *current_node = NULL;
227
227
axiom_element_t *current_element = NULL;
229
229
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
230
230
AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, AXIS2_FAILURE);
234
234
while(parent && axiom_node_get_node_type(parent, env) != AXIOM_ELEMENT)
236
236
parent = axiom_node_get_next_sibling(parent, env);
269
269
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
270
270
qname = axiom_element_get_qname(current_element, env, current_node);
273
273
element_qname = axutil_qname_create(env, "correlationId", "http://eucalyptus.ucsb.edu/", NULL);
277
277
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
279
279
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
281
281
is_early_node_valid = AXIS2_TRUE;
285
285
text_value = axiom_element_get_text(current_element, env, current_node);
286
286
if(text_value != NULL)
288
288
status = adb_getLogsResponseType_set_correlationId(_getLogsResponseType, env,
295
295
* axis2_qname_t *qname = NULL;
296
296
* axiom_attribute_t *the_attri = NULL;
298
298
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
299
299
* the_attri = axiom_element_get_attribute(current_element, env, qname);
392
392
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
393
393
qname = axiom_element_get_qname(current_element, env, current_node);
397
397
is_early_node_valid = AXIS2_FALSE;
399
399
element_qname = axutil_qname_create(env, "userId", "http://eucalyptus.ucsb.edu/", NULL);
403
403
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
405
405
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
407
407
is_early_node_valid = AXIS2_TRUE;
411
411
text_value = axiom_element_get_text(current_element, env, current_node);
412
412
if(text_value != NULL)
414
414
status = adb_getLogsResponseType_set_userId(_getLogsResponseType, env,
421
421
* axis2_qname_t *qname = NULL;
422
422
* axiom_attribute_t *the_attri = NULL;
424
424
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
425
425
* the_attri = axiom_element_get_attribute(current_element, env, qname);
518
518
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
519
519
qname = axiom_element_get_qname(current_element, env, current_node);
523
523
is_early_node_valid = AXIS2_FALSE;
525
525
element_qname = axutil_qname_create(env, "statusMessage", "http://eucalyptus.ucsb.edu/", NULL);
529
529
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
531
531
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
533
533
is_early_node_valid = AXIS2_TRUE;
537
537
text_value = axiom_element_get_text(current_element, env, current_node);
538
538
if(text_value != NULL)
540
540
status = adb_getLogsResponseType_set_statusMessage(_getLogsResponseType, env,
544
544
if(AXIS2_FAILURE == status)
546
546
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for statusMessage ");
666
666
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
667
667
qname = axiom_element_get_qname(current_element, env, current_node);
671
671
is_early_node_valid = AXIS2_FALSE;
673
673
element_qname = axutil_qname_create(env, "serviceTag", "http://eucalyptus.ucsb.edu/", NULL);
677
677
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
679
679
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
681
681
is_early_node_valid = AXIS2_TRUE;
685
685
text_value = axiom_element_get_text(current_element, env, current_node);
686
686
if(text_value != NULL)
688
688
status = adb_getLogsResponseType_set_serviceTag(_getLogsResponseType, env,
695
695
* axis2_qname_t *qname = NULL;
696
696
* axiom_attribute_t *the_attri = NULL;
698
698
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
699
699
* the_attri = axiom_element_get_attribute(current_element, env, qname);
792
792
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
793
793
qname = axiom_element_get_qname(current_element, env, current_node);
797
797
is_early_node_valid = AXIS2_FALSE;
799
799
element_qname = axutil_qname_create(env, "CCLog", "http://eucalyptus.ucsb.edu/", NULL);
803
803
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
805
805
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
807
807
is_early_node_valid = AXIS2_TRUE;
811
811
text_value = axiom_element_get_text(current_element, env, current_node);
812
812
if(text_value != NULL)
814
814
status = adb_getLogsResponseType_set_CCLog(_getLogsResponseType, env,
821
821
* axis2_qname_t *qname = NULL;
822
822
* axiom_attribute_t *the_attri = NULL;
824
824
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
825
825
* the_attri = axiom_element_get_attribute(current_element, env, qname);
918
918
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
919
919
qname = axiom_element_get_qname(current_element, env, current_node);
923
923
is_early_node_valid = AXIS2_FALSE;
925
925
element_qname = axutil_qname_create(env, "NCLog", "http://eucalyptus.ucsb.edu/", NULL);
929
929
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
931
931
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
933
933
is_early_node_valid = AXIS2_TRUE;
937
937
text_value = axiom_element_get_text(current_element, env, current_node);
938
938
if(text_value != NULL)
940
940
status = adb_getLogsResponseType_set_NCLog(_getLogsResponseType, env,
947
947
* axis2_qname_t *qname = NULL;
948
948
* axiom_attribute_t *the_attri = NULL;
950
950
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
951
951
* the_attri = axiom_element_get_attribute(current_element, env, qname);
1044
1044
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1045
1045
qname = axiom_element_get_qname(current_element, env, current_node);
1049
1049
is_early_node_valid = AXIS2_FALSE;
1051
1051
element_qname = axutil_qname_create(env, "httpdLog", "http://eucalyptus.ucsb.edu/", NULL);
1055
1055
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
1057
1057
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
1059
1059
is_early_node_valid = AXIS2_TRUE;
1063
1063
text_value = axiom_element_get_text(current_element, env, current_node);
1064
1064
if(text_value != NULL)
1066
1066
status = adb_getLogsResponseType_set_httpdLog(_getLogsResponseType, env,
1073
1073
* axis2_qname_t *qname = NULL;
1074
1074
* axiom_attribute_t *the_attri = NULL;
1076
1076
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1077
1077
* the_attri = axiom_element_get_attribute(current_element, env, qname);
1170
1170
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
1171
1171
qname = axiom_element_get_qname(current_element, env, current_node);
1175
1175
is_early_node_valid = AXIS2_FALSE;
1177
1177
element_qname = axutil_qname_create(env, "axis2Log", "http://eucalyptus.ucsb.edu/", NULL);
1181
1181
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
1183
1183
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
1185
1185
is_early_node_valid = AXIS2_TRUE;
1189
1189
text_value = axiom_element_get_text(current_element, env, current_node);
1190
1190
if(text_value != NULL)
1192
1192
status = adb_getLogsResponseType_set_axis2Log(_getLogsResponseType, env,
1199
1199
* axis2_qname_t *qname = NULL;
1200
1200
* axiom_attribute_t *the_attri = NULL;
1202
1202
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
1203
1203
* the_attri = axiom_element_get_attribute(current_element, env, qname);
1287
1287
const axutil_env_t *env, axiom_element_t *parent_element,
1288
1288
axutil_hash_t *namespaces, int *next_ns_index)
1291
1291
/* Here this is an empty function, Nothing to declare */
1297
1297
axiom_node_t* AXIS2_CALL
1298
1298
adb_getLogsResponseType_serialize(
1299
1299
adb_getLogsResponseType_t* _getLogsResponseType,
1300
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)
1304
1304
axis2_char_t *string_to_stream;
1307
1307
axiom_node_t *current_node = NULL;
1308
1308
int tag_closed = 0;
1312
1312
axiom_namespace_t *ns1 = NULL;
1314
1314
axis2_char_t *qname_uri = NULL;
1315
1315
axis2_char_t *qname_prefix = NULL;
1316
1316
axis2_char_t *p_prefix = NULL;
1317
1317
axis2_bool_t ns_already_defined;
1319
1319
axis2_char_t *text_value_1;
1320
1320
axis2_char_t *text_value_1_temp;
1322
1322
axis2_char_t *text_value_2;
1323
1323
axis2_char_t *text_value_2_temp;
1325
1325
axis2_char_t *text_value_3;
1326
1326
axis2_char_t *text_value_3_temp;
1328
1328
axis2_char_t text_value_4[64];
1330
1330
axis2_char_t *text_value_5;
1331
1331
axis2_char_t *text_value_5_temp;
1333
1333
axis2_char_t *text_value_6;
1334
1334
axis2_char_t *text_value_6_temp;
1336
1336
axis2_char_t *text_value_7;
1337
1337
axis2_char_t *text_value_7_temp;
1339
1339
axis2_char_t *text_value_8;
1340
1340
axis2_char_t *text_value_8_temp;
1342
1342
axis2_char_t *text_value_9;
1343
1343
axis2_char_t *text_value_9_temp;
1345
1345
axis2_char_t *start_input_str = NULL;
1346
1346
axis2_char_t *end_input_str = NULL;
1347
1347
unsigned int start_input_str_len = 0;
1348
1348
unsigned int end_input_str_len = 0;
1351
1351
axiom_data_source_t *data_source = NULL;
1352
1352
axutil_stream_t *stream = NULL;
1356
1356
AXIS2_ENV_CHECK(env, NULL);
1357
1357
AXIS2_PARAM_CHECK(env->error, _getLogsResponseType, NULL);
1360
1360
current_node = parent;
1361
1361
data_source = (axiom_data_source_t *)axiom_node_get_data_element(current_node, env);
1362
1362
if (!data_source)
1364
1364
stream = axiom_data_source_get_stream(data_source, env); /* assume parent is of type data source */
1368
1368
if(!parent_tag_closed)
1371
string_to_stream = ">";
1371
string_to_stream = ">";
1372
1372
axutil_stream_write(stream, env, string_to_stream, axutil_strlen(string_to_stream));
1373
1373
tag_closed = 1;
1377
1377
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1379
1379
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1380
1380
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1381
1381
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1383
1383
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1384
1384
"http://eucalyptus.ucsb.edu/",
1389
1389
if (!_getLogsResponseType->is_valid_correlationId)
1392
1392
/* no need to complain for minoccurs=0 element */
1398
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")));
1399
(4 + axutil_strlen(p_prefix) +
1400
axutil_strlen("correlationId")));
1402
1402
/* axutil_strlen("<:>") + 1 = 4 */
1403
1403
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1404
1404
(5 + axutil_strlen(p_prefix) + axutil_strlen("correlationId")));
1405
1405
/* axutil_strlen("</:>") + 1 = 5 */
1413
1413
* parsing correlationId element
1418
1418
sprintf(start_input_str, "<%s%scorrelationId>",
1419
1419
p_prefix?p_prefix:"",
1420
1420
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1422
1422
start_input_str_len = axutil_strlen(start_input_str);
1423
1423
sprintf(end_input_str, "</%s%scorrelationId>",
1424
1424
p_prefix?p_prefix:"",
1425
1425
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1426
1426
end_input_str_len = axutil_strlen(end_input_str);
1428
1428
text_value_1 = _getLogsResponseType->property_correlationId;
1430
1430
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1433
1433
text_value_1_temp = axutil_xml_quote_string(env, text_value_1, AXIS2_TRUE);
1434
1434
if (text_value_1_temp)
1441
1441
axutil_stream_write(stream, env, text_value_1, axutil_strlen(text_value_1));
1444
1444
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1447
1447
AXIS2_FREE(env->allocator,start_input_str);
1448
1448
AXIS2_FREE(env->allocator,end_input_str);
1452
1452
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1454
1454
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1455
1455
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1456
1456
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1458
1458
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1459
1459
"http://eucalyptus.ucsb.edu/",
1464
1464
if (!_getLogsResponseType->is_valid_userId)
1467
1467
/* no need to complain for minoccurs=0 element */
1473
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")));
1474
(4 + axutil_strlen(p_prefix) +
1475
axutil_strlen("userId")));
1477
1477
/* axutil_strlen("<:>") + 1 = 4 */
1478
1478
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1479
1479
(5 + axutil_strlen(p_prefix) + axutil_strlen("userId")));
1480
1480
/* axutil_strlen("</:>") + 1 = 5 */
1488
1488
* parsing userId element
1493
1493
sprintf(start_input_str, "<%s%suserId>",
1494
1494
p_prefix?p_prefix:"",
1495
1495
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1497
1497
start_input_str_len = axutil_strlen(start_input_str);
1498
1498
sprintf(end_input_str, "</%s%suserId>",
1499
1499
p_prefix?p_prefix:"",
1500
1500
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1501
1501
end_input_str_len = axutil_strlen(end_input_str);
1503
1503
text_value_2 = _getLogsResponseType->property_userId;
1505
1505
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1508
1508
text_value_2_temp = axutil_xml_quote_string(env, text_value_2, AXIS2_TRUE);
1509
1509
if (text_value_2_temp)
1516
1516
axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
1519
1519
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1522
1522
AXIS2_FREE(env->allocator,start_input_str);
1523
1523
AXIS2_FREE(env->allocator,end_input_str);
1527
1527
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1529
1529
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1530
1530
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1531
1531
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1533
1533
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1534
1534
"http://eucalyptus.ucsb.edu/",
1539
1539
if (!_getLogsResponseType->is_valid_statusMessage)
1542
1542
/* no need to complain for minoccurs=0 element */
1548
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")));
1549
(4 + axutil_strlen(p_prefix) +
1550
axutil_strlen("statusMessage")));
1552
1552
/* axutil_strlen("<:>") + 1 = 4 */
1553
1553
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1554
1554
(5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
1555
1555
/* axutil_strlen("</:>") + 1 = 5 */
1563
1563
* parsing statusMessage element
1568
1568
sprintf(start_input_str, "<%s%sstatusMessage>",
1569
1569
p_prefix?p_prefix:"",
1570
1570
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1572
1572
start_input_str_len = axutil_strlen(start_input_str);
1573
1573
sprintf(end_input_str, "</%s%sstatusMessage>",
1574
1574
p_prefix?p_prefix:"",
1575
1575
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1576
1576
end_input_str_len = axutil_strlen(end_input_str);
1578
1578
text_value_3 = _getLogsResponseType->property_statusMessage;
1580
1580
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1583
1583
text_value_3_temp = axutil_xml_quote_string(env, text_value_3, AXIS2_TRUE);
1584
1584
if (text_value_3_temp)
1591
1591
axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
1594
1594
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1597
1597
AXIS2_FREE(env->allocator,start_input_str);
1598
1598
AXIS2_FREE(env->allocator,end_input_str);
1602
1602
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1604
1604
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1605
1605
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1606
1606
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1608
1608
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1609
1609
"http://eucalyptus.ucsb.edu/",
1614
1614
if (!_getLogsResponseType->is_valid_return)
1617
1617
/* no need to complain for minoccurs=0 element */
1623
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")));
1624
(4 + axutil_strlen(p_prefix) +
1625
axutil_strlen("return")));
1627
1627
/* axutil_strlen("<:>") + 1 = 4 */
1628
1628
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1629
1629
(5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
1630
1630
/* axutil_strlen("</:>") + 1 = 5 */
1638
1638
* parsing return element
1643
1643
sprintf(start_input_str, "<%s%sreturn>",
1644
1644
p_prefix?p_prefix:"",
1645
1645
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1647
1647
start_input_str_len = axutil_strlen(start_input_str);
1648
1648
sprintf(end_input_str, "</%s%sreturn>",
1649
1649
p_prefix?p_prefix:"",
1650
1650
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1651
1651
end_input_str_len = axutil_strlen(end_input_str);
1653
1653
strcpy(text_value_4, (_getLogsResponseType->property_return)?"true":"false");
1655
1655
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1657
1657
axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
1659
1659
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1662
1662
AXIS2_FREE(env->allocator,start_input_str);
1663
1663
AXIS2_FREE(env->allocator,end_input_str);
1667
1667
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1669
1669
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1670
1670
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1671
1671
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1673
1673
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1674
1674
"http://eucalyptus.ucsb.edu/",
1679
1679
if (!_getLogsResponseType->is_valid_serviceTag)
1682
1682
/* no need to complain for minoccurs=0 element */
1688
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")));
1689
(4 + axutil_strlen(p_prefix) +
1690
axutil_strlen("serviceTag")));
1692
1692
/* axutil_strlen("<:>") + 1 = 4 */
1693
1693
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1694
1694
(5 + axutil_strlen(p_prefix) + axutil_strlen("serviceTag")));
1695
1695
/* axutil_strlen("</:>") + 1 = 5 */
1703
1703
* parsing serviceTag element
1708
1708
sprintf(start_input_str, "<%s%sserviceTag>",
1709
1709
p_prefix?p_prefix:"",
1710
1710
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1712
1712
start_input_str_len = axutil_strlen(start_input_str);
1713
1713
sprintf(end_input_str, "</%s%sserviceTag>",
1714
1714
p_prefix?p_prefix:"",
1715
1715
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1716
1716
end_input_str_len = axutil_strlen(end_input_str);
1718
1718
text_value_5 = _getLogsResponseType->property_serviceTag;
1720
1720
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1723
1723
text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
1724
1724
if (text_value_5_temp)
1731
1731
axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
1734
1734
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1737
1737
AXIS2_FREE(env->allocator,start_input_str);
1738
1738
AXIS2_FREE(env->allocator,end_input_str);
1742
1742
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1744
1744
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1745
1745
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1746
1746
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1748
1748
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1749
1749
"http://eucalyptus.ucsb.edu/",
1754
1754
if (!_getLogsResponseType->is_valid_CCLog)
1757
1757
/* no need to complain for minoccurs=0 element */
1763
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")));
1764
(4 + axutil_strlen(p_prefix) +
1765
axutil_strlen("CCLog")));
1767
1767
/* axutil_strlen("<:>") + 1 = 4 */
1768
1768
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1769
1769
(5 + axutil_strlen(p_prefix) + axutil_strlen("CCLog")));
1770
1770
/* axutil_strlen("</:>") + 1 = 5 */
1778
1778
* parsing CCLog element
1783
1783
sprintf(start_input_str, "<%s%sCCLog>",
1784
1784
p_prefix?p_prefix:"",
1785
1785
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1787
1787
start_input_str_len = axutil_strlen(start_input_str);
1788
1788
sprintf(end_input_str, "</%s%sCCLog>",
1789
1789
p_prefix?p_prefix:"",
1790
1790
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1791
1791
end_input_str_len = axutil_strlen(end_input_str);
1793
1793
text_value_6 = _getLogsResponseType->property_CCLog;
1795
1795
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1798
1798
text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
1799
1799
if (text_value_6_temp)
1806
1806
axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
1809
1809
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1812
1812
AXIS2_FREE(env->allocator,start_input_str);
1813
1813
AXIS2_FREE(env->allocator,end_input_str);
1817
1817
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1819
1819
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1820
1820
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1821
1821
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1823
1823
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1824
1824
"http://eucalyptus.ucsb.edu/",
1829
1829
if (!_getLogsResponseType->is_valid_NCLog)
1832
1832
/* no need to complain for minoccurs=0 element */
1838
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")));
1839
(4 + axutil_strlen(p_prefix) +
1840
axutil_strlen("NCLog")));
1842
1842
/* axutil_strlen("<:>") + 1 = 4 */
1843
1843
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1844
1844
(5 + axutil_strlen(p_prefix) + axutil_strlen("NCLog")));
1845
1845
/* axutil_strlen("</:>") + 1 = 5 */
1853
1853
* parsing NCLog element
1858
1858
sprintf(start_input_str, "<%s%sNCLog>",
1859
1859
p_prefix?p_prefix:"",
1860
1860
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1862
1862
start_input_str_len = axutil_strlen(start_input_str);
1863
1863
sprintf(end_input_str, "</%s%sNCLog>",
1864
1864
p_prefix?p_prefix:"",
1865
1865
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1866
1866
end_input_str_len = axutil_strlen(end_input_str);
1868
1868
text_value_7 = _getLogsResponseType->property_NCLog;
1870
1870
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1873
1873
text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
1874
1874
if (text_value_7_temp)
1881
1881
axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
1884
1884
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1887
1887
AXIS2_FREE(env->allocator,start_input_str);
1888
1888
AXIS2_FREE(env->allocator,end_input_str);
1892
1892
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1894
1894
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1895
1895
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1896
1896
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1898
1898
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1899
1899
"http://eucalyptus.ucsb.edu/",
1904
1904
if (!_getLogsResponseType->is_valid_httpdLog)
1907
1907
/* no need to complain for minoccurs=0 element */
1913
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")));
1914
(4 + axutil_strlen(p_prefix) +
1915
axutil_strlen("httpdLog")));
1917
1917
/* axutil_strlen("<:>") + 1 = 4 */
1918
1918
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1919
1919
(5 + axutil_strlen(p_prefix) + axutil_strlen("httpdLog")));
1920
1920
/* axutil_strlen("</:>") + 1 = 5 */
1928
1928
* parsing httpdLog element
1933
1933
sprintf(start_input_str, "<%s%shttpdLog>",
1934
1934
p_prefix?p_prefix:"",
1935
1935
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1937
1937
start_input_str_len = axutil_strlen(start_input_str);
1938
1938
sprintf(end_input_str, "</%s%shttpdLog>",
1939
1939
p_prefix?p_prefix:"",
1940
1940
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
1941
1941
end_input_str_len = axutil_strlen(end_input_str);
1943
1943
text_value_8 = _getLogsResponseType->property_httpdLog;
1945
1945
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
1948
1948
text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
1949
1949
if (text_value_8_temp)
1956
1956
axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
1959
1959
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
1962
1962
AXIS2_FREE(env->allocator,start_input_str);
1963
1963
AXIS2_FREE(env->allocator,end_input_str);
1967
1967
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
1969
1969
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
1970
1970
sprintf(p_prefix, "n%d", (*next_ns_index)++);
1971
1971
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
1973
1973
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
1974
1974
"http://eucalyptus.ucsb.edu/",
1979
1979
if (!_getLogsResponseType->is_valid_axis2Log)
1982
1982
/* no need to complain for minoccurs=0 element */
1988
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")));
1989
(4 + axutil_strlen(p_prefix) +
1990
axutil_strlen("axis2Log")));
1992
1992
/* axutil_strlen("<:>") + 1 = 4 */
1993
1993
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
1994
1994
(5 + axutil_strlen(p_prefix) + axutil_strlen("axis2Log")));
1995
1995
/* axutil_strlen("</:>") + 1 = 5 */
2003
2003
* parsing axis2Log element
2008
2008
sprintf(start_input_str, "<%s%saxis2Log>",
2009
2009
p_prefix?p_prefix:"",
2010
2010
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2012
2012
start_input_str_len = axutil_strlen(start_input_str);
2013
2013
sprintf(end_input_str, "</%s%saxis2Log>",
2014
2014
p_prefix?p_prefix:"",
2015
2015
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2016
2016
end_input_str_len = axutil_strlen(end_input_str);
2018
2018
text_value_9 = _getLogsResponseType->property_axis2Log;
2020
2020
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
2023
2023
text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
2024
2024
if (text_value_9_temp)