1
2 #include "SecureCounterService.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 "wsbf_BaseFault.h"
19 #include "wsrp_Delete.h"
20 #include "wsrp_InvalidResourcePropertyQNameFault.h"
21 #include "wsrp_GetResourceProperty.h"
22 #include "wsrp_Update.h"
23 #include "wsrp_SetResourcePropertyRequestFailedFault.h"
24 #include "wsrp_SetResourceProperties.h"
25 #include "wsrp_QueryResourceProperties.h"
26 #include "wsrp_Insert.h"
27 #include "wsrp_SetResourcePropertiesResponse.h"
28 #include "wsrp_UnableToModifyResourcePropertyFault.h"
29 #include "wsrp_GetMultipleResourceProperties.h"
30 #include "wsrp_QueryEvaluationErrorFault.h"
31 #include "wsrp_QueryExpression.h"
32 #include "wsrp_GetMultipleResourcePropertiesResponse.h"
33 #include "wsrp_InvalidQueryExpressionFault.h"
34 #include "wsrp_GetResourcePropertyResponse.h"
35 #include "wsrp_UnknownQueryExpressionDialectFault.h"
36 #include "wsrp_ResourcePropertyValueChangeNotification.h"
37 #include "wsrp_InvalidSetResourcePropertiesRequestContentFault.h"
38 #include "wsrp_QueryResourcePropertiesResponse.h"
39 #include "wsrp_ResourceUnknownFault.h"
40 #include "wsnt_CreationTime.h"
41 #include "wsnt_FixedTopicSet.h"
42 #include "wsnt_UseNotify.h"
43 #include "wsnt_Precondition.h"
44 #include "wsnt_Subscribe.h"
45 #include "wsnt_ConsumerReference.h"
46 #include "wsnt_Selector.h"
47 #include "wsnt_SubscriptionPolicy.h"
48 #include "wsnt_TopicExpression.h"
49 #include "wsnt_TopicExpressionDialects.h"
50 #include "wsnt_Topic.h"
51 #include "createCounterResponse.h"
52 #include "addResponse.h"
53 #include "Value.h"
54 #include "add.h"
55 #include "createCounter.h"
56 #include "CounterRP.h"
57 #include "wsnt_SubscriptionManagerRP.h"
58 #include "wsnt_SubscribeResponse.h"
59 #include "wsnt_TopicNotSupportedFault.h"
60 #include "wsnt_ResumeSubscription.h"
61 #include "wsnt_Notify.h"
62 #include "wsnt_PauseSubscription.h"
63 #include "wsnt_NotificationProducerRP.h"
64 #include "wsnt_GetCurrentMessageResponse.h"
65 #include "wsnt_PauseSubscriptionResponse.h"
66 #include "wsnt_ResumeSubscriptionResponse.h"
67 #include "wsnt_ResourceUnknownFault.h"
68 #include "wsnt_TopicPathDialectUnknownFault.h"
69 #include "wsnt_PauseFailedFault.h"
70 #include "wsnt_InvalidTopicExpressionFault.h"
71 #include "wsnt_NoCurrentMessageOnTopicFault.h"
72 #include "wsnt_ResumeFailedFault.h"
73 #include "wsnt_GetCurrentMessage.h"
74 #include "wsnt_SubscribeCreationFailedFault.h"
75 #include "wsrl_UnableToSetTerminationTimeFault.h"
76 #include "wsrl_DestroyResponse.h"
77 #include "wsrl_TerminationTimeChangeRejectedFault.h"
78 #include "wsrl_ResourceUnknownFault.h"
79 #include "wsrl_ScheduledResourceTerminationRP.h"
80 #include "wsrl_Destroy.h"
81 #include "wsrl_SetTerminationTimeResponse.h"
82 #include "wsrl_SetTerminationTime.h"
83 #include "wsrl_ResourceNotDestroyedFault.h"
84 #include "createCounterResponseType.h"
85 #include "createCounterType.h"
86 #include "CounterRPType.h"
87 #include "wsa_Relationship.h"
88 #include "wsa_ReferencePropertiesType.h"
89 #include "wsa_ServiceNameType.h"
90 #include "wsa_EndpointReferenceType.h"
91 #include "wsa_RelationshipTypeValues.h"
92 #include "wsa_AttributedURI.h"
93 #include "wsa_AttributedQName.h"
94 #include "wsa_ReplyAfterType.h"
95 #include "wsa_FaultSubcodeValues.h"
96 #include "wsbf_BaseFaultType.h"
97 #include "wsrp_InsertType.h"
98 #include "wsrp_UpdateType.h"
99 #include "wsrp_ResourcePropertyValueChangeNotificationType.h"
100 #include "wsrp_QueryExpressionType.h"
101 #include "wsrp_ResourceUnknownFaultType.h"
102 #include "wsrp_InvalidSetResourcePropertiesRequestContentFaultType.h"
103 #include "wsrp_InvalidQueryExpressionFaultType.h"
104 #include "wsrp_UnknownQueryExpressionDialectFaultType.h"
105 #include "wsrp_SetResourcePropertyRequestFailedFaultType.h"
106 #include "wsrp_QueryEvaluationErrorFaultType.h"
107 #include "wsrp_InvalidResourcePropertyQNameFaultType.h"
108 #include "wsrp_DeleteType.h"
109 #include "wsrp_UnableToModifyResourcePropertyFaultType.h"
110 #include "wsnt_TopicExpressionType.h"
111 #include "wsnt_TopicPathDialectUnknownFaultType.h"
112 #include "wsnt_SubscribeCreationFailedFaultType.h"
113 #include "wsnt_NotificationMessageHolderType.h"
114 #include "wsnt_ResourceUnknownFaultType.h"
115 #include "wsnt_InvalidTopicExpressionFaultType.h"
116 #include "wsnt_NoCurrentMessageOnTopicFaultType.h"
117 #include "wsnt_PauseFailedFaultType.h"
118 #include "wsnt_ResumeFailedFaultType.h"
119 #include "wsnt_TopicNotSupportedFaultType.h"
120 #include "wsrl_ResourceUnknownFaultType.h"
121 #include "wsrl_ResourceNotDestroyedFaultType.h"
122 #include "wsrl_TerminationTimeChangeRejectedFaultType.h"
123 #include "wsrl_UnableToSetTerminationTimeFaultType.h"
124
125 /* ResourceProperty element QName -> type includes */
126
127 #include "xsd_int.h"
128 #include "wsnt_TopicExpressionType.h"
129 #include "xsd_anyURI.h"
130 #include "xsd_dateTime.h"
131 #include "xsd_boolean.h"
132
133 /* ResourceProperty element QNames */
134
135 xsd_QName CounterPortType_Value_rp_qname =
136 {
137     "http://counter.com",
138     "Value"
139 };    
140
141 struct globus_xsd_type_info_s CounterPortType_Value_rp_info =
142 {
143     &CounterPortType_Value_rp_qname,
144     xsd_int_serialize_wrapper,
145     xsd_int_deserialize_pointer_wrapper,
146     xsd_int_init_wrapper,
147     xsd_int_destroy_wrapper,
148     xsd_int_copy_wrapper
149 };
150
151 xsd_QName CounterPortType_Topic_rp_qname =
152 {
153     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
154     "Topic"
155 };    
156
157 struct globus_xsd_type_info_s CounterPortType_Topic_rp_info =
158 {
159     &CounterPortType_Topic_rp_qname,
160     wsnt_TopicExpressionType_serialize_wrapper,
161     wsnt_TopicExpressionType_deserialize_pointer_wrapper,
162     wsnt_TopicExpressionType_init_wrapper,
163     wsnt_TopicExpressionType_destroy_wrapper,
164     wsnt_TopicExpressionType_copy_wrapper
165 };
166
167 xsd_QName CounterPortType_TopicExpressionDialects_rp_qname =
168 {
169     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
170     "TopicExpressionDialects"
171 };    
172
173 struct globus_xsd_type_info_s CounterPortType_TopicExpressionDialects_rp_info =
174 {
175     &CounterPortType_TopicExpressionDialects_rp_qname,
176     xsd_anyURI_serialize_wrapper,
177     xsd_anyURI_deserialize_pointer_wrapper,
178     xsd_anyURI_init_wrapper,
179     xsd_anyURI_destroy_wrapper,
180     xsd_anyURI_copy_wrapper
181 };
182
183 xsd_QName CounterPortType_TerminationTime_rp_qname =
184 {
185     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd",
186     "TerminationTime"
187 };    
188
189 struct globus_xsd_type_info_s CounterPortType_TerminationTime_rp_info =
190 {
191     &CounterPortType_TerminationTime_rp_qname,
192     xsd_dateTime_serialize_wrapper,
193     xsd_dateTime_deserialize_pointer_wrapper,
194     xsd_dateTime_init_wrapper,
195     xsd_dateTime_destroy_wrapper,
196     xsd_dateTime_copy_wrapper
197 };
198
199 xsd_QName CounterPortType_CurrentTime_rp_qname =
200 {
201     "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd",
202     "CurrentTime"
203 };    
204
205 struct globus_xsd_type_info_s CounterPortType_CurrentTime_rp_info =
206 {
207     &CounterPortType_CurrentTime_rp_qname,
208     xsd_dateTime_serialize_wrapper,
209     xsd_dateTime_deserialize_pointer_wrapper,
210     xsd_dateTime_init_wrapper,
211     xsd_dateTime_destroy_wrapper,
212     xsd_dateTime_copy_wrapper
213 };
214
215 xsd_QName CounterPortType_FixedTopicSet_rp_qname =
216 {
217     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
218     "FixedTopicSet"
219 };    
220
221 struct globus_xsd_type_info_s CounterPortType_FixedTopicSet_rp_info =
222 {
223     &CounterPortType_FixedTopicSet_rp_qname,
224     xsd_boolean_serialize_wrapper,
225     xsd_boolean_deserialize_pointer_wrapper,
226     xsd_boolean_init_wrapper,
227     xsd_boolean_destroy_wrapper,
228     xsd_boolean_copy_wrapper
229 };
230                 
231
232
233 static globus_xsd_type_info_t       SecureCounterService_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     &wsbf_BaseFault_info,
248     &wsrp_Delete_info,
249     &wsrp_InvalidResourcePropertyQNameFault_info,
250     &wsrp_GetResourceProperty_info,
251     &wsrp_Update_info,
252     &wsrp_SetResourcePropertyRequestFailedFault_info,
253     &wsrp_SetResourceProperties_info,
254     &wsrp_QueryResourceProperties_info,
255     &wsrp_Insert_info,
256     &wsrp_SetResourcePropertiesResponse_info,
257     &wsrp_UnableToModifyResourcePropertyFault_info,
258     &wsrp_GetMultipleResourceProperties_info,
259     &wsrp_QueryEvaluationErrorFault_info,
260     &wsrp_QueryExpression_info,
261     &wsrp_GetMultipleResourcePropertiesResponse_info,
262     &wsrp_InvalidQueryExpressionFault_info,
263     &wsrp_GetResourcePropertyResponse_info,
264     &wsrp_UnknownQueryExpressionDialectFault_info,
265     &wsrp_ResourcePropertyValueChangeNotification_info,
266     &wsrp_InvalidSetResourcePropertiesRequestContentFault_info,
267     &wsrp_QueryResourcePropertiesResponse_info,
268     &wsrp_ResourceUnknownFault_info,
269     &wsnt_CreationTime_info,
270     &wsnt_FixedTopicSet_info,
271     &wsnt_UseNotify_info,
272     &wsnt_Precondition_info,
273     &wsnt_Subscribe_info,
274     &wsnt_ConsumerReference_info,
275     &wsnt_Selector_info,
276     &wsnt_SubscriptionPolicy_info,
277     &wsnt_TopicExpression_info,
278     &wsnt_TopicExpressionDialects_info,
279     &wsnt_Topic_info,
280     &createCounterResponse_info,
281     &addResponse_info,
282     &Value_info,
283     &add_info,
284     &createCounter_info,
285     &CounterRP_info,
286     &wsnt_SubscriptionManagerRP_info,
287     &wsnt_SubscribeResponse_info,
288     &wsnt_TopicNotSupportedFault_info,
289     &wsnt_ResumeSubscription_info,
290     &wsnt_Notify_info,
291     &wsnt_PauseSubscription_info,
292     &wsnt_NotificationProducerRP_info,
293     &wsnt_GetCurrentMessageResponse_info,
294     &wsnt_PauseSubscriptionResponse_info,
295     &wsnt_ResumeSubscriptionResponse_info,
296     &wsnt_ResourceUnknownFault_info,
297     &wsnt_TopicPathDialectUnknownFault_info,
298     &wsnt_PauseFailedFault_info,
299     &wsnt_InvalidTopicExpressionFault_info,
300     &wsnt_NoCurrentMessageOnTopicFault_info,
301     &wsnt_ResumeFailedFault_info,
302     &wsnt_GetCurrentMessage_info,
303     &wsnt_SubscribeCreationFailedFault_info,
304     &wsrl_UnableToSetTerminationTimeFault_info,
305     &wsrl_DestroyResponse_info,
306     &wsrl_TerminationTimeChangeRejectedFault_info,
307     &wsrl_ResourceUnknownFault_info,
308     &wsrl_ScheduledResourceTerminationRP_info,
309     &wsrl_Destroy_info,
310     &wsrl_SetTerminationTimeResponse_info,
311     &wsrl_SetTerminationTime_info,
312     &wsrl_ResourceNotDestroyedFault_info,
313     /* Types */
314     &createCounterResponseType_info,
315     &createCounterType_info,
316     &CounterRPType_info,
317     &wsa_Relationship_info,
318     &wsa_ReferencePropertiesType_info,
319     &wsa_ServiceNameType_info,
320     &wsa_EndpointReferenceType_info,
321     &wsa_RelationshipTypeValues_info,
322     &wsa_AttributedURI_info,
323     &wsa_AttributedQName_info,
324     &wsa_ReplyAfterType_info,
325     &wsa_FaultSubcodeValues_info,
326     &wsbf_BaseFaultType_info,
327     &wsrp_InsertType_info,
328     &wsrp_UpdateType_info,
329     &wsrp_ResourcePropertyValueChangeNotificationType_info,
330     &wsrp_QueryExpressionType_info,
331     &wsrp_ResourceUnknownFaultType_info,
332     &wsrp_InvalidSetResourcePropertiesRequestContentFaultType_info,
333     &wsrp_InvalidQueryExpressionFaultType_info,
334     &wsrp_UnknownQueryExpressionDialectFaultType_info,
335     &wsrp_SetResourcePropertyRequestFailedFaultType_info,
336     &wsrp_QueryEvaluationErrorFaultType_info,
337     &wsrp_InvalidResourcePropertyQNameFaultType_info,
338     &wsrp_DeleteType_info,
339     &wsrp_UnableToModifyResourcePropertyFaultType_info,
340     &wsnt_TopicExpressionType_info,
341     &wsnt_TopicPathDialectUnknownFaultType_info,
342     &wsnt_SubscribeCreationFailedFaultType_info,
343     &wsnt_NotificationMessageHolderType_info,
344     &wsnt_ResourceUnknownFaultType_info,
345     &wsnt_InvalidTopicExpressionFaultType_info,
346     &wsnt_NoCurrentMessageOnTopicFaultType_info,
347     &wsnt_PauseFailedFaultType_info,
348     &wsnt_ResumeFailedFaultType_info,
349     &wsnt_TopicNotSupportedFaultType_info,
350     &wsrl_ResourceUnknownFaultType_info,
351     &wsrl_ResourceNotDestroyedFaultType_info,
352     &wsrl_TerminationTimeChangeRejectedFaultType_info,
353     &wsrl_UnableToSetTerminationTimeFaultType_info,
354     /* ResourceProperty element QName -> type info mappings */
355      &CounterPortType_Value_rp_info,
356      &CounterPortType_Topic_rp_info,
357      &CounterPortType_TopicExpressionDialects_rp_info,
358      &CounterPortType_TerminationTime_rp_info,
359      &CounterPortType_CurrentTime_rp_info,
360      &CounterPortType_FixedTopicSet_rp_info,
361
362     NULL
363 };
364
365 globus_result_t
366 SecureCounterService_registry_add_types(
367     globus_xsd_type_registry_t          registry)
368 0 {
369 0     globus_result_t                     result = GLOBUS_SUCCESS;
370 0     globus_xsd_type_info_t *            type = SecureCounterService_l_types;
371 0     GlobusFuncName(SecureCounterService_registry_add_types);
372 0     GlobusSoapMessageDebugEnter();
373
374 0     while (*type != NULL)
375     {
376 0         result = globus_xsd_type_registry_insert(
377             registry,
378             *type,
379             NULL);
380
381 0         if (result != GLOBUS_SUCCESS)
382         {
383 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
384                 result,
385                 (*type)->type->Namespace,
386                 (*type)->type->local);
387
388 0             goto exit;
389         }
390 0         type++;
391     }
392
393   exit:
394
395 0     GlobusSoapMessageDebugExit(); 
396 0     return result;
397 }
398 /* SecureCounterService_registry_add_types() */
399
400 globus_result_t
401 SecureCounterService_registry_remove_types(
402     globus_xsd_type_registry_t          registry)
403 0 {
404 0     globus_result_t                     result = GLOBUS_SUCCESS;
405 0     globus_xsd_type_info_t *            type = SecureCounterService_l_types;
406 0     GlobusFuncName(SecureCounterService_registry_remove_types);
407 0     GlobusSoapMessageDebugEnter();
408
409
410 0     while (*type != NULL)
411     {
412 0         result = globus_xsd_type_registry_remove(
413             registry, 
414             (*type)->type,
415             NULL);
416
417 0         if(result != GLOBUS_SUCCESS)
418         {
419 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
420                 result, 
421                 (*type)->type->Namespace,
422                 (*type)->type->local);
423 0             goto exit;
424         }
425 0         type++;
426     }
427   
428   exit:
429
430 0     GlobusSoapMessageDebugExit(); 
431 0     return result;
432 }