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, gMonth);
22 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_gMonth);
23 161 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_gMonth);
24 0 GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_gMonth, gMonth);
25 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_gMonth);
26 19 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_gMonth);
27 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_gMonth);
28
29 globus_result_t
30 xsd_gMonth_serialize_contents(
31     const xsd_QName *                   element,
32     const xsd_gMonth *                instance,
33     globus_soap_message_handle_t        soap_message_handle,
34     globus_xsd_element_options_t        options)
35 {
36 1     globus_result_t                     result = GLOBUS_SUCCESS;
37 1     GlobusFuncName(xsd_gMonth_serialize_contents);
38 1     GlobusSoapMessageDebugEnter();
39
40     /* serialize contents of type */
41 1     result = globus_soap_message_serialize_gMonth(
42         soap_message_handle, instance);
43
44 1     GlobusSoapMessageDebugExit();
45 1     return result;
46 }
47
48 globus_result_t
49 xsd_gMonth_deserialize_contents(
50     const xsd_QName *                   eqn,
51     xsd_gMonth *                      instance,
52     globus_soap_message_handle_t        soap_message_handle,
53     globus_xsd_element_options_t        options)
54 20 {
55 20     globus_result_t                     result = GLOBUS_SUCCESS;
56 20     GlobusFuncName(xsd_gMonth_deserialize_contents);
57 20     GlobusSoapMessageDebugEnter();
58     
59 20     result = globus_soap_message_deserialize_gMonth(
60         soap_message_handle, instance);
61
62 20     GlobusSoapMessageDebugExit();
63 20     return result;