1
2 #include "RegistryService.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 "wsbf_BaseFault.h"
29 #include "wsbf_BaseFaultType.h"
30 #include "wsrp_QueryResourcePropertiesResponse.h"
31 #include "wsrp_QueryResourcePropertiesResponseType.h"
32 #include "wsrp_PutResourcePropertyDocumentResponse.h"
33 #include "wsrp_PutResourcePropertyDocumentResponseType.h"
34 #include "wsrp_UpdateResourcePropertiesRequestFailedFault.h"
35 #include "wsrp_UpdateResourcePropertiesRequestFailedFaultType.h"
36 #include "wsrp_DeleteResourceProperties.h"
37 #include "wsrp_DeleteResourcePropertiesType.h"
38 #include "wsrp_InvalidModificationFault.h"
39 #include "wsrp_InvalidModificationFaultType.h"
40 #include "wsrp_DeleteResourcePropertiesRequestFailedFault.h"
41 #include "wsrp_DeleteResourcePropertiesRequestFailedFaultType.h"
42 #include "wsrp_SetResourcePropertyRequestFailedFault.h"
43 #include "wsrp_SetResourcePropertyRequestFailedFaultType.h"
44 #include "wsrp_GetResourcePropertyResponse.h"
45 #include "wsrp_GetResourcePropertyResponseType.h"
46 #include "wsrp_DeleteResourcePropertiesResponse.h"
47 #include "wsrp_DeleteResourcePropertiesResponseType.h"
48 #include "wsrp_UpdateResourcePropertiesResponse.h"
49 #include "wsrp_UpdateResourcePropertiesResponseType.h"
50 #include "wsrp_GetResourcePropertyDocumentResponse.h"
51 #include "wsrp_GetResourcePropertyDocumentResponseType.h"
52 #include "wsrp_UnableToModifyResourcePropertyFault.h"
53 #include "wsrp_UnableToModifyResourcePropertyFaultType.h"
54 #include "wsrp_QueryExpressionRPDocument.h"
55 #include "wsrp_QueryExpressionRPDocumentType.h"
56 #include "wsrp_InvalidQueryExpressionFault.h"
57 #include "wsrp_InvalidQueryExpressionFaultType.h"
58 #include "wsrp_Delete.h"
59 #include "wsrp_DeleteType.h"
60 #include "wsrp_Insert.h"
61 #include "wsrp_InsertType.h"
62 #include "wsrp_QueryResourceProperties.h"
63 #include "wsrp_QueryResourcePropertiesType.h"
64 #include "wsrp_UpdateResourceProperties.h"
65 #include "wsrp_UpdateResourcePropertiesType.h"
66 #include "wsrp_PutResourcePropertyDocument.h"
67 #include "wsrp_PutResourcePropertyDocumentType.h"
68 #include "wsrp_UnknownQueryExpressionDialectFault.h"
69 #include "wsrp_UnknownQueryExpressionDialectFaultType.h"
70 #include "wsrp_SetResourcePropertiesResponse.h"
71 #include "wsrp_SetResourcePropertiesResponseType.h"
72 #include "wsrp_QueryExpression.h"
73 #include "wsrp_QueryExpressionType.h"
74 #include "wsrp_GetResourcePropertyDocument.h"
75 #include "wsrp_GetResourcePropertyDocumentType.h"
76 #include "wsrp_QueryExpressionDialect.h"
77 #include "xsd_anyURI.h"
78 #include "wsrp_InsertResourcePropertiesResponse.h"
79 #include "wsrp_InsertResourcePropertiesResponseType.h"
80 #include "wsrp_ResourcePropertyValueChangeNotification.h"
81 #include "wsrp_ResourcePropertyValueChangeNotificationType.h"
82 #include "wsrp_QueryEvaluationErrorFault.h"
83 #include "wsrp_QueryEvaluationErrorFaultType.h"
84 #include "wsrp_GetMultipleResourcePropertiesResponse.h"
85 #include "wsrp_GetMultipleResourcePropertiesResponseType.h"
86 #include "wsrp_SetResourceProperties.h"
87 #include "wsrp_SetResourcePropertiesType.h"
88 #include "wsrp_InsertResourcePropertiesRequestFailedFault.h"
89 #include "wsrp_InsertResourcePropertiesRequestFailedFaultType.h"
90 #include "wsrp_UnableToPutResourcePropertyDocumentFault.h"
91 #include "wsrp_UnableToPutResourcePropertyDocumentFaultType.h"
92 #include "wsrp_GetMultipleResourceProperties.h"
93 #include "wsrp_GetMultipleResourcePropertiesType.h"
94 #include "wsrp_GetResourceProperty.h"
95 #include "xsd_QName.h"
96 #include "wsrp_InvalidResourcePropertyQNameFault.h"
97 #include "wsrp_InvalidResourcePropertyQNameFaultType.h"
98 #include "wsrp_InsertResourceProperties.h"
99 #include "wsrp_InsertResourcePropertiesType.h"
100 #include "wsrp_Update.h"
101 #include "wsrp_UpdateType.h"
102 #include "wssg_MembershipContentRule.h"
103 #include "wssg_MembershipContentRuleType.h"
104 #include "wssg_MemberEPR.h"
105 #include "wssg_ServiceGroupEntryRP.h"
106 #include "wssg_ServiceGroupEntryRPType.h"
107 #include "wssg_EntryAdditionNotification.h"
108 #include "wssg_ServiceGroupModificationNotificationType.h"
109 #include "wssg_Entry.h"
110 #include "wssg_EntryType.h"
111 #include "wssg_AddResponse.h"
112 #include "wssg_AddResponseType.h"
113 #include "wssg_AddRefusedFault.h"
114 #include "wssg_AddRefusedFaultType.h"
115 #include "wssg_Content.h"
116 #include "wssg_ContentType.h"
117 #include "wssg_ServiceGroupRP.h"
118 #include "wssg_ServiceGroupRPType.h"
119 #include "wssg_EntryRemovalNotification.h"
120 #include "wssg_ServiceGroupRemovalNotificationType.h"
121 #include "wssg_ContentCreationFailedFault.h"
122 #include "wssg_ContentCreationFailedFaultType.h"
123 #include "wssg_UnsupportedMemberInterfaceFault.h"
124 #include "wssg_UnsupportedMemberInterfaceFaultType.h"
125 #include "wssg_ServiceGroupEPR.h"
126 #include "wssg_Add.h"
127 #include "wssg_AddType.h"
128 #include "wsr_ResourceUnknownFault.h"
129 #include "wsr_ResourceUnknownFaultType.h"
130 #include "wsr_ResourceUnavailableFault.h"
131 #include "wsr_ResourceUnavailableFaultType.h"
132 #include "RegistryEntryPortTypeGTWSDLResourceProperties.h"
133 #include "RegistryEntryPortTypeGTWSDLResourcePropertiesType.h"
134 #include "wsen_Renew.h"
135 #include "wsen_RenewType.h"
136 #include "wsen_PullResponse.h"
137 #include "wsen_PullResponseType.h"
138 #include "wsen_Release.h"
139 #include "wsen_ReleaseType.h"
140 #include "wsen_RenewResponse.h"
141 #include "wsen_RenewResponseType.h"
142 #include "wsen_Enumerate.h"
143 #include "wsen_EnumerateType.h"
144 #include "wsen_Pull.h"
145 #include "wsen_PullType.h"
146 #include "wsen_GetStatus.h"
147 #include "wsen_GetStatusType.h"
148 #include "wsen_GetStatusResponse.h"
149 #include "wsen_GetStatusResponseType.h"
150 #include "wsen_SupportedDialect.h"
151 #include "wsen_EnumerationEnd.h"
152 #include "wsen_EnumerationEndType.h"
153 #include "wsen_EnumerateResponse.h"
154 #include "wsen_EnumerateResponseType.h"
155 #include "RegistryPortTypeGTWSDLResourceProperties.h"
156 #include "wsa_RelationshipType.h"
157 #include "wsa_RelationshipTypeOpenEnum.h"
158 #include "wsa_FaultCodesType.h"
159 #include "wsa_FaultCodesOpenEnumType.h"
160 #include "wsrp_ResourcePropertyChangeFailureType.h"
161 #include "wssg_AbsoluteOrRelativeTimeType.h"
162 #include "wssg_MemberInterfacesType.h"
163 #include "wssg_RPDocType.h"
164 #include "wssg_ContentElementsType.h"
165 #include "wsen_FilterType.h"
166 #include "wsen_LanguageSpecificStringType.h"
167 #include "wsen_ItemListType.h"
168 #include "wsen_EnumerationContextType.h"
169 #include "wsen_OpenEnumerationEndCodeType.h"
170 #include "wsen_EnumerationEndCodeType.h"
171 #include "wsen_PositiveDurationType.h"
172 #include "wsen_NonNegativeDurationType.h"
173 #include "wsen_ExpirationType.h"
174
175 /* ResourceProperty element QName -> type includes */
176
177
178 /* ResourceProperty element QNames */
179
180
181 typedef struct
182 {
183 xsd_QName * element;
184 xsd_QName * type;
185 }
186 RegistryService_element_t;
187
188 /* Elements */
189 static
190 RegistryService_element_t RegistryService_l_elements[] = {
191 { &wsa_ReferenceParameters_qname, &wsa_ReferenceParametersType_qname },
192 { &wsa_ProblemHeaderQName_qname, &wsa_AttributedQNameType_qname },
193 { &wsa_EndpointReference_qname, &wsa_EndpointReferenceType_qname },
194 { &wsa_MessageID_qname, &wsa_AttributedURIType_qname },
195 { &wsa_To_qname, &wsa_AttributedURIType_qname },
196 { &wsa_Action_qname, &wsa_AttributedURIType_qname },
197 { &wsa_ProblemAction_qname, &wsa_ProblemActionType_qname },
198 { &wsa_RelatesTo_qname, &wsa_RelatesToType_qname },
199 { &wsa_ProblemIRI_qname, &wsa_AttributedURIType_qname },
200 { &wsa_From_qname, &wsa_EndpointReferenceType_qname },
201 { &wsa_FaultTo_qname, &wsa_EndpointReferenceType_qname },
202 { &wsa_RetryAfter_qname, &wsa_AttributedUnsignedLongType_qname },
203 { &wsa_Metadata_qname, &wsa_MetadataType_qname },
204 { &wsa_ReplyTo_qname, &wsa_EndpointReferenceType_qname },
205 { &wsbf_BaseFault_qname, &wsbf_BaseFaultType_qname },
206 { &wsrp_QueryResourcePropertiesResponse_qname, &wsrp_QueryResourcePropertiesResponseType_qname },
207 { &wsrp_PutResourcePropertyDocumentResponse_qname, &wsrp_PutResourcePropertyDocumentResponseType_qname },
208 { &wsrp_UpdateResourcePropertiesRequestFailedFault_qname, &wsrp_UpdateResourcePropertiesRequestFailedFaultType_qname },
209 { &wsrp_DeleteResourceProperties_qname, &wsrp_DeleteResourcePropertiesType_qname },
210 { &wsrp_InvalidModificationFault_qname, &wsrp_InvalidModificationFaultType_qname },
211 { &wsrp_DeleteResourcePropertiesRequestFailedFault_qname, &wsrp_DeleteResourcePropertiesRequestFailedFaultType_qname },
212 { &wsrp_SetResourcePropertyRequestFailedFault_qname, &wsrp_SetResourcePropertyRequestFailedFaultType_qname },
213 { &wsrp_GetResourcePropertyResponse_qname, &wsrp_GetResourcePropertyResponseType_qname },
214 { &wsrp_DeleteResourcePropertiesResponse_qname, &wsrp_DeleteResourcePropertiesResponseType_qname },
215 { &wsrp_UpdateResourcePropertiesResponse_qname, &wsrp_UpdateResourcePropertiesResponseType_qname },
216 { &wsrp_GetResourcePropertyDocumentResponse_qname, &wsrp_GetResourcePropertyDocumentResponseType_qname },
217 { &wsrp_UnableToModifyResourcePropertyFault_qname, &wsrp_UnableToModifyResourcePropertyFaultType_qname },
218 { &wsrp_QueryExpressionRPDocument_qname, &wsrp_QueryExpressionRPDocumentType_qname },
219 { &wsrp_InvalidQueryExpressionFault_qname, &wsrp_InvalidQueryExpressionFaultType_qname },
220 { &wsrp_Delete_qname, &wsrp_DeleteType_qname },
221 { &wsrp_Insert_qname, &wsrp_InsertType_qname },
222 { &wsrp_QueryResourceProperties_qname, &wsrp_QueryResourcePropertiesType_qname },
223 { &wsrp_UpdateResourceProperties_qname, &wsrp_UpdateResourcePropertiesType_qname },
224 { &wsrp_PutResourcePropertyDocument_qname, &wsrp_PutResourcePropertyDocumentType_qname },
225 { &wsrp_UnknownQueryExpressionDialectFault_qname, &wsrp_UnknownQueryExpressionDialectFaultType_qname },
226 { &wsrp_SetResourcePropertiesResponse_qname, &wsrp_SetResourcePropertiesResponseType_qname },
227 { &wsrp_QueryExpression_qname, &wsrp_QueryExpressionType_qname },
228 { &wsrp_GetResourcePropertyDocument_qname, &wsrp_GetResourcePropertyDocumentType_qname },
229 { &wsrp_QueryExpressionDialect_qname, &xsd_anyURI_qname },
230 { &wsrp_InsertResourcePropertiesResponse_qname, &wsrp_InsertResourcePropertiesResponseType_qname },
231 { &wsrp_ResourcePropertyValueChangeNotification_qname, &wsrp_ResourcePropertyValueChangeNotificationType_qname },
232 { &wsrp_QueryEvaluationErrorFault_qname, &wsrp_QueryEvaluationErrorFaultType_qname },
233 { &wsrp_GetMultipleResourcePropertiesResponse_qname, &wsrp_GetMultipleResourcePropertiesResponseType_qname },
234 { &wsrp_SetResourceProperties_qname, &wsrp_SetResourcePropertiesType_qname },
235 { &wsrp_InsertResourcePropertiesRequestFailedFault_qname, &wsrp_InsertResourcePropertiesRequestFailedFaultType_qname },
236 { &wsrp_UnableToPutResourcePropertyDocumentFault_qname, &wsrp_UnableToPutResourcePropertyDocumentFaultType_qname },
237 { &wsrp_GetMultipleResourceProperties_qname, &wsrp_GetMultipleResourcePropertiesType_qname },
238 { &wsrp_GetResourceProperty_qname, &xsd_QName_qname },
239 { &wsrp_InvalidResourcePropertyQNameFault_qname, &wsrp_InvalidResourcePropertyQNameFaultType_qname },
240 { &wsrp_InsertResourceProperties_qname, &wsrp_InsertResourcePropertiesType_qname },
241 { &wsrp_Update_qname, &wsrp_UpdateType_qname },
242 { &wssg_MembershipContentRule_qname, &wssg_MembershipContentRuleType_qname },
243 { &wssg_MemberEPR_qname, &wsa_EndpointReferenceType_qname },
244 { &wssg_ServiceGroupEntryRP_qname, &wssg_ServiceGroupEntryRPType_qname },
245 { &wssg_EntryAdditionNotification_qname, &wssg_ServiceGroupModificationNotificationType_qname },
246 { &wssg_Entry_qname, &wssg_EntryType_qname },
247 { &wssg_AddResponse_qname, &wssg_AddResponseType_qname },
248 { &wssg_AddRefusedFault_qname, &wssg_AddRefusedFaultType_qname },
249 { &wssg_Content_qname, &wssg_ContentType_qname },
250 { &wssg_ServiceGroupRP_qname, &wssg_ServiceGroupRPType_qname },
251 { &wssg_EntryRemovalNotification_qname, &wssg_ServiceGroupRemovalNotificationType_qname },
252 { &wssg_ContentCreationFailedFault_qname, &wssg_ContentCreationFailedFaultType_qname },
253 { &wssg_UnsupportedMemberInterfaceFault_qname, &wssg_UnsupportedMemberInterfaceFaultType_qname },
254 { &wssg_ServiceGroupEPR_qname, &wsa_EndpointReferenceType_qname },
255 { &wssg_Add_qname, &wssg_AddType_qname },
256 { &wsr_ResourceUnknownFault_qname, &wsr_ResourceUnknownFaultType_qname },
257 { &wsr_ResourceUnavailableFault_qname, &wsr_ResourceUnavailableFaultType_qname },
258 { &RegistryEntryPortTypeGTWSDLResourceProperties_qname, &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname },
259 { &wsen_Renew_qname, &wsen_RenewType_qname },
260 { &wsen_PullResponse_qname, &wsen_PullResponseType_qname },
261 { &wsen_Release_qname, &wsen_ReleaseType_qname },
262 { &wsen_RenewResponse_qname, &wsen_RenewResponseType_qname },
263 { &wsen_Enumerate_qname, &wsen_EnumerateType_qname },
264 { &wsen_Pull_qname, &wsen_PullType_qname },
265 { &wsen_GetStatus_qname, &wsen_GetStatusType_qname },
266 { &wsen_GetStatusResponse_qname, &wsen_GetStatusResponseType_qname },
267 { &wsen_SupportedDialect_qname, &xsd_anyURI_qname },
268 { &wsen_EnumerationEnd_qname, &wsen_EnumerationEndType_qname },
269 { &wsen_EnumerateResponse_qname, &wsen_EnumerateResponseType_qname },
270 { &RegistryPortTypeGTWSDLResourceProperties_qname, &RegistryEntryPortTypeGTWSDLResourcePropertiesType_qname },
271 /* ResourceProperty element QName -> type info mappings */
272
273 { NULL, NULL }
274 };
275
276 /* Attributes */
277 static
278 RegistryService_element_t RegistryService_l_attributes[] = {
279
280 { NULL, NULL }
281 };
282
283 static globus_xsd_type_info_t RegistryService_l_types[] = {
284 /* Types */
285 &RegistryEntryPortTypeGTWSDLResourcePropertiesType_info,
286 &wsa_EndpointReferenceType_info,
287 &wsa_RelationshipType_info,
288 &wsa_AttributedQNameType_info,
289 &wsa_RelationshipTypeOpenEnum_info,
290 &wsa_AttributedURIType_info,
291 &wsa_MetadataType_info,
292 &wsa_RelatesToType_info,
293 &wsa_FaultCodesType_info,
294 &wsa_FaultCodesOpenEnumType_info,
295 &wsa_AttributedUnsignedLongType_info,
296 &wsa_ReferenceParametersType_info,
297 &wsa_ProblemActionType_info,
298 &wsbf_BaseFaultType_info,
299 &wsrp_InsertResourcePropertiesRequestFailedFaultType_info,
300 &wsrp_UnableToPutResourcePropertyDocumentFaultType_info,
301 &wsrp_UnableToModifyResourcePropertyFaultType_info,
302 &wsrp_InvalidQueryExpressionFaultType_info,
303 &wsrp_DeleteType_info,
304 &wsrp_SetResourcePropertyRequestFailedFaultType_info,
305 &wsrp_UpdateType_info,
306 &wsrp_ResourcePropertyValueChangeNotificationType_info,
307 &wsrp_ResourcePropertyChangeFailureType_info,
308 &wsrp_DeleteResourcePropertiesRequestFailedFaultType_info,
309 &wsrp_InvalidModificationFaultType_info,
310 &wsrp_InsertType_info,
311 &wsrp_UpdateResourcePropertiesRequestFailedFaultType_info,
312 &wsrp_InvalidResourcePropertyQNameFaultType_info,
313 &wsrp_QueryEvaluationErrorFaultType_info,
314 &wsrp_UnknownQueryExpressionDialectFaultType_info,
315 &wsrp_QueryExpressionType_info,
316 &wssg_ContentCreationFailedFaultType_info,
317 &wssg_AbsoluteOrRelativeTimeType_info,
318 &wssg_MemberInterfacesType_info,
319 &wssg_ContentType_info,
320 &wssg_ServiceGroupRemovalNotificationType_info,
321 &wssg_RPDocType_info,
322 &wssg_ContentElementsType_info,
323 &wssg_EntryType_info,
324 &wssg_ServiceGroupModificationNotificationType_info,
325 &wssg_UnsupportedMemberInterfaceFaultType_info,
326 &wssg_AddRefusedFaultType_info,
327 &wsr_ResourceUnknownFaultType_info,
328 &wsr_ResourceUnavailableFaultType_info,
329 &wsen_FilterType_info,
330 &wsen_LanguageSpecificStringType_info,
331 &wsen_ItemListType_info,
332 &wsen_EnumerationContextType_info,
333 &wsen_OpenEnumerationEndCodeType_info,
334 &wsen_EnumerationEndCodeType_info,
335 &wsen_PositiveDurationType_info,
336 &wsen_NonNegativeDurationType_info,
337 &wsen_ExpirationType_info,
338 &wsrp_QueryResourcePropertiesResponseType_info,
339 &wsrp_PutResourcePropertyDocumentResponseType_info,
340 &wsrp_DeleteResourcePropertiesType_info,
341 &wsrp_GetResourcePropertyResponseType_info,
342 &wsrp_DeleteResourcePropertiesResponseType_info,
343 &wsrp_UpdateResourcePropertiesResponseType_info,
344 &wsrp_GetResourcePropertyDocumentResponseType_info,
345 &wsrp_QueryExpressionRPDocumentType_info,
346 &wsrp_QueryResourcePropertiesType_info,
347 &wsrp_UpdateResourcePropertiesType_info,
348 &wsrp_PutResourcePropertyDocumentType_info,
349 &wsrp_SetResourcePropertiesResponseType_info,
350 &wsrp_GetResourcePropertyDocumentType_info,
351 &wsrp_InsertResourcePropertiesResponseType_info,
352 &wsrp_GetMultipleResourcePropertiesResponseType_info,
353 &wsrp_SetResourcePropertiesType_info,
354 &wsrp_GetMultipleResourcePropertiesType_info,
355 &wsrp_InsertResourcePropertiesType_info,
356 &wssg_MembershipContentRuleType_info,
357 &wssg_ServiceGroupEntryRPType_info,
358 &wssg_AddResponseType_info,
359 &wssg_ServiceGroupRPType_info,
360 &wssg_AddType_info,
361 &wsen_RenewType_info,
362 &wsen_PullResponseType_info,
363 &wsen_ReleaseType_info,
364 &wsen_RenewResponseType_info,
365 &wsen_EnumerateType_info,
366 &wsen_PullType_info,
367 &wsen_GetStatusType_info,
368 &wsen_GetStatusResponseType_info,
369 &wsen_EnumerationEndType_info,
370 &wsen_EnumerateResponseType_info,
371
372 NULL
373 };
374
375 globus_result_t
376 RegistryService_registry_add_types(
377 globus_xsd_type_registry_t registry)
378 0 {
379 0 globus_result_t result = GLOBUS_SUCCESS;
380 0 globus_xsd_type_info_t * type = RegistryService_l_types;
381 0 RegistryService_element_t * element = RegistryService_l_elements;
382 0 RegistryService_element_t * attribute = RegistryService_l_attributes;
383 GlobusFuncName(RegistryService_registry_add_types);
384 0 GlobusSoapMessageDebugEnter();
385
386 0 while (*type != NULL)
387 {
388 0 result = globus_xsd_type_registry_insert(
389 registry,
390 *type,
391 NULL);
392
393 0 if (result != GLOBUS_SUCCESS)
394 {
395 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
396 result,
397 (*type)->type->Namespace,
398 (*type)->type->local);
399
400 0 goto exit;
401 }
402 0 type++;
403 }
404
405 0 while (element->element != NULL)
406 {
407 0 result = globus_xsd_type_registry_insert_element(
408 registry,
409 element->element,
410 element->type);
411 0 if (result != GLOBUS_SUCCESS)
412 {
413 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
414 result,
415 element->element->Namespace,
416 element->element->local);
417
418 0 goto exit;
419 }
420 0 element++;
421 }
422
423 0 while (attribute->element != NULL)
424 {
425 0 result = globus_xsd_type_registry_insert_attribute(
426 registry,
427 attribute->element,
428 attribute->type);
429 0 if (result != GLOBUS_SUCCESS)
430 {
431 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
432 result,
433 attribute->element->Namespace,
434 attribute->element->local);
435
436 0 goto exit;
437 }
438 0 attribute++;
439 }
440
441
442 0 exit:
443
444 0 GlobusSoapMessageDebugExit();
445 0 return result;
446 }
447 /* RegistryService_registry_add_types() */
448
449 globus_result_t
450 RegistryService_registry_remove_types(
451 globus_xsd_type_registry_t registry)
452 0 {
453 0 globus_result_t result = GLOBUS_SUCCESS;
454 0 globus_xsd_type_info_t * type = RegistryService_l_types;
455 0 RegistryService_element_t * element = RegistryService_l_elements;
456 0 RegistryService_element_t * attribute = RegistryService_l_attributes;
457 GlobusFuncName(RegistryService_registry_remove_types);
458 0 GlobusSoapMessageDebugEnter();
459
460
461 0 while (*type != NULL)
462 {
463 0 result = globus_xsd_type_registry_remove(
464 registry,
465 (*type)->type,
466 NULL);
467
468 0 if(result != GLOBUS_SUCCESS)
469 {
470 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
471 result,
472 (*type)->type->Namespace,
473 (*type)->type->local);
474 0 goto exit;
475 }
476 0 type++;
477 }
478 0 while (element->element != NULL)
479 {
480 0 result = globus_xsd_type_registry_remove_element(
481 registry,
482 element->element);
483 0 if (result != GLOBUS_SUCCESS)
484 {
485 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
486 result,
487 element->element->Namespace,
488 element->element->local);
489
490 0 goto exit;
491 }
492 0 element++;
493 }
494
495 0 while (attribute->element != NULL)
496 {
497 0 result = globus_xsd_type_registry_remove_attribute(
498 registry,
499 attribute->element);
500 0 if (result != GLOBUS_SUCCESS)
501 {
502 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
503 result,
504 attribute->element->Namespace,
505 attribute->element->local);
506
507 0 goto exit;
508 }
509 0 attribute++;
510 }
511
512 0 exit:
513
514 0 GlobusSoapMessageDebugExit();
515 0 return result;
516 }