1 /*
2  * Copyright 1999-2006 University of Chicago
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include "globus_i_xsd.h"
18 #include "globus_i_xsd_type_info.h"
19 #include "globus_soap_message.h"
20
21 GLOBUS_I_XSD_DEFINE_QNAME(xsd, dateTime);
22 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_dateTime);
23 21829590 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_dateTime);
24 0 GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_dateTime, dateTime);
25 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_dateTime);
26 2096724 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_dateTime);
27 1356655 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_dateTime);
28
29 globus_result_t
30 xsd_dateTime_serialize_contents(
31     const xsd_QName *                   element,
32     const xsd_dateTime *                instance,
33     globus_soap_message_handle_t        soap_message_handle,
34     globus_xsd_element_options_t        options)
35 {
36 493418     globus_result_t                     result = GLOBUS_SUCCESS;
37 493418     GlobusFuncName(xsd_dateTime_serialize_contents);
38 493418     GlobusSoapMessageDebugEnter();
39
40     /* serialize contents of type */
41 493418     result = globus_soap_message_serialize_dateTime(
42         soap_message_handle, instance);
43
44 493418     GlobusSoapMessageDebugExit();
45 493418     return result;
46 }
47
48 globus_result_t
49 xsd_dateTime_deserialize_contents(
50     const xsd_QName *                   eqn,
51     xsd_dateTime *                      instance,
52     globus_soap_message_handle_t        soap_message_handle,
53     globus_xsd_element_options_t        options)
54 740071 {
55 740071     globus_result_t                     result = GLOBUS_SUCCESS;
56 740071     GlobusFuncName(xsd_dateTime_deserialize_contents);
57 740071     GlobusSoapMessageDebugEnter();
58     
59 740071     result = globus_soap_message_deserialize_dateTime(
60         soap_message_handle, instance);
61
62 740071     GlobusSoapMessageDebugExit();
63 740071     return result;