1
2 #include "ResourcePropertiesTestService.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 "wsrl_SetTerminationTime.h"
103 #include "wsrl_SetTerminationTimeType.h"
104 #include "wsrl_CurrentTime.h"
105 #include "wsrl_CurrentTimeType.h"
106 #include "wsrl_TerminationTime.h"
107 #include "wsrl_TerminationTimeType.h"
108 #include "wsrl_ResourceNotDestroyedFault.h"
109 #include "wsrl_ResourceNotDestroyedFaultType.h"
110 #include "wsrl_SetTerminationTimeResponse.h"
111 #include "wsrl_SetTerminationTimeResponseType.h"
112 #include "wsrl_UnableToSetTerminationTimeFault.h"
113 #include "wsrl_UnableToSetTerminationTimeFaultType.h"
114 #include "wsrl_TerminationNotification.h"
115 #include "wsrl_TerminationNotificationType.h"
116 #include "wsrl_ScheduledResourceTerminationRP.h"
117 #include "wsrl_ScheduledResourceTerminationRPType.h"
118 #include "wsrl_Destroy.h"
119 #include "wsrl_DestroyType.h"
120 #include "wsrl_TerminationTimeChangeRejectedFault.h"
121 #include "wsrl_TerminationTimeChangeRejectedFaultType.h"
122 #include "wsrl_DestroyResponse.h"
123 #include "wsrl_DestroyResponseType.h"
124 #include "wsr_ResourceUnknownFault.h"
125 #include "wsr_ResourceUnknownFaultType.h"
126 #include "wsr_ResourceUnavailableFault.h"
127 #include "wsr_ResourceUnavailableFaultType.h"
128 #include "rptest_CreateResourcePropertiesTestResponse.h"
129 #include "rptest_CreateResourcePropertiesTestResponseType.h"
130 #include "rptest_ResourcePropertyDefinition.h"
131 #include "rptest_ResourcePropertyDefinitionType.h"
132 #include "rptest_Fault.h"
133 #include "rptest_FaultType.h"
134 #include "rptest_TestStep.h"
135 #include "rptest_TestStepType.h"
136 #include "rptest_QueryResourcePropertiesTest.h"
137 #include "rptest_QueryResourcePropertiesTestType.h"
138 #include "rptest_TypeQName.h"
139 #include "rptest_SetResourcePropertiesTest.h"
140 #include "rptest_SetResourcePropertiesTestType.h"
141 #include "rptest_GetMultipleResourcePropertiesTest.h"
142 #include "rptest_GetMultipleResourcePropertiesTestType.h"
143 #include "rptest_QName.h"
144 #include "rptest_CreateResourcePropertiesTest.h"
145 #include "rptest_CreateResourcePropertiesTestType.h"
146 #include "rptest_GetResourcePropertyTest.h"
147 #include "rptest_GetResourcePropertyTestType.h"
148 #include "rptest_TestCase.h"
149 #include "rptest_TestCaseType.h"
150 #include "rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties.h"
151 #include "rptest_ResourcePropertiesTestPortTypeGTWSDLResourcePropertiesType.h"
152 #include "wsa_RelationshipType.h"
153 #include "wsa_RelationshipTypeOpenEnum.h"
154 #include "wsa_FaultCodesType.h"
155 #include "wsa_FaultCodesOpenEnumType.h"
156 #include "wsrp_ResourcePropertyChangeFailureType.h"
157
158 /* ResourceProperty element QName -> type includes */
159
160
161 /* ResourceProperty element QNames */
162
163
164 typedef struct
165 {
166 xsd_QName * element;
167 xsd_QName * type;
168 }
169 ResourcePropertiesTestService_element_t;
170
171 /* Elements */
172 static
173 ResourcePropertiesTestService_element_t ResourcePropertiesTestService_l_elements[] = {
174 { &wsa_ReferenceParameters_qname, &wsa_ReferenceParametersType_qname },
175 { &wsa_ProblemHeaderQName_qname, &wsa_AttributedQNameType_qname },
176 { &wsa_EndpointReference_qname, &wsa_EndpointReferenceType_qname },
177 { &wsa_MessageID_qname, &wsa_AttributedURIType_qname },
178 { &wsa_To_qname, &wsa_AttributedURIType_qname },
179 { &wsa_Action_qname, &wsa_AttributedURIType_qname },
180 { &wsa_ProblemAction_qname, &wsa_ProblemActionType_qname },
181 { &wsa_RelatesTo_qname, &wsa_RelatesToType_qname },
182 { &wsa_ProblemIRI_qname, &wsa_AttributedURIType_qname },
183 { &wsa_From_qname, &wsa_EndpointReferenceType_qname },
184 { &wsa_FaultTo_qname, &wsa_EndpointReferenceType_qname },
185 { &wsa_RetryAfter_qname, &wsa_AttributedUnsignedLongType_qname },
186 { &wsa_Metadata_qname, &wsa_MetadataType_qname },
187 { &wsa_ReplyTo_qname, &wsa_EndpointReferenceType_qname },
188 { &wsbf_BaseFault_qname, &wsbf_BaseFaultType_qname },
189 { &wsrp_QueryResourcePropertiesResponse_qname, &wsrp_QueryResourcePropertiesResponseType_qname },
190 { &wsrp_PutResourcePropertyDocumentResponse_qname, &wsrp_PutResourcePropertyDocumentResponseType_qname },
191 { &wsrp_UpdateResourcePropertiesRequestFailedFault_qname, &wsrp_UpdateResourcePropertiesRequestFailedFaultType_qname },
192 { &wsrp_DeleteResourceProperties_qname, &wsrp_DeleteResourcePropertiesType_qname },
193 { &wsrp_InvalidModificationFault_qname, &wsrp_InvalidModificationFaultType_qname },
194 { &wsrp_DeleteResourcePropertiesRequestFailedFault_qname, &wsrp_DeleteResourcePropertiesRequestFailedFaultType_qname },
195 { &wsrp_SetResourcePropertyRequestFailedFault_qname, &wsrp_SetResourcePropertyRequestFailedFaultType_qname },
196 { &wsrp_GetResourcePropertyResponse_qname, &wsrp_GetResourcePropertyResponseType_qname },
197 { &wsrp_DeleteResourcePropertiesResponse_qname, &wsrp_DeleteResourcePropertiesResponseType_qname },
198 { &wsrp_UpdateResourcePropertiesResponse_qname, &wsrp_UpdateResourcePropertiesResponseType_qname },
199 { &wsrp_GetResourcePropertyDocumentResponse_qname, &wsrp_GetResourcePropertyDocumentResponseType_qname },
200 { &wsrp_UnableToModifyResourcePropertyFault_qname, &wsrp_UnableToModifyResourcePropertyFaultType_qname },
201 { &wsrp_QueryExpressionRPDocument_qname, &wsrp_QueryExpressionRPDocumentType_qname },
202 { &wsrp_InvalidQueryExpressionFault_qname, &wsrp_InvalidQueryExpressionFaultType_qname },
203 { &wsrp_Delete_qname, &wsrp_DeleteType_qname },
204 { &wsrp_Insert_qname, &wsrp_InsertType_qname },
205 { &wsrp_QueryResourceProperties_qname, &wsrp_QueryResourcePropertiesType_qname },
206 { &wsrp_UpdateResourceProperties_qname, &wsrp_UpdateResourcePropertiesType_qname },
207 { &wsrp_PutResourcePropertyDocument_qname, &wsrp_PutResourcePropertyDocumentType_qname },
208 { &wsrp_UnknownQueryExpressionDialectFault_qname, &wsrp_UnknownQueryExpressionDialectFaultType_qname },
209 { &wsrp_SetResourcePropertiesResponse_qname, &wsrp_SetResourcePropertiesResponseType_qname },
210 { &wsrp_QueryExpression_qname, &wsrp_QueryExpressionType_qname },
211 { &wsrp_GetResourcePropertyDocument_qname, &wsrp_GetResourcePropertyDocumentType_qname },
212 { &wsrp_QueryExpressionDialect_qname, &xsd_anyURI_qname },
213 { &wsrp_InsertResourcePropertiesResponse_qname, &wsrp_InsertResourcePropertiesResponseType_qname },
214 { &wsrp_ResourcePropertyValueChangeNotification_qname, &wsrp_ResourcePropertyValueChangeNotificationType_qname },
215 { &wsrp_QueryEvaluationErrorFault_qname, &wsrp_QueryEvaluationErrorFaultType_qname },
216 { &wsrp_GetMultipleResourcePropertiesResponse_qname, &wsrp_GetMultipleResourcePropertiesResponseType_qname },
217 { &wsrp_SetResourceProperties_qname, &wsrp_SetResourcePropertiesType_qname },
218 { &wsrp_InsertResourcePropertiesRequestFailedFault_qname, &wsrp_InsertResourcePropertiesRequestFailedFaultType_qname },
219 { &wsrp_UnableToPutResourcePropertyDocumentFault_qname, &wsrp_UnableToPutResourcePropertyDocumentFaultType_qname },
220 { &wsrp_GetMultipleResourceProperties_qname, &wsrp_GetMultipleResourcePropertiesType_qname },
221 { &wsrp_GetResourceProperty_qname, &xsd_QName_qname },
222 { &wsrp_InvalidResourcePropertyQNameFault_qname, &wsrp_InvalidResourcePropertyQNameFaultType_qname },
223 { &wsrp_InsertResourceProperties_qname, &wsrp_InsertResourcePropertiesType_qname },
224 { &wsrp_Update_qname, &wsrp_UpdateType_qname },
225 { &wsrl_SetTerminationTime_qname, &wsrl_SetTerminationTimeType_qname },
226 { &wsrl_CurrentTime_qname, &wsrl_CurrentTimeType_qname },
227 { &wsrl_TerminationTime_qname, &wsrl_TerminationTimeType_qname },
228 { &wsrl_ResourceNotDestroyedFault_qname, &wsrl_ResourceNotDestroyedFaultType_qname },
229 { &wsrl_SetTerminationTimeResponse_qname, &wsrl_SetTerminationTimeResponseType_qname },
230 { &wsrl_UnableToSetTerminationTimeFault_qname, &wsrl_UnableToSetTerminationTimeFaultType_qname },
231 { &wsrl_TerminationNotification_qname, &wsrl_TerminationNotificationType_qname },
232 { &wsrl_ScheduledResourceTerminationRP_qname, &wsrl_ScheduledResourceTerminationRPType_qname },
233 { &wsrl_Destroy_qname, &wsrl_DestroyType_qname },
234 { &wsrl_TerminationTimeChangeRejectedFault_qname, &wsrl_TerminationTimeChangeRejectedFaultType_qname },
235 { &wsrl_DestroyResponse_qname, &wsrl_DestroyResponseType_qname },
236 { &wsr_ResourceUnknownFault_qname, &wsr_ResourceUnknownFaultType_qname },
237 { &wsr_ResourceUnavailableFault_qname, &wsr_ResourceUnavailableFaultType_qname },
238 { &rptest_CreateResourcePropertiesTestResponse_qname, &rptest_CreateResourcePropertiesTestResponseType_qname },
239 { &rptest_ResourcePropertyDefinition_qname, &rptest_ResourcePropertyDefinitionType_qname },
240 { &rptest_Fault_qname, &rptest_FaultType_qname },
241 { &rptest_TestStep_qname, &rptest_TestStepType_qname },
242 { &rptest_QueryResourcePropertiesTest_qname, &rptest_QueryResourcePropertiesTestType_qname },
243 { &rptest_TypeQName_qname, &xsd_QName_qname },
244 { &rptest_SetResourcePropertiesTest_qname, &rptest_SetResourcePropertiesTestType_qname },
245 { &rptest_GetMultipleResourcePropertiesTest_qname, &rptest_GetMultipleResourcePropertiesTestType_qname },
246 { &rptest_QName_qname, &xsd_QName_qname },
247 { &rptest_CreateResourcePropertiesTest_qname, &rptest_CreateResourcePropertiesTestType_qname },
248 { &rptest_GetResourcePropertyTest_qname, &rptest_GetResourcePropertyTestType_qname },
249 { &rptest_TestCase_qname, &rptest_TestCaseType_qname },
250 { &rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties_qname, &rptest_ResourcePropertiesTestPortTypeGTWSDLResourcePropertiesType_qname },
251 /* ResourceProperty element QName -> type info mappings */
252
253 { NULL, NULL }
254 };
255
256 /* Attributes */
257 static
258 ResourcePropertiesTestService_element_t ResourcePropertiesTestService_l_attributes[] = {
259
260 { NULL, NULL }
261 };
262
263 static globus_xsd_type_info_t ResourcePropertiesTestService_l_types[] = {
264 /* Types */
265 &rptest_CreateResourcePropertiesTestResponseType_info,
266 &rptest_ResourcePropertyDefinitionType_info,
267 &rptest_FaultType_info,
268 &rptest_TestStepType_info,
269 &rptest_QueryResourcePropertiesTestType_info,
270 &rptest_SetResourcePropertiesTestType_info,
271 &rptest_GetMultipleResourcePropertiesTestType_info,
272 &rptest_CreateResourcePropertiesTestType_info,
273 &rptest_GetResourcePropertyTestType_info,
274 &rptest_TestCaseType_info,
275 &rptest_ResourcePropertiesTestPortTypeGTWSDLResourcePropertiesType_info,
276 &wsa_EndpointReferenceType_info,
277 &wsa_RelationshipType_info,
278 &wsa_AttributedQNameType_info,
279 &wsa_RelationshipTypeOpenEnum_info,
280 &wsa_AttributedURIType_info,
281 &wsa_MetadataType_info,
282 &wsa_RelatesToType_info,
283 &wsa_FaultCodesType_info,
284 &wsa_FaultCodesOpenEnumType_info,
285 &wsa_AttributedUnsignedLongType_info,
286 &wsa_ReferenceParametersType_info,
287 &wsa_ProblemActionType_info,
288 &wsbf_BaseFaultType_info,
289 &wsrp_InsertResourcePropertiesRequestFailedFaultType_info,
290 &wsrp_UnableToPutResourcePropertyDocumentFaultType_info,
291 &wsrp_UnableToModifyResourcePropertyFaultType_info,
292 &wsrp_InvalidQueryExpressionFaultType_info,
293 &wsrp_DeleteType_info,
294 &wsrp_SetResourcePropertyRequestFailedFaultType_info,
295 &wsrp_UpdateType_info,
296 &wsrp_ResourcePropertyValueChangeNotificationType_info,
297 &wsrp_ResourcePropertyChangeFailureType_info,
298 &wsrp_DeleteResourcePropertiesRequestFailedFaultType_info,
299 &wsrp_InvalidModificationFaultType_info,
300 &wsrp_InsertType_info,
301 &wsrp_UpdateResourcePropertiesRequestFailedFaultType_info,
302 &wsrp_InvalidResourcePropertyQNameFaultType_info,
303 &wsrp_QueryEvaluationErrorFaultType_info,
304 &wsrp_UnknownQueryExpressionDialectFaultType_info,
305 &wsrp_QueryExpressionType_info,
306 &wsrl_ResourceNotDestroyedFaultType_info,
307 &wsrl_TerminationTimeChangeRejectedFaultType_info,
308 &wsrl_UnableToSetTerminationTimeFaultType_info,
309 &wsr_ResourceUnknownFaultType_info,
310 &wsr_ResourceUnavailableFaultType_info,
311 &wsrp_QueryResourcePropertiesResponseType_info,
312 &wsrp_PutResourcePropertyDocumentResponseType_info,
313 &wsrp_DeleteResourcePropertiesType_info,
314 &wsrp_GetResourcePropertyResponseType_info,
315 &wsrp_DeleteResourcePropertiesResponseType_info,
316 &wsrp_UpdateResourcePropertiesResponseType_info,
317 &wsrp_GetResourcePropertyDocumentResponseType_info,
318 &wsrp_QueryExpressionRPDocumentType_info,
319 &wsrp_QueryResourcePropertiesType_info,
320 &wsrp_UpdateResourcePropertiesType_info,
321 &wsrp_PutResourcePropertyDocumentType_info,
322 &wsrp_SetResourcePropertiesResponseType_info,
323 &wsrp_GetResourcePropertyDocumentType_info,
324 &wsrp_InsertResourcePropertiesResponseType_info,
325 &wsrp_GetMultipleResourcePropertiesResponseType_info,
326 &wsrp_SetResourcePropertiesType_info,
327 &wsrp_GetMultipleResourcePropertiesType_info,
328 &wsrp_InsertResourcePropertiesType_info,
329 &wsrl_SetTerminationTimeType_info,
330 &wsrl_CurrentTimeType_info,
331 &wsrl_TerminationTimeType_info,
332 &wsrl_SetTerminationTimeResponseType_info,
333 &wsrl_TerminationNotificationType_info,
334 &wsrl_ScheduledResourceTerminationRPType_info,
335 &wsrl_DestroyType_info,
336 &wsrl_DestroyResponseType_info,
337
338 NULL
339 };
340
341 globus_result_t
342 ResourcePropertiesTestService_registry_add_types(
343 globus_xsd_type_registry_t registry)
344 360 {
345 360 globus_result_t result = GLOBUS_SUCCESS;
346 360 globus_xsd_type_info_t * type = ResourcePropertiesTestService_l_types;
347 360 ResourcePropertiesTestService_element_t * element = ResourcePropertiesTestService_l_elements;
348 360 ResourcePropertiesTestService_element_t * attribute = ResourcePropertiesTestService_l_attributes;
349 GlobusFuncName(ResourcePropertiesTestService_registry_add_types);
350 360 GlobusSoapMessageDebugEnter();
351
352 26640 while (*type != NULL)
353 {
354 25920 result = globus_xsd_type_registry_insert(
355 registry,
356 *type,
357 NULL);
358
359 25920 if (result != GLOBUS_SUCCESS)
360 {
361 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
362 result,
363 (*type)->type->Namespace,
364 (*type)->type->local);
365
366 0 goto exit;
367 }
368 25920 type++;
369 }
370
371 28440 while (element->element != NULL)
372 {
373 27720 result = globus_xsd_type_registry_insert_element(
374 registry,
375 element->element,
376 element->type);
377 27720 if (result != GLOBUS_SUCCESS)
378 {
379 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
380 result,
381 element->element->Namespace,
382 element->element->local);
383
384 0 goto exit;
385 }
386 27720 element++;
387 }
388
389 720 while (attribute->element != NULL)
390 {
391 0 result = globus_xsd_type_registry_insert_attribute(
392 registry,
393 attribute->element,
394 attribute->type);
395 0 if (result != GLOBUS_SUCCESS)
396 {
397 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
398 result,
399 attribute->element->Namespace,
400 attribute->element->local);
401
402 0 goto exit;
403 }
404 0 attribute++;
405 }
406
407
408 360 exit:
409
410 360 GlobusSoapMessageDebugExit();
411 360 return result;
412 }
413 /* ResourcePropertiesTestService_registry_add_types() */
414
415 globus_result_t
416 ResourcePropertiesTestService_registry_remove_types(
417 globus_xsd_type_registry_t registry)
418 0 {
419 0 globus_result_t result = GLOBUS_SUCCESS;
420 0 globus_xsd_type_info_t * type = ResourcePropertiesTestService_l_types;
421 0 ResourcePropertiesTestService_element_t * element = ResourcePropertiesTestService_l_elements;
422 0 ResourcePropertiesTestService_element_t * attribute = ResourcePropertiesTestService_l_attributes;
423 GlobusFuncName(ResourcePropertiesTestService_registry_remove_types);
424 0 GlobusSoapMessageDebugEnter();
425
426
427 0 while (*type != NULL)
428 {
429 0 result = globus_xsd_type_registry_remove(
430 registry,
431 (*type)->type,
432 NULL);
433
434 0 if(result != GLOBUS_SUCCESS)
435 {
436 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
437 result,
438 (*type)->type->Namespace,
439 (*type)->type->local);
440 0 goto exit;
441 }
442 0 type++;
443 }
444 0 while (element->element != NULL)
445 {
446 0 result = globus_xsd_type_registry_remove_element(
447 registry,
448 element->element);
449 0 if (result != GLOBUS_SUCCESS)
450 {
451 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
452 result,
453 element->element->Namespace,
454 element->element->local);
455
456 0 goto exit;
457 }
458 0 element++;
459 }
460
461 0 while (attribute->element != NULL)
462 {
463 0 result = globus_xsd_type_registry_remove_attribute(
464 registry,
465 attribute->element);
466 0 if (result != GLOBUS_SUCCESS)
467 {
468 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
469 result,
470 attribute->element->Namespace,
471 attribute->element->local);
472
473 0 goto exit;
474 }
475 0 attribute++;
476 }
477
478 0 exit:
479
480 0 GlobusSoapMessageDebugExit();
481 0 return result;
482 }