1
2 #include "WidgetService.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 "widget_createWidgetResponse.h"
129 #include "widget_createWidgetResponseType.h"
130 #include "widget_Widget.h"
131 #include "widget_WidgetType.h"
132 #include "widget_Foo.h"
133 #include "xsd_string.h"
134 #include "widget_createWidget.h"
135 #include "widget_createWidgetType.h"
136 #include "wsa_RelationshipType.h"
137 #include "wsa_RelationshipTypeOpenEnum.h"
138 #include "wsa_FaultCodesType.h"
139 #include "wsa_FaultCodesOpenEnumType.h"
140 #include "wsrp_ResourcePropertyChangeFailureType.h"
141
142 /* ResourceProperty element QName -> type includes */
143
144
145 /* ResourceProperty element QNames */
146
147
148 typedef struct
149 {
150 xsd_QName * element;
151 xsd_QName * type;
152 }
153 WidgetService_element_t;
154
155 /* Elements */
156 static
157 WidgetService_element_t WidgetService_l_elements[] = {
158 { &wsa_ReferenceParameters_qname, &wsa_ReferenceParametersType_qname },
159 { &wsa_ProblemHeaderQName_qname, &wsa_AttributedQNameType_qname },
160 { &wsa_EndpointReference_qname, &wsa_EndpointReferenceType_qname },
161 { &wsa_MessageID_qname, &wsa_AttributedURIType_qname },
162 { &wsa_To_qname, &wsa_AttributedURIType_qname },
163 { &wsa_Action_qname, &wsa_AttributedURIType_qname },
164 { &wsa_ProblemAction_qname, &wsa_ProblemActionType_qname },
165 { &wsa_RelatesTo_qname, &wsa_RelatesToType_qname },
166 { &wsa_ProblemIRI_qname, &wsa_AttributedURIType_qname },
167 { &wsa_From_qname, &wsa_EndpointReferenceType_qname },
168 { &wsa_FaultTo_qname, &wsa_EndpointReferenceType_qname },
169 { &wsa_RetryAfter_qname, &wsa_AttributedUnsignedLongType_qname },
170 { &wsa_Metadata_qname, &wsa_MetadataType_qname },
171 { &wsa_ReplyTo_qname, &wsa_EndpointReferenceType_qname },
172 { &wsbf_BaseFault_qname, &wsbf_BaseFaultType_qname },
173 { &wsrp_QueryResourcePropertiesResponse_qname, &wsrp_QueryResourcePropertiesResponseType_qname },
174 { &wsrp_PutResourcePropertyDocumentResponse_qname, &wsrp_PutResourcePropertyDocumentResponseType_qname },
175 { &wsrp_UpdateResourcePropertiesRequestFailedFault_qname, &wsrp_UpdateResourcePropertiesRequestFailedFaultType_qname },
176 { &wsrp_DeleteResourceProperties_qname, &wsrp_DeleteResourcePropertiesType_qname },
177 { &wsrp_InvalidModificationFault_qname, &wsrp_InvalidModificationFaultType_qname },
178 { &wsrp_DeleteResourcePropertiesRequestFailedFault_qname, &wsrp_DeleteResourcePropertiesRequestFailedFaultType_qname },
179 { &wsrp_SetResourcePropertyRequestFailedFault_qname, &wsrp_SetResourcePropertyRequestFailedFaultType_qname },
180 { &wsrp_GetResourcePropertyResponse_qname, &wsrp_GetResourcePropertyResponseType_qname },
181 { &wsrp_DeleteResourcePropertiesResponse_qname, &wsrp_DeleteResourcePropertiesResponseType_qname },
182 { &wsrp_UpdateResourcePropertiesResponse_qname, &wsrp_UpdateResourcePropertiesResponseType_qname },
183 { &wsrp_GetResourcePropertyDocumentResponse_qname, &wsrp_GetResourcePropertyDocumentResponseType_qname },
184 { &wsrp_UnableToModifyResourcePropertyFault_qname, &wsrp_UnableToModifyResourcePropertyFaultType_qname },
185 { &wsrp_QueryExpressionRPDocument_qname, &wsrp_QueryExpressionRPDocumentType_qname },
186 { &wsrp_InvalidQueryExpressionFault_qname, &wsrp_InvalidQueryExpressionFaultType_qname },
187 { &wsrp_Delete_qname, &wsrp_DeleteType_qname },
188 { &wsrp_Insert_qname, &wsrp_InsertType_qname },
189 { &wsrp_QueryResourceProperties_qname, &wsrp_QueryResourcePropertiesType_qname },
190 { &wsrp_UpdateResourceProperties_qname, &wsrp_UpdateResourcePropertiesType_qname },
191 { &wsrp_PutResourcePropertyDocument_qname, &wsrp_PutResourcePropertyDocumentType_qname },
192 { &wsrp_UnknownQueryExpressionDialectFault_qname, &wsrp_UnknownQueryExpressionDialectFaultType_qname },
193 { &wsrp_SetResourcePropertiesResponse_qname, &wsrp_SetResourcePropertiesResponseType_qname },
194 { &wsrp_QueryExpression_qname, &wsrp_QueryExpressionType_qname },
195 { &wsrp_GetResourcePropertyDocument_qname, &wsrp_GetResourcePropertyDocumentType_qname },
196 { &wsrp_QueryExpressionDialect_qname, &xsd_anyURI_qname },
197 { &wsrp_InsertResourcePropertiesResponse_qname, &wsrp_InsertResourcePropertiesResponseType_qname },
198 { &wsrp_ResourcePropertyValueChangeNotification_qname, &wsrp_ResourcePropertyValueChangeNotificationType_qname },
199 { &wsrp_QueryEvaluationErrorFault_qname, &wsrp_QueryEvaluationErrorFaultType_qname },
200 { &wsrp_GetMultipleResourcePropertiesResponse_qname, &wsrp_GetMultipleResourcePropertiesResponseType_qname },
201 { &wsrp_SetResourceProperties_qname, &wsrp_SetResourcePropertiesType_qname },
202 { &wsrp_InsertResourcePropertiesRequestFailedFault_qname, &wsrp_InsertResourcePropertiesRequestFailedFaultType_qname },
203 { &wsrp_UnableToPutResourcePropertyDocumentFault_qname, &wsrp_UnableToPutResourcePropertyDocumentFaultType_qname },
204 { &wsrp_GetMultipleResourceProperties_qname, &wsrp_GetMultipleResourcePropertiesType_qname },
205 { &wsrp_GetResourceProperty_qname, &xsd_QName_qname },
206 { &wsrp_InvalidResourcePropertyQNameFault_qname, &wsrp_InvalidResourcePropertyQNameFaultType_qname },
207 { &wsrp_InsertResourceProperties_qname, &wsrp_InsertResourcePropertiesType_qname },
208 { &wsrp_Update_qname, &wsrp_UpdateType_qname },
209 { &wsrl_SetTerminationTime_qname, &wsrl_SetTerminationTimeType_qname },
210 { &wsrl_CurrentTime_qname, &wsrl_CurrentTimeType_qname },
211 { &wsrl_TerminationTime_qname, &wsrl_TerminationTimeType_qname },
212 { &wsrl_ResourceNotDestroyedFault_qname, &wsrl_ResourceNotDestroyedFaultType_qname },
213 { &wsrl_SetTerminationTimeResponse_qname, &wsrl_SetTerminationTimeResponseType_qname },
214 { &wsrl_UnableToSetTerminationTimeFault_qname, &wsrl_UnableToSetTerminationTimeFaultType_qname },
215 { &wsrl_TerminationNotification_qname, &wsrl_TerminationNotificationType_qname },
216 { &wsrl_ScheduledResourceTerminationRP_qname, &wsrl_ScheduledResourceTerminationRPType_qname },
217 { &wsrl_Destroy_qname, &wsrl_DestroyType_qname },
218 { &wsrl_TerminationTimeChangeRejectedFault_qname, &wsrl_TerminationTimeChangeRejectedFaultType_qname },
219 { &wsrl_DestroyResponse_qname, &wsrl_DestroyResponseType_qname },
220 { &wsr_ResourceUnknownFault_qname, &wsr_ResourceUnknownFaultType_qname },
221 { &wsr_ResourceUnavailableFault_qname, &wsr_ResourceUnavailableFaultType_qname },
222 { &widget_createWidgetResponse_qname, &widget_createWidgetResponseType_qname },
223 { &widget_Widget_qname, &widget_WidgetType_qname },
224 { &widget_Foo_qname, &xsd_string_qname },
225 { &widget_createWidget_qname, &widget_createWidgetType_qname },
226 /* ResourceProperty element QName -> type info mappings */
227
228 { NULL, NULL }
229 };
230
231 /* Attributes */
232 static
233 WidgetService_element_t WidgetService_l_attributes[] = {
234
235 { NULL, NULL }
236 };
237
238 static globus_xsd_type_info_t WidgetService_l_types[] = {
239 /* Types */
240 &widget_createWidgetResponseType_info,
241 &widget_WidgetType_info,
242 &widget_createWidgetType_info,
243 &wsa_EndpointReferenceType_info,
244 &wsa_RelationshipType_info,
245 &wsa_AttributedQNameType_info,
246 &wsa_RelationshipTypeOpenEnum_info,
247 &wsa_AttributedURIType_info,
248 &wsa_MetadataType_info,
249 &wsa_RelatesToType_info,
250 &wsa_FaultCodesType_info,
251 &wsa_FaultCodesOpenEnumType_info,
252 &wsa_AttributedUnsignedLongType_info,
253 &wsa_ReferenceParametersType_info,
254 &wsa_ProblemActionType_info,
255 &wsbf_BaseFaultType_info,
256 &wsrp_InsertResourcePropertiesRequestFailedFaultType_info,
257 &wsrp_UnableToPutResourcePropertyDocumentFaultType_info,
258 &wsrp_UnableToModifyResourcePropertyFaultType_info,
259 &wsrp_InvalidQueryExpressionFaultType_info,
260 &wsrp_DeleteType_info,
261 &wsrp_SetResourcePropertyRequestFailedFaultType_info,
262 &wsrp_UpdateType_info,
263 &wsrp_ResourcePropertyValueChangeNotificationType_info,
264 &wsrp_ResourcePropertyChangeFailureType_info,
265 &wsrp_DeleteResourcePropertiesRequestFailedFaultType_info,
266 &wsrp_InvalidModificationFaultType_info,
267 &wsrp_InsertType_info,
268 &wsrp_UpdateResourcePropertiesRequestFailedFaultType_info,
269 &wsrp_InvalidResourcePropertyQNameFaultType_info,
270 &wsrp_QueryEvaluationErrorFaultType_info,
271 &wsrp_UnknownQueryExpressionDialectFaultType_info,
272 &wsrp_QueryExpressionType_info,
273 &wsrl_ResourceNotDestroyedFaultType_info,
274 &wsrl_TerminationTimeChangeRejectedFaultType_info,
275 &wsrl_UnableToSetTerminationTimeFaultType_info,
276 &wsr_ResourceUnknownFaultType_info,
277 &wsr_ResourceUnavailableFaultType_info,
278 &wsrp_QueryResourcePropertiesResponseType_info,
279 &wsrp_PutResourcePropertyDocumentResponseType_info,
280 &wsrp_DeleteResourcePropertiesType_info,
281 &wsrp_GetResourcePropertyResponseType_info,
282 &wsrp_DeleteResourcePropertiesResponseType_info,
283 &wsrp_UpdateResourcePropertiesResponseType_info,
284 &wsrp_GetResourcePropertyDocumentResponseType_info,
285 &wsrp_QueryExpressionRPDocumentType_info,
286 &wsrp_QueryResourcePropertiesType_info,
287 &wsrp_UpdateResourcePropertiesType_info,
288 &wsrp_PutResourcePropertyDocumentType_info,
289 &wsrp_SetResourcePropertiesResponseType_info,
290 &wsrp_GetResourcePropertyDocumentType_info,
291 &wsrp_InsertResourcePropertiesResponseType_info,
292 &wsrp_GetMultipleResourcePropertiesResponseType_info,
293 &wsrp_SetResourcePropertiesType_info,
294 &wsrp_GetMultipleResourcePropertiesType_info,
295 &wsrp_InsertResourcePropertiesType_info,
296 &wsrl_SetTerminationTimeType_info,
297 &wsrl_CurrentTimeType_info,
298 &wsrl_TerminationTimeType_info,
299 &wsrl_SetTerminationTimeResponseType_info,
300 &wsrl_TerminationNotificationType_info,
301 &wsrl_ScheduledResourceTerminationRPType_info,
302 &wsrl_DestroyType_info,
303 &wsrl_DestroyResponseType_info,
304
305 NULL
306 };
307
308 globus_result_t
309 WidgetService_registry_add_types(
310 globus_xsd_type_registry_t registry)
311 134 {
312 134 globus_result_t result = GLOBUS_SUCCESS;
313 134 globus_xsd_type_info_t * type = WidgetService_l_types;
314 134 WidgetService_element_t * element = WidgetService_l_elements;
315 134 WidgetService_element_t * attribute = WidgetService_l_attributes;
316 GlobusFuncName(WidgetService_registry_add_types);
317 134 GlobusSoapMessageDebugEnter();
318
319 8844 while (*type != NULL)
320 {
321 8576 result = globus_xsd_type_registry_insert(
322 registry,
323 *type,
324 NULL);
325
326 8576 if (result != GLOBUS_SUCCESS)
327 {
328 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
329 result,
330 (*type)->type->Namespace,
331 (*type)->type->local);
332
333 0 goto exit;
334 }
335 8576 type++;
336 }
337
338 9380 while (element->element != NULL)
339 {
340 9112 result = globus_xsd_type_registry_insert_element(
341 registry,
342 element->element,
343 element->type);
344 9112 if (result != GLOBUS_SUCCESS)
345 {
346 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
347 result,
348 element->element->Namespace,
349 element->element->local);
350
351 0 goto exit;
352 }
353 9112 element++;
354 }
355
356 268 while (attribute->element != NULL)
357 {
358 0 result = globus_xsd_type_registry_insert_attribute(
359 registry,
360 attribute->element,
361 attribute->type);
362 0 if (result != GLOBUS_SUCCESS)
363 {
364 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
365 result,
366 attribute->element->Namespace,
367 attribute->element->local);
368
369 0 goto exit;
370 }
371 0 attribute++;
372 }
373
374
375 134 exit:
376
377 134 GlobusSoapMessageDebugExit();
378 134 return result;
379 }
380 /* WidgetService_registry_add_types() */
381
382 globus_result_t
383 WidgetService_registry_remove_types(
384 globus_xsd_type_registry_t registry)
385 0 {
386 0 globus_result_t result = GLOBUS_SUCCESS;
387 0 globus_xsd_type_info_t * type = WidgetService_l_types;
388 0 WidgetService_element_t * element = WidgetService_l_elements;
389 0 WidgetService_element_t * attribute = WidgetService_l_attributes;
390 GlobusFuncName(WidgetService_registry_remove_types);
391 0 GlobusSoapMessageDebugEnter();
392
393
394 0 while (*type != NULL)
395 {
396 0 result = globus_xsd_type_registry_remove(
397 registry,
398 (*type)->type,
399 NULL);
400
401 0 if(result != GLOBUS_SUCCESS)
402 {
403 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
404 result,
405 (*type)->type->Namespace,
406 (*type)->type->local);
407 0 goto exit;
408 }
409 0 type++;
410 }
411 0 while (element->element != NULL)
412 {
413 0 result = globus_xsd_type_registry_remove_element(
414 registry,
415 element->element);
416 0 if (result != GLOBUS_SUCCESS)
417 {
418 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
419 result,
420 element->element->Namespace,
421 element->element->local);
422
423 0 goto exit;
424 }
425 0 element++;
426 }
427
428 0 while (attribute->element != NULL)
429 {
430 0 result = globus_xsd_type_registry_remove_attribute(
431 registry,
432 attribute->element);
433 0 if (result != GLOBUS_SUCCESS)
434 {
435 0 result = GlobusSoapMessageErrorFailedRegistryPopulate(
436 result,
437 attribute->element->Namespace,
438 attribute->element->local);
439
440 0 goto exit;
441 }
442 0 attribute++;
443 }
444
445 0 exit:
446
447 0 GlobusSoapMessageDebugExit();
448 0 return result;
449 }