1
2 #include "ServiceGroupEntryService.h"
3 #include "globus_xsd_type_registry.h"
4
5
6 #include "wsa_From.h"
7 #include "wsa_FaultTo.h"
8 #include "wsa_RelatesTo.h"
9 #include "wsa_Action.h"
10 #include "wsa_ReplyAfter.h"
11 #include "wsa_EndpointReference.h"
12 #include "wsa_MessageID.h"
13 #include "wsa_ReplyTo.h"
14 #include "wsa_To.h"
15 #include "wsrl_TerminationTime.h"
16 #include "wsrl_TerminationNotification.h"
17 #include "wsrl_CurrentTime.h"
18 #include "wsrp_QueryExpression.h"
19 #include "wsrp_ResourcePropertyValueChangeNotification.h"
20 #include "wsbf_BaseFault.h"
21 #include "wssg_MemberEPR.h"
22 #include "wssg_EntryRemovalNotification.h"
23 #include "wssg_ServiceGroupRP.h"
24 #include "wssg_AddResponse.h"
25 #include "wssg_ContentCreationFailedFault.h"
26 #include "wssg_UnsupportedMemberInterfaceFault.h"
27 #include "wssg_ServiceGroupEPR.h"
28 #include "wssg_MembershipContentRule.h"
29 #include "wssg_Add.h"
30 #include "wssg_AddRefusedFault.h"
31 #include "wssg_Entry.h"
32 #include "wssg_ServiceGroupEntryRP.h"
33 #include "wssg_EntryAdditionNotification.h"
34 #include "wssg_Content.h"
35 #include "wsrp_Delete.h"
36 #include "wsrp_InvalidResourcePropertyQNameFault.h"
37 #include "wsrp_GetResourceProperty.h"
38 #include "wsrp_Update.h"
39 #include "wsrp_SetResourcePropertyRequestFailedFault.h"
40 #include "wsrp_SetResourceProperties.h"
41 #include "wsrp_QueryResourceProperties.h"
42 #include "wsrp_Insert.h"
43 #include "wsrp_SetResourcePropertiesResponse.h"
44 #include "wsrp_UnableToModifyResourcePropertyFault.h"
45 #include "wsrp_GetMultipleResourceProperties.h"
46 #include "wsrp_QueryEvaluationErrorFault.h"
47 #include "wsrp_GetMultipleResourcePropertiesResponse.h"
48 #include "wsrp_InvalidQueryExpressionFault.h"
49 #include "wsrp_GetResourcePropertyResponse.h"
50 #include "wsrp_UnknownQueryExpressionDialectFault.h"
51 #include "wsrp_InvalidSetResourcePropertiesRequestContentFault.h"
52 #include "wsrp_QueryResourcePropertiesResponse.h"
53 #include "wsrp_ResourceUnknownFault.h"
54 #include "wsrl_UnableToSetTerminationTimeFault.h"
55 #include "wsrl_DestroyResponse.h"
56 #include "wsrl_TerminationTimeChangeRejectedFault.h"
57 #include "wsrl_ResourceUnknownFault.h"
58 #include "wsrl_ScheduledResourceTerminationRP.h"
59 #include "wsrl_Destroy.h"
60 #include "wsrl_SetTerminationTimeResponse.h"
61 #include "wsrl_SetTerminationTime.h"
62 #include "wsrl_ResourceNotDestroyedFault.h"
63 #include "wsa_Relationship.h"
64 #include "wsa_ReferencePropertiesType.h"
65 #include "wsa_ServiceNameType.h"
66 #include "wsa_EndpointReferenceType.h"
67 #include "wsa_RelationshipTypeValues.h"
68 #include "wsa_AttributedURI.h"
69 #include "wsa_AttributedQName.h"
70 #include "wsa_ReplyAfterType.h"
71 #include "wsa_FaultSubcodeValues.h"
72 #include "wsrp_QueryExpressionType.h"
73 #include "wsrp_ResourcePropertyValueChangeNotificationType.h"
74 #include "wsbf_BaseFaultType.h"
75 #include "wssg_AddRefusedFaultType.h"
76 #include "wssg_ServiceGroupRemovalNotificationType.h"
77 #include "wssg_ContentCreationFailedFaultType.h"
78 #include "wssg_EntryType.h"
79 #include "wssg_ContentElementsType.h"
80 #include "wssg_ServiceGroupModificationNotificationType.h"
81 #include "wssg_UnsupportedMemberInterfaceFaultType.h"
82 #include "wsrp_InsertType.h"
83 #include "wsrp_UpdateType.h"
84 #include "wsrp_ResourceUnknownFaultType.h"
85 #include "wsrp_InvalidSetResourcePropertiesRequestContentFaultType.h"
86 #include "wsrp_InvalidQueryExpressionFaultType.h"
87 #include "wsrp_UnknownQueryExpressionDialectFaultType.h"
88 #include "wsrp_SetResourcePropertyRequestFailedFaultType.h"
89 #include "wsrp_QueryEvaluationErrorFaultType.h"
90 #include "wsrp_InvalidResourcePropertyQNameFaultType.h"
91 #include "wsrp_DeleteType.h"
92 #include "wsrp_UnableToModifyResourcePropertyFaultType.h"
93 #include "wsrl_ResourceUnknownFaultType.h"
94 #include "wsrl_ResourceNotDestroyedFaultType.h"
95 #include "wsrl_TerminationTimeChangeRejectedFaultType.h"
96 #include "wsrl_UnableToSetTerminationTimeFaultType.h"
97
98 /* ResourceProperty element QName -> type includes */
99
100 #include "wssg_MembershipContentRuleType.h"
101 #include "wssg_EntryType.h"
102
103 /* ResourceProperty element QName -> type includes */
104
105
106 /* ResourceProperty element QName -> type includes */
107
108 #include "wsa_EndpointReferenceType.h"
109 #include "xsd_anyType.h"
110
111 /* ResourceProperty element QNames */
112
113 xsd_QName ServiceGroupRegistration_MembershipContentRule_rp_qname =
114 {
115     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
116     "MembershipContentRule"
117 };    
118
119 struct globus_xsd_type_info_s ServiceGroupRegistration_MembershipContentRule_rp_info =
120 {
121     &ServiceGroupRegistration_MembershipContentRule_rp_qname,
122     wssg_MembershipContentRuleType_serialize_wrapper,
123     wssg_MembershipContentRuleType_deserialize_pointer_wrapper,
124     wssg_MembershipContentRuleType_init_wrapper,
125     wssg_MembershipContentRuleType_destroy_wrapper,
126     wssg_MembershipContentRuleType_copy_wrapper
127 };
128
129 xsd_QName ServiceGroupRegistration_Entry_rp_qname =
130 {
131     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
132     "Entry"
133 };    
134
135 struct globus_xsd_type_info_s ServiceGroupRegistration_Entry_rp_info =
136 {
137     &ServiceGroupRegistration_Entry_rp_qname,
138     wssg_EntryType_serialize_wrapper,
139     wssg_EntryType_deserialize_pointer_wrapper,
140     wssg_EntryType_init_wrapper,
141     wssg_EntryType_destroy_wrapper,
142     wssg_EntryType_copy_wrapper
143 };
144
145
146 /* ResourceProperty element QNames */
147
148 xsd_QName ServiceGroup_MembershipContentRule_rp_qname =
149 {
150     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
151     "MembershipContentRule"
152 };    
153
154 struct globus_xsd_type_info_s ServiceGroup_MembershipContentRule_rp_info =
155 {
156     &ServiceGroup_MembershipContentRule_rp_qname,
157     wssg_MembershipContentRuleType_serialize_wrapper,
158     wssg_MembershipContentRuleType_deserialize_pointer_wrapper,
159     wssg_MembershipContentRuleType_init_wrapper,
160     wssg_MembershipContentRuleType_destroy_wrapper,
161     wssg_MembershipContentRuleType_copy_wrapper
162 };
163
164 xsd_QName ServiceGroup_Entry_rp_qname =
165 {
166     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
167     "Entry"
168 };    
169
170 struct globus_xsd_type_info_s ServiceGroup_Entry_rp_info =
171 {
172     &ServiceGroup_Entry_rp_qname,
173     wssg_EntryType_serialize_wrapper,
174     wssg_EntryType_deserialize_pointer_wrapper,
175     wssg_EntryType_init_wrapper,
176     wssg_EntryType_destroy_wrapper,
177     wssg_EntryType_copy_wrapper
178 };
179
180
181 /* ResourceProperty element QNames */
182
183 xsd_QName ServiceGroupEntry_ServiceGroupEPR_rp_qname =
184 {
185     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
186     "ServiceGroupEPR"
187 };    
188
189 struct globus_xsd_type_info_s ServiceGroupEntry_ServiceGroupEPR_rp_info =
190 {
191     &ServiceGroupEntry_ServiceGroupEPR_rp_qname,
192     wsa_EndpointReferenceType_serialize_wrapper,
193     wsa_EndpointReferenceType_deserialize_pointer_wrapper,
194     wsa_EndpointReferenceType_init_wrapper,
195     wsa_EndpointReferenceType_destroy_wrapper,
196     wsa_EndpointReferenceType_copy_wrapper
197 };
198
199 xsd_QName ServiceGroupEntry_MemberEPR_rp_qname =
200 {
201     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
202     "MemberEPR"
203 };    
204
205 struct globus_xsd_type_info_s ServiceGroupEntry_MemberEPR_rp_info =
206 {
207     &ServiceGroupEntry_MemberEPR_rp_qname,
208     wsa_EndpointReferenceType_serialize_wrapper,
209     wsa_EndpointReferenceType_deserialize_pointer_wrapper,
210     wsa_EndpointReferenceType_init_wrapper,
211     wsa_EndpointReferenceType_destroy_wrapper,
212     wsa_EndpointReferenceType_copy_wrapper
213 };
214
215 xsd_QName ServiceGroupEntry_Content_rp_qname =
216 {
217     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ServiceGroup-1.2-draft-01.xsd",
218     "Content"
219 };    
220
221 struct globus_xsd_type_info_s ServiceGroupEntry_Content_rp_info =
222 {
223     &ServiceGroupEntry_Content_rp_qname,
224     xsd_anyType_serialize_wrapper,
225     xsd_anyType_deserialize_pointer_wrapper,
226     xsd_anyType_init_wrapper,
227     xsd_anyType_destroy_wrapper,
228     xsd_anyType_copy_wrapper
229 };
230                 
231
232
233 static globus_xsd_type_info_t       ServiceGroupEntryService_l_types[] = {
234     /* Elements */
235     &wsa_From_info,
236     &wsa_FaultTo_info,
237     &wsa_RelatesTo_info,
238     &wsa_Action_info,
239     &wsa_ReplyAfter_info,
240     &wsa_EndpointReference_info,
241     &wsa_MessageID_info,
242     &wsa_ReplyTo_info,
243     &wsa_To_info,
244     &wsrl_TerminationTime_info,
245     &wsrl_TerminationNotification_info,
246     &wsrl_CurrentTime_info,
247     &wsrp_QueryExpression_info,
248     &wsrp_ResourcePropertyValueChangeNotification_info,
249     &wsbf_BaseFault_info,
250     &wssg_MemberEPR_info,
251     &wssg_EntryRemovalNotification_info,
252     &wssg_ServiceGroupRP_info,
253     &wssg_AddResponse_info,
254     &wssg_ContentCreationFailedFault_info,
255     &wssg_UnsupportedMemberInterfaceFault_info,
256     &wssg_ServiceGroupEPR_info,
257     &wssg_MembershipContentRule_info,
258     &wssg_Add_info,
259     &wssg_AddRefusedFault_info,
260     &wssg_Entry_info,
261     &wssg_ServiceGroupEntryRP_info,
262     &wssg_EntryAdditionNotification_info,
263     &wssg_Content_info,
264     &wsrp_Delete_info,
265     &wsrp_InvalidResourcePropertyQNameFault_info,
266     &wsrp_GetResourceProperty_info,
267     &wsrp_Update_info,
268     &wsrp_SetResourcePropertyRequestFailedFault_info,
269     &wsrp_SetResourceProperties_info,
270     &wsrp_QueryResourceProperties_info,
271     &wsrp_Insert_info,
272     &wsrp_SetResourcePropertiesResponse_info,
273     &wsrp_UnableToModifyResourcePropertyFault_info,
274     &wsrp_GetMultipleResourceProperties_info,
275     &wsrp_QueryEvaluationErrorFault_info,
276     &wsrp_GetMultipleResourcePropertiesResponse_info,
277     &wsrp_InvalidQueryExpressionFault_info,
278     &wsrp_GetResourcePropertyResponse_info,
279     &wsrp_UnknownQueryExpressionDialectFault_info,
280     &wsrp_InvalidSetResourcePropertiesRequestContentFault_info,
281     &wsrp_QueryResourcePropertiesResponse_info,
282     &wsrp_ResourceUnknownFault_info,
283     &wsrl_UnableToSetTerminationTimeFault_info,
284     &wsrl_DestroyResponse_info,
285     &wsrl_TerminationTimeChangeRejectedFault_info,
286     &wsrl_ResourceUnknownFault_info,
287     &wsrl_ScheduledResourceTerminationRP_info,
288     &wsrl_Destroy_info,
289     &wsrl_SetTerminationTimeResponse_info,
290     &wsrl_SetTerminationTime_info,
291     &wsrl_ResourceNotDestroyedFault_info,
292     /* Types */
293     &wsa_Relationship_info,
294     &wsa_ReferencePropertiesType_info,
295     &wsa_ServiceNameType_info,
296     &wsa_EndpointReferenceType_info,
297     &wsa_RelationshipTypeValues_info,
298     &wsa_AttributedURI_info,
299     &wsa_AttributedQName_info,
300     &wsa_ReplyAfterType_info,
301     &wsa_FaultSubcodeValues_info,
302     &wsrp_QueryExpressionType_info,
303     &wsrp_ResourcePropertyValueChangeNotificationType_info,
304     &wsbf_BaseFaultType_info,
305     &wssg_AddRefusedFaultType_info,
306     &wssg_ServiceGroupRemovalNotificationType_info,
307     &wssg_ContentCreationFailedFaultType_info,
308     &wssg_EntryType_info,
309     &wssg_ContentElementsType_info,
310     &wssg_ServiceGroupModificationNotificationType_info,
311     &wssg_UnsupportedMemberInterfaceFaultType_info,
312     &wsrp_InsertType_info,
313     &wsrp_UpdateType_info,
314     &wsrp_ResourceUnknownFaultType_info,
315     &wsrp_InvalidSetResourcePropertiesRequestContentFaultType_info,
316     &wsrp_InvalidQueryExpressionFaultType_info,
317     &wsrp_UnknownQueryExpressionDialectFaultType_info,
318     &wsrp_SetResourcePropertyRequestFailedFaultType_info,
319     &wsrp_QueryEvaluationErrorFaultType_info,
320     &wsrp_InvalidResourcePropertyQNameFaultType_info,
321     &wsrp_DeleteType_info,
322     &wsrp_UnableToModifyResourcePropertyFaultType_info,
323     &wsrl_ResourceUnknownFaultType_info,
324     &wsrl_ResourceNotDestroyedFaultType_info,
325     &wsrl_TerminationTimeChangeRejectedFaultType_info,
326     &wsrl_UnableToSetTerminationTimeFaultType_info,
327     /* ResourceProperty element QName -> type info mappings */
328      &ServiceGroupRegistration_MembershipContentRule_rp_info,
329      &ServiceGroupRegistration_Entry_rp_info,
330     /* ResourceProperty element QName -> type info mappings */
331      &ServiceGroup_MembershipContentRule_rp_info,
332      &ServiceGroup_Entry_rp_info,
333     /* ResourceProperty element QName -> type info mappings */
334      &ServiceGroupEntry_ServiceGroupEPR_rp_info,
335      &ServiceGroupEntry_MemberEPR_rp_info,
336      &ServiceGroupEntry_Content_rp_info,
337
338     NULL
339 };
340
341 globus_result_t
342 ServiceGroupEntryService_registry_add_types(
343     globus_xsd_type_registry_t          registry)
344 28 {
345 28     globus_result_t                     result = GLOBUS_SUCCESS;
346 28     globus_xsd_type_info_t *            type = ServiceGroupEntryService_l_types;
347 28     GlobusFuncName(ServiceGroupEntryService_registry_add_types);
348 28     GlobusSoapMessageDebugEnter();
349
350 2772     while (*type != NULL)
351     {
352 2744         result = globus_xsd_type_registry_insert(
353             registry,
354             *type,
355             NULL);
356
357 2744         if (result != GLOBUS_SUCCESS)
358         {
359 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
360                 result,
361                 (*type)->type->Namespace,
362                 (*type)->type->local);
363
364 0             goto exit;
365         }
366 2744         type++;
367     }
368
369   exit:
370
371 28     GlobusSoapMessageDebugExit(); 
372 28     return result;
373 }
374 /* ServiceGroupEntryService_registry_add_types() */
375
376 globus_result_t
377 ServiceGroupEntryService_registry_remove_types(
378     globus_xsd_type_registry_t          registry)
379 22 {
380 22     globus_result_t                     result = GLOBUS_SUCCESS;
381 22     globus_xsd_type_info_t *            type = ServiceGroupEntryService_l_types;
382 22     GlobusFuncName(ServiceGroupEntryService_registry_remove_types);
383 22     GlobusSoapMessageDebugEnter();
384
385
386 2178     while (*type != NULL)
387     {
388 2156         result = globus_xsd_type_registry_remove(
389             registry, 
390             (*type)->type,
391             NULL);
392
393 2156         if(result != GLOBUS_SUCCESS)
394         {
395 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
396                 result, 
397                 (*type)->type->Namespace,
398                 (*type)->type->local);
399 0             goto exit;
400         }
401 2156         type++;
402     }
403   
404   exit:
405
406 22     GlobusSoapMessageDebugExit(); 
407 22     return result;
408 }