1
2 #include "NotificationConsumerFactoryService.h"
3 #include "globus_xsd_type_registry.h"
4
5
6 #include "wsa_ReferenceParameters.h"
7 #include "wsa_ReferenceParametersType.h"
8 #include "wsa_ProblemHeaderQName.h"
9 #include "wsa_AttributedQNameType.h"
10 #include "wsa_EndpointReference.h"
11 #include "wsa_EndpointReferenceType.h"
12 #include "wsa_MessageID.h"
13 #include "wsa_AttributedURIType.h"
14 #include "wsa_To.h"
15 #include "wsa_Action.h"
16 #include "wsa_ProblemAction.h"
17 #include "wsa_ProblemActionType.h"
18 #include "wsa_RelatesTo.h"
19 #include "wsa_RelatesToType.h"
20 #include "wsa_ProblemIRI.h"
21 #include "wsa_From.h"
22 #include "wsa_FaultTo.h"
23 #include "wsa_RetryAfter.h"
24 #include "wsa_AttributedUnsignedLongType.h"
25 #include "wsa_Metadata.h"
26 #include "wsa_MetadataType.h"
27 #include "wsa_ReplyTo.h"
28 #include "createNotificationConsumerResponse.h"
29 #include "createNotificationConsumer.h"
30 #include "createNotificationConsumerType.h"
31 #include "wsa_RelationshipType.h"
32 #include "wsa_RelationshipTypeOpenEnum.h"
33 #include "wsa_FaultCodesType.h"
34 #include "wsa_FaultCodesOpenEnumType.h"
35
36 /* ResourceProperty element QName -> type includes */
37
38
39 /* ResourceProperty element QNames */
40
41
42 typedef struct
43 {
44 xsd_QName * element;
45 xsd_QName * type;
46 }
47 NotificationConsumerFactoryService_element_t;
48
49 /* Elements */
50 static
51 NotificationConsumerFactoryService_element_t NotificationConsumerFactoryService_l_elements[] = {
52 { &wsa_ReferenceParameters_qname, &wsa_ReferenceParametersType_qname },
53 { &wsa_ProblemHeaderQName_qname, &wsa_AttributedQNameType_qname },
54 { &wsa_EndpointReference_qname, &wsa_EndpointReferenceType_qname },
55 { &wsa_MessageID_qname, &wsa_AttributedURIType_qname },
56 { &wsa_To_qname, &wsa_AttributedURIType_qname },
57 { &wsa_Action_qname, &wsa_AttributedURIType_qname },
58 { &wsa_ProblemAction_qname, &wsa_ProblemActionType_qname },
59 { &wsa_RelatesTo_qname, &wsa_RelatesToType_qname },
60 { &wsa_ProblemIRI_qname, &wsa_AttributedURIType_qname },
61 { &wsa_From_qname, &wsa_EndpointReferenceType_qname },
62 { &wsa_FaultTo_qname, &wsa_EndpointReferenceType_qname },
63 { &wsa_RetryAfter_qname, &wsa_AttributedUnsignedLongType_qname },
64 { &wsa_Metadata_qname, &wsa_MetadataType_qname },
65 { &wsa_ReplyTo_qname, &wsa_EndpointReferenceType_qname },
66 { &createNotificationConsumerResponse_qname, &wsa_EndpointReferenceType_qname },
67 { &createNotificationConsumer_qname, &createNotificationConsumerType_qname },
68 /* ResourceProperty element QName -> type info mappings */
69
70 { NULL, NULL }
71 };
72
73 /* Attributes */
74 static
75 NotificationConsumerFactoryService_element_t NotificationConsumerFactoryService_l_attributes[] = {
76
77 { NULL, NULL }
78 };
79
80 static globus_xsd_type_info_t NotificationConsumerFactoryService_l_types[] = {
81 /* Types */
82 &wsa_EndpointReferenceType_info,
83 &createNotificationConsumerType_info,
84 &wsa_RelationshipType_info,
85 &wsa_AttributedQNameType_info,
86 &wsa_RelationshipTypeOpenEnum_info,
87 &wsa_AttributedURIType_info,
88 &wsa_MetadataType_info,
89 &wsa_RelatesToType_info,
90 &wsa_FaultCodesType_info,
91 &wsa_FaultCodesOpenEnumType_info,
92 &wsa_AttributedUnsignedLongType_info,
93 &wsa_ReferenceParametersType_info,
94 &wsa_ProblemActionType_info,
95
96 NULL
97 };
98
99 globus_result_t
100 NotificationConsumerFactoryService_registry_add_types(
101 globus_xsd_type_registry_t registry)
102 0 {
103 0 globus_result_t result = GLOBUS_SUCCESS;
104 0 globus_xsd_type_info_t * type = NotificationConsumerFactoryService_l_types;
105 0 NotificationConsumerFactoryService_element_t * element = NotificationConsumerFactoryService_l_elements;
106 0 NotificationConsumerFactoryService_element_t * attribute = NotificationConsumerFactoryService_l_attributes;
107 GlobusFuncName(NotificationConsumerFactoryService_registry_add_types);
108 0 GlobusSoapMessageDebugEnter();
109
110 0 while (*type != NULL)
111 {
112 0 result = globus_xsd_type_registry_insert(
113 registry,
114 *type,
115 NULL);
116
117 0 if (result != GLOBUS_SUCCESS)
118 {
119 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
120 result,
121 (*type)->type->Namespace,
122 (*type)->type->local);
123
124 0 goto exit;
125 }
126 0 type++;
127 }
128
129 0 while (element->element != NULL)
130 {
131 0 result = globus_xsd_type_registry_insert_element(
132 registry,
133 element->element,
134 element->type);
135 0 if (result != GLOBUS_SUCCESS)
136 {
137 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
138 result,
139 element->element->Namespace,
140 element->element->local);
141
142 0 goto exit;
143 }
144 0 element++;
145 }
146
147 0 while (attribute->element != NULL)
148 {
149 0 result = globus_xsd_type_registry_insert_attribute(
150 registry,
151 attribute->element,
152 attribute->type);
153 0 if (result != GLOBUS_SUCCESS)
154 {
155 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
156 result,
157 attribute->element->Namespace,
158 attribute->element->local);
159
160 0 goto exit;
161 }
162 0 attribute++;
163 }
164
165
166 0 exit:
167
168 0 GlobusSoapMessageDebugExit();
169 0 return result;
170 }
171 /* NotificationConsumerFactoryService_registry_add_types() */
172
173 globus_result_t
174 NotificationConsumerFactoryService_registry_remove_types(
175 globus_xsd_type_registry_t registry)
176 0 {
177 0 globus_result_t result = GLOBUS_SUCCESS;
178 0 globus_xsd_type_info_t * type = NotificationConsumerFactoryService_l_types;
179 0 NotificationConsumerFactoryService_element_t * element = NotificationConsumerFactoryService_l_elements;
180 0 NotificationConsumerFactoryService_element_t * attribute = NotificationConsumerFactoryService_l_attributes;
181 GlobusFuncName(NotificationConsumerFactoryService_registry_remove_types);
182 0 GlobusSoapMessageDebugEnter();
183
184
185 0 while (*type != NULL)
186 {
187 0 result = globus_xsd_type_registry_remove(
188 registry,
189 (*type)->type,
190 NULL);
191
192 0 if(result != GLOBUS_SUCCESS)
193 {
194 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
195 result,
196 (*type)->type->Namespace,
197 (*type)->type->local);
198 0 goto exit;
199 }
200 0 type++;
201 }
202 0 while (element->element != NULL)
203 {
204 0 result = globus_xsd_type_registry_remove_element(
205 registry,
206 element->element);
207 0 if (result != GLOBUS_SUCCESS)
208 {
209 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
210 result,
211 element->element->Namespace,
212 element->element->local);
213
214 0 goto exit;
215 }
216 0 element++;
217 }
218
219 0 while (attribute->element != NULL)
220 {
221 0 result = globus_xsd_type_registry_remove_attribute(
222 registry,
223 attribute->element);
224 0 if (result != GLOBUS_SUCCESS)
225 {
226 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
227 result,
228 attribute->element->Namespace,
229 attribute->element->local);
230
231 0 goto exit;
232 }
233 0 attribute++;
234 }
235
236 0 exit:
237
238 0 GlobusSoapMessageDebugExit();
239 0 return result;
240 }