1971
2068
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element keyName missing");
1972
2069
return AXIS2_FAILURE;
1977
axutil_qname_free(element_qname, env);
1978
element_qname = NULL;
1984
* building publicMacAddress element
1990
* because elements are ordered this works fine
1994
if(current_node != NULL && is_early_node_valid)
1996
current_node = axiom_node_get_next_sibling(current_node, env);
1999
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2001
current_node = axiom_node_get_next_sibling(current_node, env);
2003
if(current_node != NULL)
2005
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2006
qname = axiom_element_get_qname(current_element, env, current_node);
2010
is_early_node_valid = AXIS2_FALSE;
2012
element_qname = axutil_qname_create(env, "publicMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
2016
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
2018
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
2020
is_early_node_valid = AXIS2_TRUE;
2024
text_value = axiom_element_get_text(current_element, env, current_node);
2025
if(text_value != NULL)
2027
status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env,
2034
* axis2_qname_t *qname = NULL;
2035
* axiom_attribute_t *the_attri = NULL;
2037
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2038
* the_attri = axiom_element_get_attribute(current_element, env, qname);
2040
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2042
axiom_attribute_t *the_attri = NULL;
2043
axis2_char_t *attrib_text = NULL;
2044
axutil_hash_t *attribute_hash = NULL;
2046
attribute_hash = axiom_element_get_all_attributes(current_element, env);
2051
axutil_hash_index_t *hi;
2055
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2057
axutil_hash_this(hi, &key, NULL, &val);
2059
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2061
the_attri = (axiom_attribute_t*)val;
2069
attrib_text = axiom_attribute_get_value(the_attri, env);
2073
/* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2074
attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2077
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2079
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element publicMacAddress");
2080
status = AXIS2_FAILURE;
2084
/* after all, we found this is a empty string */
2085
status = adb_ncRunInstanceType_set_publicMacAddress(_ncRunInstanceType, env,
2090
if(AXIS2_FAILURE == status)
2092
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for publicMacAddress ");
2095
axutil_qname_free(element_qname, env);
2097
return AXIS2_FAILURE;
2101
else if(!dont_care_minoccurs)
2105
axutil_qname_free(element_qname, env);
2107
/* this is not a nillable element*/
2108
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element publicMacAddress missing");
2109
return AXIS2_FAILURE;
2114
axutil_qname_free(element_qname, env);
2115
element_qname = NULL;
2121
* building privateMacAddress element
2127
* because elements are ordered this works fine
2131
if(current_node != NULL && is_early_node_valid)
2133
current_node = axiom_node_get_next_sibling(current_node, env);
2136
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2138
current_node = axiom_node_get_next_sibling(current_node, env);
2140
if(current_node != NULL)
2142
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2143
qname = axiom_element_get_qname(current_element, env, current_node);
2147
is_early_node_valid = AXIS2_FALSE;
2149
element_qname = axutil_qname_create(env, "privateMacAddress", "http://eucalyptus.ucsb.edu/", NULL);
2153
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
2155
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
2157
is_early_node_valid = AXIS2_TRUE;
2161
text_value = axiom_element_get_text(current_element, env, current_node);
2162
if(text_value != NULL)
2164
status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env,
2171
* axis2_qname_t *qname = NULL;
2172
* axiom_attribute_t *the_attri = NULL;
2174
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2175
* the_attri = axiom_element_get_attribute(current_element, env, qname);
2177
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2179
axiom_attribute_t *the_attri = NULL;
2180
axis2_char_t *attrib_text = NULL;
2181
axutil_hash_t *attribute_hash = NULL;
2183
attribute_hash = axiom_element_get_all_attributes(current_element, env);
2188
axutil_hash_index_t *hi;
2192
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2194
axutil_hash_this(hi, &key, NULL, &val);
2196
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2198
the_attri = (axiom_attribute_t*)val;
2206
attrib_text = axiom_attribute_get_value(the_attri, env);
2210
/* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2211
attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2214
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2216
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element privateMacAddress");
2217
status = AXIS2_FAILURE;
2221
/* after all, we found this is a empty string */
2222
status = adb_ncRunInstanceType_set_privateMacAddress(_ncRunInstanceType, env,
2227
if(AXIS2_FAILURE == status)
2229
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for privateMacAddress ");
2232
axutil_qname_free(element_qname, env);
2234
return AXIS2_FAILURE;
2238
else if(!dont_care_minoccurs)
2242
axutil_qname_free(element_qname, env);
2244
/* this is not a nillable element*/
2245
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element privateMacAddress missing");
2246
return AXIS2_FAILURE;
2251
axutil_qname_free(element_qname, env);
2252
element_qname = NULL;
2258
* building reservationId element
2264
* because elements are ordered this works fine
2268
if(current_node != NULL && is_early_node_valid)
2270
current_node = axiom_node_get_next_sibling(current_node, env);
2273
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2275
current_node = axiom_node_get_next_sibling(current_node, env);
2277
if(current_node != NULL)
2279
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2280
qname = axiom_element_get_qname(current_element, env, current_node);
2284
is_early_node_valid = AXIS2_FALSE;
2286
element_qname = axutil_qname_create(env, "reservationId", "http://eucalyptus.ucsb.edu/", NULL);
2290
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
2292
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
2294
is_early_node_valid = AXIS2_TRUE;
2298
text_value = axiom_element_get_text(current_element, env, current_node);
2299
if(text_value != NULL)
2301
status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
2308
* axis2_qname_t *qname = NULL;
2309
* axiom_attribute_t *the_attri = NULL;
2311
* qname = axutil_qname_create(env, "nil", "http://www.w3.org/2001/XMLSchema-instance", "xsi");
2312
* the_attri = axiom_element_get_attribute(current_element, env, qname);
2314
/* currently thereis a bug in the axiom_element_get_attribute, so we have to go to this bad method */
2316
axiom_attribute_t *the_attri = NULL;
2317
axis2_char_t *attrib_text = NULL;
2318
axutil_hash_t *attribute_hash = NULL;
2320
attribute_hash = axiom_element_get_all_attributes(current_element, env);
2325
axutil_hash_index_t *hi;
2329
for (hi = axutil_hash_first(attribute_hash, env); hi; hi = axutil_hash_next(env, hi))
2331
axutil_hash_this(hi, &key, NULL, &val);
2333
if(strstr((axis2_char_t*)key, "nil|http://www.w3.org/2001/XMLSchema-instance"))
2335
the_attri = (axiom_attribute_t*)val;
2343
attrib_text = axiom_attribute_get_value(the_attri, env);
2347
/* this is hoping that attribute is stored in "http://www.w3.org/2001/XMLSchema-instance", this happnes when name is in default namespace */
2348
attrib_text = axiom_element_get_attribute_value_by_name(current_element, env, "nil");
2351
if(attrib_text && 0 == axutil_strcmp(attrib_text, "1"))
2353
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element reservationId");
2354
status = AXIS2_FAILURE;
2358
/* after all, we found this is a empty string */
2359
status = adb_ncRunInstanceType_set_reservationId(_ncRunInstanceType, env,
2364
if(AXIS2_FAILURE == status)
2366
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for reservationId ");
2369
axutil_qname_free(element_qname, env);
2371
return AXIS2_FAILURE;
2375
else if(!dont_care_minoccurs)
2379
axutil_qname_free(element_qname, env);
2381
/* this is not a nillable element*/
2382
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element reservationId missing");
2383
return AXIS2_FAILURE;
2388
axutil_qname_free(element_qname, env);
2389
element_qname = NULL;
2395
* building vlan element
2401
* because elements are ordered this works fine
2405
if(current_node != NULL && is_early_node_valid)
2407
current_node = axiom_node_get_next_sibling(current_node, env);
2410
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2412
current_node = axiom_node_get_next_sibling(current_node, env);
2414
if(current_node != NULL)
2416
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2417
qname = axiom_element_get_qname(current_element, env, current_node);
2421
is_early_node_valid = AXIS2_FALSE;
2423
element_qname = axutil_qname_create(env, "vlan", "http://eucalyptus.ucsb.edu/", NULL);
2427
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
2429
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
2431
is_early_node_valid = AXIS2_TRUE;
2435
text_value = axiom_element_get_text(current_element, env, current_node);
2436
if(text_value != NULL)
2438
status = adb_ncRunInstanceType_set_vlan(_ncRunInstanceType, env,
2444
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL value is set to a non nillable element vlan");
2445
status = AXIS2_FAILURE;
2448
if(AXIS2_FAILURE == status)
2450
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for vlan ");
2453
axutil_qname_free(element_qname, env);
2455
return AXIS2_FAILURE;
2459
else if(!dont_care_minoccurs)
2463
axutil_qname_free(element_qname, env);
2465
/* this is not a nillable element*/
2466
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element vlan missing");
2467
return AXIS2_FAILURE;
2472
axutil_qname_free(element_qname, env);
2473
element_qname = NULL;
2074
axutil_qname_free(element_qname, env);
2075
element_qname = NULL;
2081
* building netParams element
2087
* because elements are ordered this works fine
2091
if(current_node != NULL && is_early_node_valid)
2093
current_node = axiom_node_get_next_sibling(current_node, env);
2096
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2098
current_node = axiom_node_get_next_sibling(current_node, env);
2100
if(current_node != NULL)
2102
current_element = (axiom_element_t *)axiom_node_get_data_element(current_node, env);
2103
qname = axiom_element_get_qname(current_element, env, current_node);
2107
is_early_node_valid = AXIS2_FALSE;
2109
element_qname = axutil_qname_create(env, "netParams", "http://eucalyptus.ucsb.edu/", NULL);
2112
if (adb_netConfigType_is_particle() ||
2113
(current_node && current_element && (axutil_qname_equals(element_qname, env, qname))))
2115
if( current_node && current_element && (axutil_qname_equals(element_qname, env, qname)))
2117
is_early_node_valid = AXIS2_TRUE;
2121
element = (void*)adb_netConfigType_create(env);
2123
status = adb_netConfigType_deserialize((adb_netConfigType_t*)element,
2124
env, ¤t_node, &is_early_node_valid, AXIS2_FALSE);
2125
if(AXIS2_FAILURE == status)
2127
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in building adb object for element netParams");
2131
status = adb_ncRunInstanceType_set_netParams(_ncRunInstanceType, env,
2132
(adb_netConfigType_t*)element);
2135
if(AXIS2_FAILURE == status)
2137
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "failed in setting the value for netParams ");
2140
axutil_qname_free(element_qname, env);
2142
return AXIS2_FAILURE;
2146
else if(!dont_care_minoccurs)
2150
axutil_qname_free(element_qname, env);
2152
/* this is not a nillable element*/
2153
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "non nillable or minOuccrs != 0 element netParams missing");
2154
return AXIS2_FAILURE;
2159
axutil_qname_free(element_qname, env);
2160
element_qname = NULL;
2479
2166
* building userData element
2485
2172
* because elements are ordered this works fine
2489
2176
if(current_node != NULL && is_early_node_valid)
2491
2178
current_node = axiom_node_get_next_sibling(current_node, env);
2494
2181
while(current_node && axiom_node_get_node_type(current_node, env) != AXIOM_ELEMENT)
2496
2183
current_node = axiom_node_get_next_sibling(current_node, env);
3165
2849
axutil_stream_write(stream, env, text_value_2, axutil_strlen(text_value_2));
3168
2852
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3171
2855
AXIS2_FREE(env->allocator,start_input_str);
3172
2856
AXIS2_FREE(env->allocator,end_input_str);
3176
2860
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3178
2862
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3179
2863
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3180
2864
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3182
2866
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3183
2867
"http://eucalyptus.ucsb.edu/",
3188
2872
if (!_ncRunInstanceType->is_valid_return)
3191
2875
/* no need to complain for minoccurs=0 element */
3197
2881
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3198
(4 + axutil_strlen(p_prefix) +
3199
axutil_strlen("return")));
2882
(4 + axutil_strlen(p_prefix) +
2883
axutil_strlen("return")));
3201
2885
/* axutil_strlen("<:>") + 1 = 4 */
3202
2886
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3203
2887
(5 + axutil_strlen(p_prefix) + axutil_strlen("return")));
3204
2888
/* axutil_strlen("</:>") + 1 = 5 */
3212
2896
* parsing return element
3217
2901
sprintf(start_input_str, "<%s%sreturn>",
3218
2902
p_prefix?p_prefix:"",
3219
2903
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3221
2905
start_input_str_len = axutil_strlen(start_input_str);
3222
2906
sprintf(end_input_str, "</%s%sreturn>",
3223
2907
p_prefix?p_prefix:"",
3224
2908
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3225
2909
end_input_str_len = axutil_strlen(end_input_str);
3227
2911
strcpy(text_value_3, (_ncRunInstanceType->property_return)?"true":"false");
3229
2913
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3231
2915
axutil_stream_write(stream, env, text_value_3, axutil_strlen(text_value_3));
3233
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3236
AXIS2_FREE(env->allocator,start_input_str);
3237
AXIS2_FREE(env->allocator,end_input_str);
3241
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3243
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3244
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3245
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3247
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3248
"http://eucalyptus.ucsb.edu/",
2917
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
2920
AXIS2_FREE(env->allocator,start_input_str);
2921
AXIS2_FREE(env->allocator,end_input_str);
2925
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
2927
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
2928
sprintf(p_prefix, "n%d", (*next_ns_index)++);
2929
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
2931
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
2932
"http://eucalyptus.ucsb.edu/",
2937
if (!_ncRunInstanceType->is_valid_nodeName)
2940
/* no need to complain for minoccurs=0 element */
2946
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
2947
(4 + axutil_strlen(p_prefix) +
2948
axutil_strlen("nodeName")));
2950
/* axutil_strlen("<:>") + 1 = 4 */
2951
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
2952
(5 + axutil_strlen(p_prefix) + axutil_strlen("nodeName")));
2953
/* axutil_strlen("</:>") + 1 = 5 */
2961
* parsing nodeName element
2966
sprintf(start_input_str, "<%s%snodeName>",
2967
p_prefix?p_prefix:"",
2968
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2970
start_input_str_len = axutil_strlen(start_input_str);
2971
sprintf(end_input_str, "</%s%snodeName>",
2972
p_prefix?p_prefix:"",
2973
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
2974
end_input_str_len = axutil_strlen(end_input_str);
2976
text_value_4 = _ncRunInstanceType->property_nodeName;
2978
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
2981
text_value_4_temp = axutil_xml_quote_string(env, text_value_4, AXIS2_TRUE);
2982
if (text_value_4_temp)
2984
axutil_stream_write(stream, env, text_value_4_temp, axutil_strlen(text_value_4_temp));
2985
AXIS2_FREE(env->allocator, text_value_4_temp);
2989
axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
2992
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
2995
AXIS2_FREE(env->allocator,start_input_str);
2996
AXIS2_FREE(env->allocator,end_input_str);
3000
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3002
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3003
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3004
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3006
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3007
"http://eucalyptus.ucsb.edu/",
3253
3012
if (!_ncRunInstanceType->is_valid_statusMessage)
3256
3015
/* no need to complain for minoccurs=0 element */
3262
3021
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3263
(4 + axutil_strlen(p_prefix) +
3264
axutil_strlen("statusMessage")));
3022
(4 + axutil_strlen(p_prefix) +
3023
axutil_strlen("statusMessage")));
3266
3025
/* axutil_strlen("<:>") + 1 = 4 */
3267
3026
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3268
3027
(5 + axutil_strlen(p_prefix) + axutil_strlen("statusMessage")));
3269
3028
/* axutil_strlen("</:>") + 1 = 5 */
3277
3036
* parsing statusMessage element
3282
3041
sprintf(start_input_str, "<%s%sstatusMessage>",
3283
3042
p_prefix?p_prefix:"",
3284
3043
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3286
3045
start_input_str_len = axutil_strlen(start_input_str);
3287
3046
sprintf(end_input_str, "</%s%sstatusMessage>",
3288
3047
p_prefix?p_prefix:"",
3289
3048
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3290
3049
end_input_str_len = axutil_strlen(end_input_str);
3292
sprintf (text_value_4, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage);
3051
sprintf (text_value_5, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_statusMessage);
3294
3053
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3296
axutil_stream_write(stream, env, text_value_4, axutil_strlen(text_value_4));
3055
axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
3298
3057
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3301
3060
AXIS2_FREE(env->allocator,start_input_str);
3302
3061
AXIS2_FREE(env->allocator,end_input_str);
3306
3065
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3308
3067
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3309
3068
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3310
3069
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3312
3071
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3313
3072
"http://eucalyptus.ucsb.edu/",
3318
3077
if (!_ncRunInstanceType->is_valid_imageId)
3322
3081
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageId");
3328
3087
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3329
(4 + axutil_strlen(p_prefix) +
3330
axutil_strlen("imageId")));
3088
(4 + axutil_strlen(p_prefix) +
3089
axutil_strlen("imageId")));
3332
3091
/* axutil_strlen("<:>") + 1 = 4 */
3333
3092
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3334
3093
(5 + axutil_strlen(p_prefix) + axutil_strlen("imageId")));
3335
3094
/* axutil_strlen("</:>") + 1 = 5 */
3343
3102
* parsing imageId element
3348
3107
sprintf(start_input_str, "<%s%simageId>",
3349
3108
p_prefix?p_prefix:"",
3350
3109
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3352
3111
start_input_str_len = axutil_strlen(start_input_str);
3353
3112
sprintf(end_input_str, "</%s%simageId>",
3354
3113
p_prefix?p_prefix:"",
3355
3114
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3356
3115
end_input_str_len = axutil_strlen(end_input_str);
3358
text_value_5 = _ncRunInstanceType->property_imageId;
3117
text_value_6 = _ncRunInstanceType->property_imageId;
3360
3119
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3363
text_value_5_temp = axutil_xml_quote_string(env, text_value_5, AXIS2_TRUE);
3364
if (text_value_5_temp)
3122
text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
3123
if (text_value_6_temp)
3366
axutil_stream_write(stream, env, text_value_5_temp, axutil_strlen(text_value_5_temp));
3367
AXIS2_FREE(env->allocator, text_value_5_temp);
3125
axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
3126
AXIS2_FREE(env->allocator, text_value_6_temp);
3371
axutil_stream_write(stream, env, text_value_5, axutil_strlen(text_value_5));
3130
axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
3374
3133
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3377
3136
AXIS2_FREE(env->allocator,start_input_str);
3378
3137
AXIS2_FREE(env->allocator,end_input_str);
3382
3141
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3384
3143
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3385
3144
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3386
3145
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3388
3147
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3389
3148
"http://eucalyptus.ucsb.edu/",
3394
3153
if (!_ncRunInstanceType->is_valid_kernelId)
3398
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelId");
3156
/* no need to complain for minoccurs=0 element */
3404
3162
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3405
(4 + axutil_strlen(p_prefix) +
3406
axutil_strlen("kernelId")));
3163
(4 + axutil_strlen(p_prefix) +
3164
axutil_strlen("kernelId")));
3408
3166
/* axutil_strlen("<:>") + 1 = 4 */
3409
3167
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3410
3168
(5 + axutil_strlen(p_prefix) + axutil_strlen("kernelId")));
3411
3169
/* axutil_strlen("</:>") + 1 = 5 */
3419
3177
* parsing kernelId element
3424
3182
sprintf(start_input_str, "<%s%skernelId>",
3425
3183
p_prefix?p_prefix:"",
3426
3184
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3428
3186
start_input_str_len = axutil_strlen(start_input_str);
3429
3187
sprintf(end_input_str, "</%s%skernelId>",
3430
3188
p_prefix?p_prefix:"",
3431
3189
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3432
3190
end_input_str_len = axutil_strlen(end_input_str);
3434
text_value_6 = _ncRunInstanceType->property_kernelId;
3192
text_value_7 = _ncRunInstanceType->property_kernelId;
3436
3194
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3439
text_value_6_temp = axutil_xml_quote_string(env, text_value_6, AXIS2_TRUE);
3440
if (text_value_6_temp)
3197
text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
3198
if (text_value_7_temp)
3442
axutil_stream_write(stream, env, text_value_6_temp, axutil_strlen(text_value_6_temp));
3443
AXIS2_FREE(env->allocator, text_value_6_temp);
3200
axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
3201
AXIS2_FREE(env->allocator, text_value_7_temp);
3447
axutil_stream_write(stream, env, text_value_6, axutil_strlen(text_value_6));
3205
axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
3450
3208
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3453
3211
AXIS2_FREE(env->allocator,start_input_str);
3454
3212
AXIS2_FREE(env->allocator,end_input_str);
3458
3216
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3460
3218
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3461
3219
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3462
3220
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3464
3222
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3465
3223
"http://eucalyptus.ucsb.edu/",
3470
3228
if (!_ncRunInstanceType->is_valid_ramdiskId)
3473
3231
/* no need to complain for minoccurs=0 element */
3479
3237
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3480
(4 + axutil_strlen(p_prefix) +
3481
axutil_strlen("ramdiskId")));
3238
(4 + axutil_strlen(p_prefix) +
3239
axutil_strlen("ramdiskId")));
3483
3241
/* axutil_strlen("<:>") + 1 = 4 */
3484
3242
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3485
3243
(5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskId")));
3486
3244
/* axutil_strlen("</:>") + 1 = 5 */
3494
3252
* parsing ramdiskId element
3499
3257
sprintf(start_input_str, "<%s%sramdiskId>",
3500
3258
p_prefix?p_prefix:"",
3501
3259
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3503
3261
start_input_str_len = axutil_strlen(start_input_str);
3504
3262
sprintf(end_input_str, "</%s%sramdiskId>",
3505
3263
p_prefix?p_prefix:"",
3506
3264
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3507
3265
end_input_str_len = axutil_strlen(end_input_str);
3509
text_value_7 = _ncRunInstanceType->property_ramdiskId;
3267
text_value_8 = _ncRunInstanceType->property_ramdiskId;
3511
3269
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3514
text_value_7_temp = axutil_xml_quote_string(env, text_value_7, AXIS2_TRUE);
3515
if (text_value_7_temp)
3272
text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
3273
if (text_value_8_temp)
3517
axutil_stream_write(stream, env, text_value_7_temp, axutil_strlen(text_value_7_temp));
3518
AXIS2_FREE(env->allocator, text_value_7_temp);
3275
axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
3276
AXIS2_FREE(env->allocator, text_value_8_temp);
3522
axutil_stream_write(stream, env, text_value_7, axutil_strlen(text_value_7));
3280
axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
3525
3283
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3528
3286
AXIS2_FREE(env->allocator,start_input_str);
3529
3287
AXIS2_FREE(env->allocator,end_input_str);
3533
3291
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3535
3293
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3536
3294
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3537
3295
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3539
3297
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3540
3298
"http://eucalyptus.ucsb.edu/",
3545
3303
if (!_ncRunInstanceType->is_valid_imageURL)
3549
3307
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property imageURL");
3555
3313
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3556
(4 + axutil_strlen(p_prefix) +
3557
axutil_strlen("imageURL")));
3314
(4 + axutil_strlen(p_prefix) +
3315
axutil_strlen("imageURL")));
3559
3317
/* axutil_strlen("<:>") + 1 = 4 */
3560
3318
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3561
3319
(5 + axutil_strlen(p_prefix) + axutil_strlen("imageURL")));
3562
3320
/* axutil_strlen("</:>") + 1 = 5 */
3570
3328
* parsing imageURL element
3575
3333
sprintf(start_input_str, "<%s%simageURL>",
3576
3334
p_prefix?p_prefix:"",
3577
3335
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3579
3337
start_input_str_len = axutil_strlen(start_input_str);
3580
3338
sprintf(end_input_str, "</%s%simageURL>",
3581
3339
p_prefix?p_prefix:"",
3582
3340
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3583
3341
end_input_str_len = axutil_strlen(end_input_str);
3585
text_value_8 = _ncRunInstanceType->property_imageURL;
3343
text_value_9 = _ncRunInstanceType->property_imageURL;
3587
3345
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3590
text_value_8_temp = axutil_xml_quote_string(env, text_value_8, AXIS2_TRUE);
3591
if (text_value_8_temp)
3348
text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
3349
if (text_value_9_temp)
3593
axutil_stream_write(stream, env, text_value_8_temp, axutil_strlen(text_value_8_temp));
3594
AXIS2_FREE(env->allocator, text_value_8_temp);
3351
axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
3352
AXIS2_FREE(env->allocator, text_value_9_temp);
3598
axutil_stream_write(stream, env, text_value_8, axutil_strlen(text_value_8));
3356
axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
3601
3359
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3604
3362
AXIS2_FREE(env->allocator,start_input_str);
3605
3363
AXIS2_FREE(env->allocator,end_input_str);
3609
3367
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3611
3369
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3612
3370
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3613
3371
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3615
3373
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3616
3374
"http://eucalyptus.ucsb.edu/",
3621
3379
if (!_ncRunInstanceType->is_valid_kernelURL)
3625
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property kernelURL");
3382
/* no need to complain for minoccurs=0 element */
3631
3388
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3632
(4 + axutil_strlen(p_prefix) +
3633
axutil_strlen("kernelURL")));
3389
(4 + axutil_strlen(p_prefix) +
3390
axutil_strlen("kernelURL")));
3635
3392
/* axutil_strlen("<:>") + 1 = 4 */
3636
3393
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3637
3394
(5 + axutil_strlen(p_prefix) + axutil_strlen("kernelURL")));
3638
3395
/* axutil_strlen("</:>") + 1 = 5 */
3646
3403
* parsing kernelURL element
3651
3408
sprintf(start_input_str, "<%s%skernelURL>",
3652
3409
p_prefix?p_prefix:"",
3653
3410
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3655
3412
start_input_str_len = axutil_strlen(start_input_str);
3656
3413
sprintf(end_input_str, "</%s%skernelURL>",
3657
3414
p_prefix?p_prefix:"",
3658
3415
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3659
3416
end_input_str_len = axutil_strlen(end_input_str);
3661
text_value_9 = _ncRunInstanceType->property_kernelURL;
3418
text_value_10 = _ncRunInstanceType->property_kernelURL;
3663
3420
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3666
text_value_9_temp = axutil_xml_quote_string(env, text_value_9, AXIS2_TRUE);
3667
if (text_value_9_temp)
3423
text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
3424
if (text_value_10_temp)
3669
axutil_stream_write(stream, env, text_value_9_temp, axutil_strlen(text_value_9_temp));
3670
AXIS2_FREE(env->allocator, text_value_9_temp);
3426
axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
3427
AXIS2_FREE(env->allocator, text_value_10_temp);
3674
axutil_stream_write(stream, env, text_value_9, axutil_strlen(text_value_9));
3431
axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
3677
3434
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3680
3437
AXIS2_FREE(env->allocator,start_input_str);
3681
3438
AXIS2_FREE(env->allocator,end_input_str);
3685
3442
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3687
3444
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3688
3445
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3689
3446
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3691
3448
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3692
3449
"http://eucalyptus.ucsb.edu/",
3697
3454
if (!_ncRunInstanceType->is_valid_ramdiskURL)
3700
3457
/* no need to complain for minoccurs=0 element */
3706
3463
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3707
(4 + axutil_strlen(p_prefix) +
3708
axutil_strlen("ramdiskURL")));
3464
(4 + axutil_strlen(p_prefix) +
3465
axutil_strlen("ramdiskURL")));
3710
3467
/* axutil_strlen("<:>") + 1 = 4 */
3711
3468
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3712
3469
(5 + axutil_strlen(p_prefix) + axutil_strlen("ramdiskURL")));
3713
3470
/* axutil_strlen("</:>") + 1 = 5 */
3721
3478
* parsing ramdiskURL element
3726
3483
sprintf(start_input_str, "<%s%sramdiskURL>",
3727
3484
p_prefix?p_prefix:"",
3728
3485
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3730
3487
start_input_str_len = axutil_strlen(start_input_str);
3731
3488
sprintf(end_input_str, "</%s%sramdiskURL>",
3732
3489
p_prefix?p_prefix:"",
3733
3490
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3734
3491
end_input_str_len = axutil_strlen(end_input_str);
3736
text_value_10 = _ncRunInstanceType->property_ramdiskURL;
3738
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3741
text_value_10_temp = axutil_xml_quote_string(env, text_value_10, AXIS2_TRUE);
3742
if (text_value_10_temp)
3744
axutil_stream_write(stream, env, text_value_10_temp, axutil_strlen(text_value_10_temp));
3745
AXIS2_FREE(env->allocator, text_value_10_temp);
3749
axutil_stream_write(stream, env, text_value_10, axutil_strlen(text_value_10));
3752
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3755
AXIS2_FREE(env->allocator,start_input_str);
3756
AXIS2_FREE(env->allocator,end_input_str);
3760
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3762
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3763
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3764
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3766
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3767
"http://eucalyptus.ucsb.edu/",
3493
text_value_11 = _ncRunInstanceType->property_ramdiskURL;
3495
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3498
text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE);
3499
if (text_value_11_temp)
3501
axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp));
3502
AXIS2_FREE(env->allocator, text_value_11_temp);
3506
axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11));
3509
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3512
AXIS2_FREE(env->allocator,start_input_str);
3513
AXIS2_FREE(env->allocator,end_input_str);
3517
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3519
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3520
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3521
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3523
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3524
"http://eucalyptus.ucsb.edu/",
3529
if (!_ncRunInstanceType->is_valid_reservationId)
3533
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId");
3539
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3540
(4 + axutil_strlen(p_prefix) +
3541
axutil_strlen("reservationId")));
3543
/* axutil_strlen("<:>") + 1 = 4 */
3544
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3545
(5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
3546
/* axutil_strlen("</:>") + 1 = 5 */
3554
* parsing reservationId element
3559
sprintf(start_input_str, "<%s%sreservationId>",
3560
p_prefix?p_prefix:"",
3561
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3563
start_input_str_len = axutil_strlen(start_input_str);
3564
sprintf(end_input_str, "</%s%sreservationId>",
3565
p_prefix?p_prefix:"",
3566
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3567
end_input_str_len = axutil_strlen(end_input_str);
3569
text_value_12 = _ncRunInstanceType->property_reservationId;
3571
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3574
text_value_12_temp = axutil_xml_quote_string(env, text_value_12, AXIS2_TRUE);
3575
if (text_value_12_temp)
3577
axutil_stream_write(stream, env, text_value_12_temp, axutil_strlen(text_value_12_temp));
3578
AXIS2_FREE(env->allocator, text_value_12_temp);
3582
axutil_stream_write(stream, env, text_value_12, axutil_strlen(text_value_12));
3585
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3588
AXIS2_FREE(env->allocator,start_input_str);
3589
AXIS2_FREE(env->allocator,end_input_str);
3593
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3595
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3596
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3597
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3599
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3600
"http://eucalyptus.ucsb.edu/",
3772
3605
if (!_ncRunInstanceType->is_valid_instanceId)
3776
3609
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceId");
3782
3615
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3783
(4 + axutil_strlen(p_prefix) +
3784
axutil_strlen("instanceId")));
3616
(4 + axutil_strlen(p_prefix) +
3617
axutil_strlen("instanceId")));
3786
3619
/* axutil_strlen("<:>") + 1 = 4 */
3787
3620
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3788
3621
(5 + axutil_strlen(p_prefix) + axutil_strlen("instanceId")));
3789
3622
/* axutil_strlen("</:>") + 1 = 5 */
3797
3630
* parsing instanceId element
3802
3635
sprintf(start_input_str, "<%s%sinstanceId>",
3803
3636
p_prefix?p_prefix:"",
3804
3637
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3806
3639
start_input_str_len = axutil_strlen(start_input_str);
3807
3640
sprintf(end_input_str, "</%s%sinstanceId>",
3808
3641
p_prefix?p_prefix:"",
3809
3642
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3810
3643
end_input_str_len = axutil_strlen(end_input_str);
3812
text_value_11 = _ncRunInstanceType->property_instanceId;
3645
text_value_13 = _ncRunInstanceType->property_instanceId;
3814
3647
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3817
text_value_11_temp = axutil_xml_quote_string(env, text_value_11, AXIS2_TRUE);
3818
if (text_value_11_temp)
3650
text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE);
3651
if (text_value_13_temp)
3820
axutil_stream_write(stream, env, text_value_11_temp, axutil_strlen(text_value_11_temp));
3821
AXIS2_FREE(env->allocator, text_value_11_temp);
3653
axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp));
3654
AXIS2_FREE(env->allocator, text_value_13_temp);
3825
axutil_stream_write(stream, env, text_value_11, axutil_strlen(text_value_11));
3658
axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
3828
3661
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3831
3664
AXIS2_FREE(env->allocator,start_input_str);
3832
3665
AXIS2_FREE(env->allocator,end_input_str);
3836
3669
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3838
3671
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3839
3672
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3840
3673
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3842
3675
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3843
3676
"http://eucalyptus.ucsb.edu/",
3848
3681
if (!_ncRunInstanceType->is_valid_instanceType)
3852
3685
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property instanceType");
3858
3691
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3859
(4 + axutil_strlen(p_prefix) +
3860
axutil_strlen("instanceType")));
3692
(4 + axutil_strlen(p_prefix) +
3693
axutil_strlen("instanceType")));
3862
3695
/* axutil_strlen("<:>") + 1 = 4 */
3863
3696
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3864
3697
(5 + axutil_strlen(p_prefix) + axutil_strlen("instanceType")));
3865
3698
/* axutil_strlen("</:>") + 1 = 5 */
3873
3706
* parsing instanceType element
3878
3711
sprintf(start_input_str, "<%s%sinstanceType",
3879
3712
p_prefix?p_prefix:"",
3880
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3713
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3882
3715
start_input_str_len = axutil_strlen(start_input_str);
3883
3716
sprintf(end_input_str, "</%s%sinstanceType>",
3884
3717
p_prefix?p_prefix:"",
3885
3718
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3886
3719
end_input_str_len = axutil_strlen(end_input_str);
3888
3721
if(!adb_virtualMachineType_is_particle())
3890
3723
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3893
adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType,
3726
adb_virtualMachineType_serialize(_ncRunInstanceType->property_instanceType,
3894
3727
env, current_node, parent_element,
3895
3728
adb_virtualMachineType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
3897
3730
if(!adb_virtualMachineType_is_particle())
3899
3732
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3903
3736
AXIS2_FREE(env->allocator,start_input_str);
3904
3737
AXIS2_FREE(env->allocator,end_input_str);
3908
3741
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3910
3743
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3911
3744
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3912
3745
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3914
3747
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3915
3748
"http://eucalyptus.ucsb.edu/",
3920
3753
if (!_ncRunInstanceType->is_valid_keyName)
3924
3757
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property keyName");
3930
3763
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3931
(4 + axutil_strlen(p_prefix) +
3932
axutil_strlen("keyName")));
3764
(4 + axutil_strlen(p_prefix) +
3765
axutil_strlen("keyName")));
3934
3767
/* axutil_strlen("<:>") + 1 = 4 */
3935
3768
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3936
3769
(5 + axutil_strlen(p_prefix) + axutil_strlen("keyName")));
3937
3770
/* axutil_strlen("</:>") + 1 = 5 */
3945
3778
* parsing keyName element
3950
3783
sprintf(start_input_str, "<%s%skeyName>",
3951
3784
p_prefix?p_prefix:"",
3952
3785
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3954
3787
start_input_str_len = axutil_strlen(start_input_str);
3955
3788
sprintf(end_input_str, "</%s%skeyName>",
3956
3789
p_prefix?p_prefix:"",
3957
3790
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3958
3791
end_input_str_len = axutil_strlen(end_input_str);
3960
text_value_13 = _ncRunInstanceType->property_keyName;
3962
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3965
text_value_13_temp = axutil_xml_quote_string(env, text_value_13, AXIS2_TRUE);
3966
if (text_value_13_temp)
3968
axutil_stream_write(stream, env, text_value_13_temp, axutil_strlen(text_value_13_temp));
3969
AXIS2_FREE(env->allocator, text_value_13_temp);
3973
axutil_stream_write(stream, env, text_value_13, axutil_strlen(text_value_13));
3976
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3979
AXIS2_FREE(env->allocator,start_input_str);
3980
AXIS2_FREE(env->allocator,end_input_str);
3984
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3986
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3987
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3988
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3990
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3991
"http://eucalyptus.ucsb.edu/",
3996
if (!_ncRunInstanceType->is_valid_publicMacAddress)
4000
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property publicMacAddress");
4006
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4007
(4 + axutil_strlen(p_prefix) +
4008
axutil_strlen("publicMacAddress")));
4010
/* axutil_strlen("<:>") + 1 = 4 */
4011
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4012
(5 + axutil_strlen(p_prefix) + axutil_strlen("publicMacAddress")));
4013
/* axutil_strlen("</:>") + 1 = 5 */
4021
* parsing publicMacAddress element
4026
sprintf(start_input_str, "<%s%spublicMacAddress>",
4027
p_prefix?p_prefix:"",
4028
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4030
start_input_str_len = axutil_strlen(start_input_str);
4031
sprintf(end_input_str, "</%s%spublicMacAddress>",
4032
p_prefix?p_prefix:"",
4033
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4034
end_input_str_len = axutil_strlen(end_input_str);
4036
text_value_14 = _ncRunInstanceType->property_publicMacAddress;
4038
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4041
text_value_14_temp = axutil_xml_quote_string(env, text_value_14, AXIS2_TRUE);
4042
if (text_value_14_temp)
4044
axutil_stream_write(stream, env, text_value_14_temp, axutil_strlen(text_value_14_temp));
4045
AXIS2_FREE(env->allocator, text_value_14_temp);
4049
axutil_stream_write(stream, env, text_value_14, axutil_strlen(text_value_14));
4052
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4055
AXIS2_FREE(env->allocator,start_input_str);
4056
AXIS2_FREE(env->allocator,end_input_str);
4060
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4062
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4063
sprintf(p_prefix, "n%d", (*next_ns_index)++);
4064
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4066
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4067
"http://eucalyptus.ucsb.edu/",
4072
if (!_ncRunInstanceType->is_valid_privateMacAddress)
4076
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property privateMacAddress");
4082
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4083
(4 + axutil_strlen(p_prefix) +
4084
axutil_strlen("privateMacAddress")));
4086
/* axutil_strlen("<:>") + 1 = 4 */
4087
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4088
(5 + axutil_strlen(p_prefix) + axutil_strlen("privateMacAddress")));
4089
/* axutil_strlen("</:>") + 1 = 5 */
4097
* parsing privateMacAddress element
4102
sprintf(start_input_str, "<%s%sprivateMacAddress>",
4103
p_prefix?p_prefix:"",
4104
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4106
start_input_str_len = axutil_strlen(start_input_str);
4107
sprintf(end_input_str, "</%s%sprivateMacAddress>",
4108
p_prefix?p_prefix:"",
4109
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4110
end_input_str_len = axutil_strlen(end_input_str);
4112
text_value_15 = _ncRunInstanceType->property_privateMacAddress;
4114
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3793
text_value_15 = _ncRunInstanceType->property_keyName;
3795
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4117
3798
text_value_15_temp = axutil_xml_quote_string(env, text_value_15, AXIS2_TRUE);
4118
3799
if (text_value_15_temp)
4125
3806
axutil_stream_write(stream, env, text_value_15, axutil_strlen(text_value_15));
4128
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4131
AXIS2_FREE(env->allocator,start_input_str);
4132
AXIS2_FREE(env->allocator,end_input_str);
4136
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4138
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4139
sprintf(p_prefix, "n%d", (*next_ns_index)++);
4140
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4142
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4143
"http://eucalyptus.ucsb.edu/",
4148
if (!_ncRunInstanceType->is_valid_reservationId)
4152
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property reservationId");
4158
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4159
(4 + axutil_strlen(p_prefix) +
4160
axutil_strlen("reservationId")));
4162
/* axutil_strlen("<:>") + 1 = 4 */
4163
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4164
(5 + axutil_strlen(p_prefix) + axutil_strlen("reservationId")));
4165
/* axutil_strlen("</:>") + 1 = 5 */
4173
* parsing reservationId element
4178
sprintf(start_input_str, "<%s%sreservationId>",
4179
p_prefix?p_prefix:"",
4180
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4182
start_input_str_len = axutil_strlen(start_input_str);
4183
sprintf(end_input_str, "</%s%sreservationId>",
4184
p_prefix?p_prefix:"",
4185
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4186
end_input_str_len = axutil_strlen(end_input_str);
4188
text_value_16 = _ncRunInstanceType->property_reservationId;
4190
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4193
text_value_16_temp = axutil_xml_quote_string(env, text_value_16, AXIS2_TRUE);
4194
if (text_value_16_temp)
4196
axutil_stream_write(stream, env, text_value_16_temp, axutil_strlen(text_value_16_temp));
4197
AXIS2_FREE(env->allocator, text_value_16_temp);
4201
axutil_stream_write(stream, env, text_value_16, axutil_strlen(text_value_16));
4204
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4207
AXIS2_FREE(env->allocator,start_input_str);
4208
AXIS2_FREE(env->allocator,end_input_str);
4212
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4214
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4215
sprintf(p_prefix, "n%d", (*next_ns_index)++);
4216
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4218
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4219
"http://eucalyptus.ucsb.edu/",
4224
if (!_ncRunInstanceType->is_valid_vlan)
4228
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property vlan");
4234
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4235
(4 + axutil_strlen(p_prefix) +
4236
axutil_strlen("vlan")));
4238
/* axutil_strlen("<:>") + 1 = 4 */
4239
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4240
(5 + axutil_strlen(p_prefix) + axutil_strlen("vlan")));
4241
/* axutil_strlen("</:>") + 1 = 5 */
4249
* parsing vlan element
4254
sprintf(start_input_str, "<%s%svlan>",
4255
p_prefix?p_prefix:"",
4256
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4258
start_input_str_len = axutil_strlen(start_input_str);
4259
sprintf(end_input_str, "</%s%svlan>",
4260
p_prefix?p_prefix:"",
4261
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4262
end_input_str_len = axutil_strlen(end_input_str);
4264
sprintf (text_value_17, AXIS2_PRINTF_INT32_FORMAT_SPECIFIER, _ncRunInstanceType->property_vlan);
4266
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4268
axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17));
4270
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
4273
AXIS2_FREE(env->allocator,start_input_str);
4274
AXIS2_FREE(env->allocator,end_input_str);
4278
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
4280
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
4281
sprintf(p_prefix, "n%d", (*next_ns_index)++);
4282
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
4284
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
4285
"http://eucalyptus.ucsb.edu/",
3809
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3812
AXIS2_FREE(env->allocator,start_input_str);
3813
AXIS2_FREE(env->allocator,end_input_str);
3817
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3819
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3820
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3821
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3823
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3824
"http://eucalyptus.ucsb.edu/",
3829
if (!_ncRunInstanceType->is_valid_netParams)
3833
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Nil value found in non-nillable property netParams");
3839
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3840
(4 + axutil_strlen(p_prefix) +
3841
axutil_strlen("netParams")));
3843
/* axutil_strlen("<:>") + 1 = 4 */
3844
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3845
(5 + axutil_strlen(p_prefix) + axutil_strlen("netParams")));
3846
/* axutil_strlen("</:>") + 1 = 5 */
3854
* parsing netParams element
3859
sprintf(start_input_str, "<%s%snetParams",
3860
p_prefix?p_prefix:"",
3861
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3863
start_input_str_len = axutil_strlen(start_input_str);
3864
sprintf(end_input_str, "</%s%snetParams>",
3865
p_prefix?p_prefix:"",
3866
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
3867
end_input_str_len = axutil_strlen(end_input_str);
3869
if(!adb_netConfigType_is_particle())
3871
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3874
adb_netConfigType_serialize(_ncRunInstanceType->property_netParams,
3875
env, current_node, parent_element,
3876
adb_netConfigType_is_particle() || AXIS2_FALSE, namespaces, next_ns_index);
3878
if(!adb_netConfigType_is_particle())
3880
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3884
AXIS2_FREE(env->allocator,start_input_str);
3885
AXIS2_FREE(env->allocator,end_input_str);
3889
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3891
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3892
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3893
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3895
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3896
"http://eucalyptus.ucsb.edu/",
4290
3901
if (!_ncRunInstanceType->is_valid_userData)
4293
3904
/* no need to complain for minoccurs=0 element */
4299
3910
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4300
(4 + axutil_strlen(p_prefix) +
4301
axutil_strlen("userData")));
3911
(4 + axutil_strlen(p_prefix) +
3912
axutil_strlen("userData")));
4303
3914
/* axutil_strlen("<:>") + 1 = 4 */
4304
3915
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
4305
3916
(5 + axutil_strlen(p_prefix) + axutil_strlen("userData")));
4306
3917
/* axutil_strlen("</:>") + 1 = 5 */
4314
3925
* parsing userData element
4319
3930
sprintf(start_input_str, "<%s%suserData>",
4320
3931
p_prefix?p_prefix:"",
4321
3932
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4323
3934
start_input_str_len = axutil_strlen(start_input_str);
4324
3935
sprintf(end_input_str, "</%s%suserData>",
4325
3936
p_prefix?p_prefix:"",
4326
3937
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4327
3938
end_input_str_len = axutil_strlen(end_input_str);
4329
text_value_18 = _ncRunInstanceType->property_userData;
4331
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3940
text_value_17 = _ncRunInstanceType->property_userData;
3942
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
3945
text_value_17_temp = axutil_xml_quote_string(env, text_value_17, AXIS2_TRUE);
3946
if (text_value_17_temp)
3948
axutil_stream_write(stream, env, text_value_17_temp, axutil_strlen(text_value_17_temp));
3949
AXIS2_FREE(env->allocator, text_value_17_temp);
3953
axutil_stream_write(stream, env, text_value_17, axutil_strlen(text_value_17));
3956
axutil_stream_write(stream, env, end_input_str, end_input_str_len);
3959
AXIS2_FREE(env->allocator,start_input_str);
3960
AXIS2_FREE(env->allocator,end_input_str);
3964
if(!(p_prefix = (axis2_char_t*)axutil_hash_get(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING)))
3966
p_prefix = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof (axis2_char_t) * ADB_DEFAULT_NAMESPACE_PREFIX_LIMIT);
3967
sprintf(p_prefix, "n%d", (*next_ns_index)++);
3968
axutil_hash_set(namespaces, "http://eucalyptus.ucsb.edu/", AXIS2_HASH_KEY_STRING, p_prefix);
3970
axiom_element_declare_namespace_assume_param_ownership(parent_element, env, axiom_namespace_create (env,
3971
"http://eucalyptus.ucsb.edu/",
3976
if (!_ncRunInstanceType->is_valid_launchIndex)
3979
/* no need to complain for minoccurs=0 element */
3985
start_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3986
(4 + axutil_strlen(p_prefix) +
3987
axutil_strlen("launchIndex")));
3989
/* axutil_strlen("<:>") + 1 = 4 */
3990
end_input_str = (axis2_char_t*)AXIS2_MALLOC(env->allocator, sizeof(axis2_char_t) *
3991
(5 + axutil_strlen(p_prefix) + axutil_strlen("launchIndex")));
3992
/* axutil_strlen("</:>") + 1 = 5 */
4000
* parsing launchIndex element
4005
sprintf(start_input_str, "<%s%slaunchIndex>",
4006
p_prefix?p_prefix:"",
4007
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4009
start_input_str_len = axutil_strlen(start_input_str);
4010
sprintf(end_input_str, "</%s%slaunchIndex>",
4011
p_prefix?p_prefix:"",
4012
(p_prefix && axutil_strcmp(p_prefix, ""))?":":"");
4013
end_input_str_len = axutil_strlen(end_input_str);
4015
text_value_18 = _ncRunInstanceType->property_launchIndex;
4017
axutil_stream_write(stream, env, start_input_str, start_input_str_len);
4334
4020
text_value_18_temp = axutil_xml_quote_string(env, text_value_18, AXIS2_TRUE);
4335
4021
if (text_value_18_temp)
6048
5889
return adb_ncRunInstanceType_reset_keyName(_ncRunInstanceType, env);
6054
* getter for publicMacAddress.
6056
axis2_char_t* AXIS2_CALL
6057
adb_ncRunInstanceType_get_publicMacAddress(
6058
adb_ncRunInstanceType_t* _ncRunInstanceType,
6059
const axutil_env_t *env)
6062
AXIS2_ENV_CHECK(env, NULL);
6063
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6066
return _ncRunInstanceType->property_publicMacAddress;
6070
* setter for publicMacAddress
6072
axis2_status_t AXIS2_CALL
6073
adb_ncRunInstanceType_set_publicMacAddress(
6074
adb_ncRunInstanceType_t* _ncRunInstanceType,
6075
const axutil_env_t *env,
6076
const axis2_char_t* arg_publicMacAddress)
6080
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6081
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6083
if(_ncRunInstanceType->is_valid_publicMacAddress &&
6084
arg_publicMacAddress == _ncRunInstanceType->property_publicMacAddress)
6087
return AXIS2_SUCCESS;
6091
if(NULL == arg_publicMacAddress)
6093
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "publicMacAddress is being set to NULL, but it is not a nullable element");
6094
return AXIS2_FAILURE;
6096
adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env);
6099
if(NULL == arg_publicMacAddress)
6101
/* We are already done */
6102
return AXIS2_SUCCESS;
6104
_ncRunInstanceType->property_publicMacAddress = (axis2_char_t *)axutil_strdup(env, arg_publicMacAddress);
6105
if(NULL == _ncRunInstanceType->property_publicMacAddress)
6107
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for publicMacAddress");
6108
return AXIS2_FAILURE;
6110
_ncRunInstanceType->is_valid_publicMacAddress = AXIS2_TRUE;
6112
return AXIS2_SUCCESS;
6118
* resetter for publicMacAddress
6120
axis2_status_t AXIS2_CALL
6121
adb_ncRunInstanceType_reset_publicMacAddress(
6122
adb_ncRunInstanceType_t* _ncRunInstanceType,
6123
const axutil_env_t *env)
6127
void *element = NULL;
6129
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6130
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6136
if(_ncRunInstanceType->property_publicMacAddress != NULL)
6140
AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_publicMacAddress);
6141
_ncRunInstanceType->property_publicMacAddress = NULL;
6146
_ncRunInstanceType->is_valid_publicMacAddress = AXIS2_FALSE;
6147
return AXIS2_SUCCESS;
6151
* Check whether publicMacAddress is nill
6153
axis2_bool_t AXIS2_CALL
6154
adb_ncRunInstanceType_is_publicMacAddress_nil(
6155
adb_ncRunInstanceType_t* _ncRunInstanceType,
6156
const axutil_env_t *env)
6158
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6159
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6161
return !_ncRunInstanceType->is_valid_publicMacAddress;
6165
* Set publicMacAddress to nill (currently the same as reset)
6167
axis2_status_t AXIS2_CALL
6168
adb_ncRunInstanceType_set_publicMacAddress_nil(
6169
adb_ncRunInstanceType_t* _ncRunInstanceType,
6170
const axutil_env_t *env)
6172
return adb_ncRunInstanceType_reset_publicMacAddress(_ncRunInstanceType, env);
6178
* getter for privateMacAddress.
6180
axis2_char_t* AXIS2_CALL
6181
adb_ncRunInstanceType_get_privateMacAddress(
6182
adb_ncRunInstanceType_t* _ncRunInstanceType,
6183
const axutil_env_t *env)
6186
AXIS2_ENV_CHECK(env, NULL);
6187
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6190
return _ncRunInstanceType->property_privateMacAddress;
6194
* setter for privateMacAddress
6196
axis2_status_t AXIS2_CALL
6197
adb_ncRunInstanceType_set_privateMacAddress(
6198
adb_ncRunInstanceType_t* _ncRunInstanceType,
6199
const axutil_env_t *env,
6200
const axis2_char_t* arg_privateMacAddress)
6204
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6205
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6207
if(_ncRunInstanceType->is_valid_privateMacAddress &&
6208
arg_privateMacAddress == _ncRunInstanceType->property_privateMacAddress)
6211
return AXIS2_SUCCESS;
6215
if(NULL == arg_privateMacAddress)
6217
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "privateMacAddress is being set to NULL, but it is not a nullable element");
6218
return AXIS2_FAILURE;
6220
adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env);
6223
if(NULL == arg_privateMacAddress)
6225
/* We are already done */
6226
return AXIS2_SUCCESS;
6228
_ncRunInstanceType->property_privateMacAddress = (axis2_char_t *)axutil_strdup(env, arg_privateMacAddress);
6229
if(NULL == _ncRunInstanceType->property_privateMacAddress)
6231
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for privateMacAddress");
6232
return AXIS2_FAILURE;
6234
_ncRunInstanceType->is_valid_privateMacAddress = AXIS2_TRUE;
6236
return AXIS2_SUCCESS;
6242
* resetter for privateMacAddress
6244
axis2_status_t AXIS2_CALL
6245
adb_ncRunInstanceType_reset_privateMacAddress(
6246
adb_ncRunInstanceType_t* _ncRunInstanceType,
6247
const axutil_env_t *env)
6251
void *element = NULL;
6253
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6254
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6260
if(_ncRunInstanceType->property_privateMacAddress != NULL)
6264
AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_privateMacAddress);
6265
_ncRunInstanceType->property_privateMacAddress = NULL;
6270
_ncRunInstanceType->is_valid_privateMacAddress = AXIS2_FALSE;
6271
return AXIS2_SUCCESS;
6275
* Check whether privateMacAddress is nill
6277
axis2_bool_t AXIS2_CALL
6278
adb_ncRunInstanceType_is_privateMacAddress_nil(
6279
adb_ncRunInstanceType_t* _ncRunInstanceType,
6280
const axutil_env_t *env)
6282
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6283
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6285
return !_ncRunInstanceType->is_valid_privateMacAddress;
6289
* Set privateMacAddress to nill (currently the same as reset)
6291
axis2_status_t AXIS2_CALL
6292
adb_ncRunInstanceType_set_privateMacAddress_nil(
6293
adb_ncRunInstanceType_t* _ncRunInstanceType,
6294
const axutil_env_t *env)
6296
return adb_ncRunInstanceType_reset_privateMacAddress(_ncRunInstanceType, env);
6302
* getter for reservationId.
6304
axis2_char_t* AXIS2_CALL
6305
adb_ncRunInstanceType_get_reservationId(
6306
adb_ncRunInstanceType_t* _ncRunInstanceType,
6307
const axutil_env_t *env)
6310
AXIS2_ENV_CHECK(env, NULL);
6311
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
6314
return _ncRunInstanceType->property_reservationId;
6318
* setter for reservationId
6320
axis2_status_t AXIS2_CALL
6321
adb_ncRunInstanceType_set_reservationId(
6322
adb_ncRunInstanceType_t* _ncRunInstanceType,
6323
const axutil_env_t *env,
6324
const axis2_char_t* arg_reservationId)
6328
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6329
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6331
if(_ncRunInstanceType->is_valid_reservationId &&
6332
arg_reservationId == _ncRunInstanceType->property_reservationId)
6335
return AXIS2_SUCCESS;
6339
if(NULL == arg_reservationId)
6341
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "reservationId is being set to NULL, but it is not a nullable element");
6342
return AXIS2_FAILURE;
6344
adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
6347
if(NULL == arg_reservationId)
6349
/* We are already done */
6350
return AXIS2_SUCCESS;
6352
_ncRunInstanceType->property_reservationId = (axis2_char_t *)axutil_strdup(env, arg_reservationId);
6353
if(NULL == _ncRunInstanceType->property_reservationId)
6355
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Error allocating memeory for reservationId");
6356
return AXIS2_FAILURE;
6358
_ncRunInstanceType->is_valid_reservationId = AXIS2_TRUE;
6360
return AXIS2_SUCCESS;
6366
* resetter for reservationId
6368
axis2_status_t AXIS2_CALL
6369
adb_ncRunInstanceType_reset_reservationId(
6370
adb_ncRunInstanceType_t* _ncRunInstanceType,
6371
const axutil_env_t *env)
6375
void *element = NULL;
6377
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6378
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6384
if(_ncRunInstanceType->property_reservationId != NULL)
6388
AXIS2_FREE(env-> allocator, _ncRunInstanceType->property_reservationId);
6389
_ncRunInstanceType->property_reservationId = NULL;
6394
_ncRunInstanceType->is_valid_reservationId = AXIS2_FALSE;
6395
return AXIS2_SUCCESS;
6399
* Check whether reservationId is nill
6401
axis2_bool_t AXIS2_CALL
6402
adb_ncRunInstanceType_is_reservationId_nil(
6403
adb_ncRunInstanceType_t* _ncRunInstanceType,
6404
const axutil_env_t *env)
6406
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6407
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6409
return !_ncRunInstanceType->is_valid_reservationId;
6413
* Set reservationId to nill (currently the same as reset)
6415
axis2_status_t AXIS2_CALL
6416
adb_ncRunInstanceType_set_reservationId_nil(
6417
adb_ncRunInstanceType_t* _ncRunInstanceType,
6418
const axutil_env_t *env)
6420
return adb_ncRunInstanceType_reset_reservationId(_ncRunInstanceType, env);
6429
adb_ncRunInstanceType_get_vlan(
6430
adb_ncRunInstanceType_t* _ncRunInstanceType,
6431
const axutil_env_t *env)
6434
AXIS2_ENV_CHECK(env, (int)0);
6435
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, (int)0);
6438
return _ncRunInstanceType->property_vlan;
6444
axis2_status_t AXIS2_CALL
6445
adb_ncRunInstanceType_set_vlan(
6446
adb_ncRunInstanceType_t* _ncRunInstanceType,
6447
const axutil_env_t *env,
6452
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6453
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6455
if(_ncRunInstanceType->is_valid_vlan &&
6456
arg_vlan == _ncRunInstanceType->property_vlan)
6459
return AXIS2_SUCCESS;
6462
adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env);
6464
_ncRunInstanceType->property_vlan = arg_vlan;
6465
_ncRunInstanceType->is_valid_vlan = AXIS2_TRUE;
6467
return AXIS2_SUCCESS;
6475
axis2_status_t AXIS2_CALL
6476
adb_ncRunInstanceType_reset_vlan(
6477
adb_ncRunInstanceType_t* _ncRunInstanceType,
6478
const axutil_env_t *env)
6482
void *element = NULL;
6484
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
6485
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
6488
_ncRunInstanceType->is_valid_vlan = AXIS2_FALSE;
6489
return AXIS2_SUCCESS;
6493
* Check whether vlan is nill
6495
axis2_bool_t AXIS2_CALL
6496
adb_ncRunInstanceType_is_vlan_nil(
6497
adb_ncRunInstanceType_t* _ncRunInstanceType,
6498
const axutil_env_t *env)
6500
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
6501
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
6503
return !_ncRunInstanceType->is_valid_vlan;
6507
* Set vlan to nill (currently the same as reset)
6509
axis2_status_t AXIS2_CALL
6510
adb_ncRunInstanceType_set_vlan_nil(
6511
adb_ncRunInstanceType_t* _ncRunInstanceType,
6512
const axutil_env_t *env)
6514
return adb_ncRunInstanceType_reset_vlan(_ncRunInstanceType, env);
5895
* getter for netParams.
5897
adb_netConfigType_t* AXIS2_CALL
5898
adb_ncRunInstanceType_get_netParams(
5899
adb_ncRunInstanceType_t* _ncRunInstanceType,
5900
const axutil_env_t *env)
5903
AXIS2_ENV_CHECK(env, NULL);
5904
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, NULL);
5907
return _ncRunInstanceType->property_netParams;
5911
* setter for netParams
5913
axis2_status_t AXIS2_CALL
5914
adb_ncRunInstanceType_set_netParams(
5915
adb_ncRunInstanceType_t* _ncRunInstanceType,
5916
const axutil_env_t *env,
5917
adb_netConfigType_t* arg_netParams)
5921
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5922
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5924
if(_ncRunInstanceType->is_valid_netParams &&
5925
arg_netParams == _ncRunInstanceType->property_netParams)
5928
return AXIS2_SUCCESS;
5932
if(NULL == arg_netParams)
5934
AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "netParams is being set to NULL, but it is not a nullable element");
5935
return AXIS2_FAILURE;
5937
adb_ncRunInstanceType_reset_netParams(_ncRunInstanceType, env);
5940
if(NULL == arg_netParams)
5942
/* We are already done */
5943
return AXIS2_SUCCESS;
5945
_ncRunInstanceType->property_netParams = arg_netParams;
5946
_ncRunInstanceType->is_valid_netParams = AXIS2_TRUE;
5948
return AXIS2_SUCCESS;
5954
* resetter for netParams
5956
axis2_status_t AXIS2_CALL
5957
adb_ncRunInstanceType_reset_netParams(
5958
adb_ncRunInstanceType_t* _ncRunInstanceType,
5959
const axutil_env_t *env)
5963
void *element = NULL;
5965
AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
5966
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_FAILURE);
5972
if(_ncRunInstanceType->property_netParams != NULL)
5976
adb_netConfigType_free(_ncRunInstanceType->property_netParams, env);
5977
_ncRunInstanceType->property_netParams = NULL;
5982
_ncRunInstanceType->is_valid_netParams = AXIS2_FALSE;
5983
return AXIS2_SUCCESS;
5987
* Check whether netParams is nill
5989
axis2_bool_t AXIS2_CALL
5990
adb_ncRunInstanceType_is_netParams_nil(
5991
adb_ncRunInstanceType_t* _ncRunInstanceType,
5992
const axutil_env_t *env)
5994
AXIS2_ENV_CHECK(env, AXIS2_TRUE);
5995
AXIS2_PARAM_CHECK(env->error, _ncRunInstanceType, AXIS2_TRUE);
5997
return !_ncRunInstanceType->is_valid_netParams;
6001
* Set netParams to nill (currently the same as reset)
6003
axis2_status_t AXIS2_CALL
6004
adb_ncRunInstanceType_set_netParams_nil(
6005
adb_ncRunInstanceType_t* _ncRunInstanceType,
6006
const axutil_env_t *env)
6008
return adb_ncRunInstanceType_reset_netParams(_ncRunInstanceType, env);
6520
6014
* getter for userData.