Changeset 13096 for trunk/Nebulous/nebclient/src/soapC.c
- Timestamp:
- Apr 30, 2007, 5:06:36 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/nebclient/src/soapC.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/nebclient/src/soapC.c
r13078 r13096 12 12 SOAP_BEGIN_NAMESPACE(soap) 13 13 14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.2 2007-0 4-28 01:32:49GMT")14 SOAP_SOURCE_STAMP("@(#) soapC.c ver 2.7.2 2007-05-01 02:53:36 GMT") 15 15 16 16 … … 2484 2484 soap_embedded(soap, &a->key, SOAP_TYPE_string); 2485 2485 soap_serialize_string(soap, &a->key); 2486 soap_embedded(soap, &a->class_, SOAP_TYPE_int);2487 2486 soap_embedded(soap, &a->volume, SOAP_TYPE_string); 2488 2487 soap_serialize_string(soap, &a->volume); 2489 soap_embedded(soap, &a->comment, SOAP_TYPE_string);2490 soap_serialize_string(soap, &a->comment);2491 2488 } 2492 2489 … … 2495 2492 (void)soap; (void)a; /* appease -Wall -Werror */ 2496 2493 soap_default_string(soap, &a->key); 2497 soap_default_int(soap, &a->class_);2498 2494 soap_default_string(soap, &a->volume); 2499 soap_default_string(soap, &a->comment);2500 2495 } 2501 2496 … … 2512 2507 soap_element_begin_out(soap, tag, soap_embedded_id(soap, id, a, SOAP_TYPE_ns1__create_USCOREobject), type); 2513 2508 soap_out_string(soap, "key", -1, &a->key, ""); 2514 soap_out_int(soap, "class", -1, &a->class_, "");2515 2509 soap_out_string(soap, "volume", -1, &a->volume, ""); 2516 soap_out_string(soap, "comment", -1, &a->comment, "");2517 2510 soap_element_end_out(soap, tag); 2518 2511 return SOAP_OK; … … 2528 2521 SOAP_FMAC3 struct ns1__create_USCOREobject * SOAP_FMAC4 soap_in_ns1__create_USCOREobject(struct soap *soap, const char *tag, struct ns1__create_USCOREobject *a, const char *type) 2529 2522 { 2530 short soap_flag_key = 1, soap_flag_ class_ = 1, soap_flag_volume = 1, soap_flag_comment= 1;2523 short soap_flag_key = 1, soap_flag_volume = 1; 2531 2524 if (soap_element_begin_in(soap, tag, 0)) 2532 2525 return NULL; … … 2548 2541 continue; 2549 2542 } 2550 if (soap_flag_class_ && soap->error == SOAP_TAG_MISMATCH)2551 if (soap_in_int(soap, "class", &a->class_, ""))2552 { soap_flag_class_ = 0;2553 continue;2554 }2555 2543 if (soap_flag_volume && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG)) 2556 2544 if (soap_in_string(soap, "volume", &a->volume, "")) 2557 2545 { soap_flag_volume = 0; 2558 continue;2559 }2560 if (soap_flag_comment && (soap->error == SOAP_TAG_MISMATCH || soap->error == SOAP_NO_TAG))2561 if (soap_in_string(soap, "comment", &a->comment, ""))2562 { soap_flag_comment = 0;2563 2546 continue; 2564 2547 } … … 2569 2552 if (soap->error) 2570 2553 return NULL; 2571 }2572 if ((soap->mode & SOAP_XML_STRICT) && (soap_flag_class_))2573 { soap->error = SOAP_OCCURS;2574 return NULL;2575 2554 } 2576 2555 if (soap_element_end_in(soap, tag))
Note:
See TracChangeset
for help on using the changeset viewer.
