| 1 | /* | |
| 2 | * Portions of this file Copyright 1999-2005 University of Chicago | |
| 3 | * Portions of this file Copyright 1999-2005 The University of Southern California. | |
| 4 | * | |
| 5 | * This file or a portion of this file is licensed under the | |
| 6 | * terms of the Globus Toolkit Public License, found at | |
| 7 | * http://www.globus.org/toolkit/download/license.html. | |
| 8 | * If you redistribute this file, with or without | |
| 9 | * modifications, you must include this notice in the file. | |
| 10 | */ | |
| 11 | ||
| 12 | #include "globus_i_xsd.h" | |
| 13 | #include "globus_i_xsd_type_info.h" | |
| 14 | #include "globus_soap_message.h" | |
| 15 | ||
| 16 | GLOBUS_I_XSD_DEFINE_QNAME(xsd, dateTime); | |
| 17 | GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_dateTime); | |
| 18 | 8879445 | GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_dateTime); |
| 19 | 0 | GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_dateTime, dateTime); |
| 20 | 0 | GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_dateTime); |
| 21 | 1480121 | GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_dateTime); |
| 22 | 986698 | GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_dateTime); |
| 23 | ||
| 24 | globus_result_t | |
| 25 | xsd_dateTime_serialize_contents( | |
| 26 | xsd_QName * element, | |
| 27 | xsd_dateTime * instance, | |
| 28 | globus_soap_message_handle_t soap_message_handle, | |
| 29 | globus_xsd_element_options_t options) | |
| 30 | { | |
| 31 | 493397 | globus_result_t result = GLOBUS_SUCCESS; |
| 32 | 493397 | GlobusFuncName(xsd_dateTime_serialize_contents); |
| 33 | 493397 | GlobusSoapMessageDebugEnter(); |
| 34 | ||
| 35 | /* serialize contents of type */ | |
| 36 | 493397 | result = globus_soap_message_serialize_dateTime( |
| 37 | soap_message_handle, instance); | |
| 38 | ||
| 39 | 493397 | GlobusSoapMessageDebugExit(); |
| 40 | 493397 | return result; |
| 41 | } | |
| 42 | ||
| 43 | globus_result_t | |
| 44 | xsd_dateTime_deserialize_contents( | |
| 45 | xsd_QName * eqn, | |
| 46 | xsd_dateTime * instance, | |
| 47 | globus_soap_message_handle_t soap_message_handle, | |
| 48 | globus_xsd_element_options_t options) | |
| 49 | 493396 | { |
| 50 | 493396 | globus_result_t result = GLOBUS_SUCCESS; |
| 51 | 493396 | GlobusFuncName(xsd_dateTime_deserialize_contents); |
| 52 | 493396 | GlobusSoapMessageDebugEnter(); |
| 53 | ||
| 54 | 493396 | result = globus_soap_message_deserialize_dateTime( |
| 55 | soap_message_handle, instance); | |
| 56 | ||
| 57 | 493396 | GlobusSoapMessageDebugExit(); |
| 58 | 493396 | return result; |