1
2 #include "NotificationProducerTestService.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 "wsbf_BaseFault.h"
16 #include "wsrl_UnableToSetTerminationTimeFault.h"
17 #include "wsrl_TerminationTime.h"
18 #include "wsrl_DestroyResponse.h"
19 #include "wsrl_TerminationTimeChangeRejectedFault.h"
20 #include "wsrl_TerminationNotification.h"
21 #include "wsrl_ResourceUnknownFault.h"
22 #include "wsrl_ScheduledResourceTerminationRP.h"
23 #include "wsrl_Destroy.h"
24 #include "wsrl_SetTerminationTimeResponse.h"
25 #include "wsrl_CurrentTime.h"
26 #include "wsrl_SetTerminationTime.h"
27 #include "wsrl_ResourceNotDestroyedFault.h"
28 #include "wsrp_Delete.h"
29 #include "wsrp_InvalidResourcePropertyQNameFault.h"
30 #include "wsrp_GetResourceProperty.h"
31 #include "wsrp_Update.h"
32 #include "wsrp_SetResourcePropertyRequestFailedFault.h"
33 #include "wsrp_SetResourceProperties.h"
34 #include "wsrp_QueryResourceProperties.h"
35 #include "wsrp_Insert.h"
36 #include "wsrp_SetResourcePropertiesResponse.h"
37 #include "wsrp_UnableToModifyResourcePropertyFault.h"
38 #include "wsrp_GetMultipleResourceProperties.h"
39 #include "wsrp_QueryEvaluationErrorFault.h"
40 #include "wsrp_QueryExpression.h"
41 #include "wsrp_GetMultipleResourcePropertiesResponse.h"
42 #include "wsrp_InvalidQueryExpressionFault.h"
43 #include "wsrp_GetResourcePropertyResponse.h"
44 #include "wsrp_UnknownQueryExpressionDialectFault.h"
45 #include "wsrp_ResourcePropertyValueChangeNotification.h"
46 #include "wsrp_InvalidSetResourcePropertiesRequestContentFault.h"
47 #include "wsrp_QueryResourcePropertiesResponse.h"
48 #include "wsrp_ResourceUnknownFault.h"
49 #include "rptest_TestStep.h"
50 #include "rptest_TestCase.h"
51 #include "rptest_SetResourcePropertiesTest.h"
52 #include "rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties.h"
53 #include "rptest_QName.h"
54 #include "rptest_TypeQName.h"
55 #include "rptest_GetMultipleResourcePropertiesTest.h"
56 #include "rptest_CreateResourcePropertiesTestResponse.h"
57 #include "rptest_Fault.h"
58 #include "rptest_QueryResourcePropertiesTest.h"
59 #include "rptest_CreateResourcePropertiesTest.h"
60 #include "rptest_GetResourcePropertyTest.h"
61 #include "rptest_ResourcePropertyDefinition.h"
62 #include "wsnt_CreationTime.h"
63 #include "wsnt_FixedTopicSet.h"
64 #include "wsnt_UseNotify.h"
65 #include "wsnt_Precondition.h"
66 #include "wsnt_Subscribe.h"
67 #include "wsnt_ConsumerReference.h"
68 #include "wsnt_Selector.h"
69 #include "wsnt_SubscriptionPolicy.h"
70 #include "wsnt_TopicExpression.h"
71 #include "wsnt_TopicExpressionDialects.h"
72 #include "wsnt_Topic.h"
73 #include "nptest_TopicValue.h"
74 #include "nptest_SetTopicValueResponse.h"
75 #include "nptest_GetCurrentMessageTest.h"
76 #include "nptest_SetTopicValue.h"
77 #include "nptest_CreateTopic.h"
78 #include "nptest_TopicElementTypeQName.h"
79 #include "nptest_EndpointReference.h"
80 #include "nptest_CreateConsumerTest.h"
81 #include "nptest_DestroyTopic.h"
82 #include "nptest_SubscribeTest.h"
83 #include "nptest_CreateTopicTest.h"
84 #include "nptest_CreateTopicResponse.h"
85 #include "nptest_TopicDefinition.h"
86 #include "nptest_DestroyTopicTest.h"
87 #include "nptest_CreateNotificationProducerTest.h"
88 #include "nptest_Fault.h"
89 #include "nptest_TestStep.h"
90 #include "nptest_TestCase.h"
91 #include "nptest_NotificationProducerTestPortTypeGTWSDLResourceProperties.h"
92 #include "nptest_GetResourcePropertyTest.h"
93 #include "nptest_SetTopicValueTest.h"
94 #include "nptest_ExpectNotificationTest.h"
95 #include "nptest_ConsumerTag.h"
96 #include "nptest_DestroyTopicResponse.h"
97 #include "nptest_CreateNotificationProducerTestResponse.h"
98 #include "wsnt_SubscriptionManagerRP.h"
99 #include "wsnt_SubscribeResponse.h"
100 #include "wsnt_TopicNotSupportedFault.h"
101 #include "wsnt_ResumeSubscription.h"
102 #include "wsnt_Notify.h"
103 #include "wsnt_PauseSubscription.h"
104 #include "wsnt_NotificationProducerRP.h"
105 #include "wsnt_GetCurrentMessageResponse.h"
106 #include "wsnt_PauseSubscriptionResponse.h"
107 #include "wsnt_ResumeSubscriptionResponse.h"
108 #include "wsnt_ResourceUnknownFault.h"
109 #include "wsnt_TopicPathDialectUnknownFault.h"
110 #include "wsnt_PauseFailedFault.h"
111 #include "wsnt_InvalidTopicExpressionFault.h"
112 #include "wsnt_NoCurrentMessageOnTopicFault.h"
113 #include "wsnt_ResumeFailedFault.h"
114 #include "wsnt_GetCurrentMessage.h"
115 #include "wsnt_SubscribeCreationFailedFault.h"
116 #include "nptest_GetCurrentMessageTestType.h"
117 #include "nptest_SetTopicValueType.h"
118 #include "nptest_CreateTopicType.h"
119 #include "nptest_CreateConsumerTestType.h"
120 #include "wsnt_TopicExpressionType.h"
121 #include "nptest_SubscribeTestType.h"
122 #include "nptest_CreateTopicTestType.h"
123 #include "nptest_TopicDefinitionType.h"
124 #include "nptest_DestroyTopicTestType.h"
125 #include "nptest_FaultType.h"
126 #include "nptest_TestStepType.h"
127 #include "nptest_TestCaseType.h"
128 #include "nptest_NotificationProducerTestPortTypeGTWSDLResourcePropertiesType.h"
129 #include "nptest_GetResourcePropertyTestType.h"
130 #include "nptest_SetTopicValueTestType.h"
131 #include "nptest_ExpectNotificationTestType.h"
132 #include "nptest_CreateNotificationProducerTestResponseType.h"
133 #include "wsa_Relationship.h"
134 #include "wsa_ReferencePropertiesType.h"
135 #include "wsa_ServiceNameType.h"
136 #include "wsa_EndpointReferenceType.h"
137 #include "wsa_RelationshipTypeValues.h"
138 #include "wsa_AttributedURI.h"
139 #include "wsa_AttributedQName.h"
140 #include "wsa_ReplyAfterType.h"
141 #include "wsa_FaultSubcodeValues.h"
142 #include "wsbf_BaseFaultType.h"
143 #include "wsrl_ResourceUnknownFaultType.h"
144 #include "wsrl_ResourceNotDestroyedFaultType.h"
145 #include "wsrl_TerminationTimeChangeRejectedFaultType.h"
146 #include "wsrl_UnableToSetTerminationTimeFaultType.h"
147 #include "wsrp_InsertType.h"
148 #include "wsrp_UpdateType.h"
149 #include "wsrp_ResourcePropertyValueChangeNotificationType.h"
150 #include "wsrp_QueryExpressionType.h"
151 #include "wsrp_ResourceUnknownFaultType.h"
152 #include "wsrp_InvalidSetResourcePropertiesRequestContentFaultType.h"
153 #include "wsrp_InvalidQueryExpressionFaultType.h"
154 #include "wsrp_UnknownQueryExpressionDialectFaultType.h"
155 #include "wsrp_SetResourcePropertyRequestFailedFaultType.h"
156 #include "wsrp_QueryEvaluationErrorFaultType.h"
157 #include "wsrp_InvalidResourcePropertyQNameFaultType.h"
158 #include "wsrp_DeleteType.h"
159 #include "wsrp_UnableToModifyResourcePropertyFaultType.h"
160 #include "wsnt_TopicPathDialectUnknownFaultType.h"
161 #include "wsnt_SubscribeCreationFailedFaultType.h"
162 #include "wsnt_NotificationMessageHolderType.h"
163 #include "wsnt_ResourceUnknownFaultType.h"
164 #include "wsnt_InvalidTopicExpressionFaultType.h"
165 #include "wsnt_NoCurrentMessageOnTopicFaultType.h"
166 #include "wsnt_PauseFailedFaultType.h"
167 #include "wsnt_ResumeFailedFaultType.h"
168 #include "wsnt_TopicNotSupportedFaultType.h"
169
170 /* ResourceProperty element QName -> type includes */
171
172 #include "wsnt_TopicExpressionType.h"
173 #include "xsd_anyURI.h"
174 #include "xsd_boolean.h"
175
176 /* ResourceProperty element QNames */
177
178 xsd_QName NotificationProducerTestPortType_Topic_rp_qname =
179 {
180     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
181     "Topic"
182 };    
183
184 struct globus_xsd_type_info_s NotificationProducerTestPortType_Topic_rp_info =
185 {
186     &NotificationProducerTestPortType_Topic_rp_qname,
187     wsnt_TopicExpressionType_serialize_wrapper,
188     wsnt_TopicExpressionType_deserialize_pointer_wrapper,
189     wsnt_TopicExpressionType_init_wrapper,
190     wsnt_TopicExpressionType_destroy_wrapper,
191     wsnt_TopicExpressionType_copy_wrapper
192 };
193
194 xsd_QName NotificationProducerTestPortType_TopicExpressionDialects_rp_qname =
195 {
196     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
197     "TopicExpressionDialects"
198 };    
199
200 struct globus_xsd_type_info_s NotificationProducerTestPortType_TopicExpressionDialects_rp_info =
201 {
202     &NotificationProducerTestPortType_TopicExpressionDialects_rp_qname,
203     xsd_anyURI_serialize_wrapper,
204     xsd_anyURI_deserialize_pointer_wrapper,
205     xsd_anyURI_init_wrapper,
206     xsd_anyURI_destroy_wrapper,
207     xsd_anyURI_copy_wrapper
208 };
209
210 xsd_QName NotificationProducerTestPortType_FixedTopicSet_rp_qname =
211 {
212     "http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd",
213     "FixedTopicSet"
214 };    
215
216 struct globus_xsd_type_info_s NotificationProducerTestPortType_FixedTopicSet_rp_info =
217 {
218     &NotificationProducerTestPortType_FixedTopicSet_rp_qname,
219     xsd_boolean_serialize_wrapper,
220     xsd_boolean_deserialize_pointer_wrapper,
221     xsd_boolean_init_wrapper,
222     xsd_boolean_destroy_wrapper,
223     xsd_boolean_copy_wrapper
224 };
225                 
226
227
228 static globus_xsd_type_info_t       NotificationProducerTestService_l_types[] = {
229     /* Elements */
230     &wsa_From_info,
231     &wsa_FaultTo_info,
232     &wsa_RelatesTo_info,
233     &wsa_Action_info,
234     &wsa_ReplyAfter_info,
235     &wsa_EndpointReference_info,
236     &wsa_MessageID_info,
237     &wsa_ReplyTo_info,
238     &wsa_To_info,
239     &wsbf_BaseFault_info,
240     &wsrl_UnableToSetTerminationTimeFault_info,
241     &wsrl_TerminationTime_info,
242     &wsrl_DestroyResponse_info,
243     &wsrl_TerminationTimeChangeRejectedFault_info,
244     &wsrl_TerminationNotification_info,
245     &wsrl_ResourceUnknownFault_info,
246     &wsrl_ScheduledResourceTerminationRP_info,
247     &wsrl_Destroy_info,
248     &wsrl_SetTerminationTimeResponse_info,
249     &wsrl_CurrentTime_info,
250     &wsrl_SetTerminationTime_info,
251     &wsrl_ResourceNotDestroyedFault_info,
252     &wsrp_Delete_info,
253     &wsrp_InvalidResourcePropertyQNameFault_info,
254     &wsrp_GetResourceProperty_info,
255     &wsrp_Update_info,
256     &wsrp_SetResourcePropertyRequestFailedFault_info,
257     &wsrp_SetResourceProperties_info,
258     &wsrp_QueryResourceProperties_info,
259     &wsrp_Insert_info,
260     &wsrp_SetResourcePropertiesResponse_info,
261     &wsrp_UnableToModifyResourcePropertyFault_info,
262     &wsrp_GetMultipleResourceProperties_info,
263     &wsrp_QueryEvaluationErrorFault_info,
264     &wsrp_QueryExpression_info,
265     &wsrp_GetMultipleResourcePropertiesResponse_info,
266     &wsrp_InvalidQueryExpressionFault_info,
267     &wsrp_GetResourcePropertyResponse_info,
268     &wsrp_UnknownQueryExpressionDialectFault_info,
269     &wsrp_ResourcePropertyValueChangeNotification_info,
270     &wsrp_InvalidSetResourcePropertiesRequestContentFault_info,
271     &wsrp_QueryResourcePropertiesResponse_info,
272     &wsrp_ResourceUnknownFault_info,
273     &rptest_TestStep_info,
274     &rptest_TestCase_info,
275     &rptest_SetResourcePropertiesTest_info,
276     &rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties_info,
277     &rptest_QName_info,
278     &rptest_TypeQName_info,
279     &rptest_GetMultipleResourcePropertiesTest_info,
280     &rptest_CreateResourcePropertiesTestResponse_info,
281     &rptest_Fault_info,
282     &rptest_QueryResourcePropertiesTest_info,
283     &rptest_CreateResourcePropertiesTest_info,
284     &rptest_GetResourcePropertyTest_info,
285     &rptest_ResourcePropertyDefinition_info,
286     &wsnt_CreationTime_info,
287     &wsnt_FixedTopicSet_info,
288     &wsnt_UseNotify_info,
289     &wsnt_Precondition_info,
290     &wsnt_Subscribe_info,
291     &wsnt_ConsumerReference_info,
292     &wsnt_Selector_info,
293     &wsnt_SubscriptionPolicy_info,
294     &wsnt_TopicExpression_info,
295     &wsnt_TopicExpressionDialects_info,
296     &wsnt_Topic_info,
297     &nptest_TopicValue_info,
298     &nptest_SetTopicValueResponse_info,
299     &nptest_GetCurrentMessageTest_info,
300     &nptest_SetTopicValue_info,
301     &nptest_CreateTopic_info,
302     &nptest_TopicElementTypeQName_info,
303     &nptest_EndpointReference_info,
304     &nptest_CreateConsumerTest_info,
305     &nptest_DestroyTopic_info,
306     &nptest_SubscribeTest_info,
307     &nptest_CreateTopicTest_info,
308     &nptest_CreateTopicResponse_info,
309     &nptest_TopicDefinition_info,
310     &nptest_DestroyTopicTest_info,
311     &nptest_CreateNotificationProducerTest_info,
312     &nptest_Fault_info,
313     &nptest_TestStep_info,
314     &nptest_TestCase_info,
315     &nptest_NotificationProducerTestPortTypeGTWSDLResourceProperties_info,
316     &nptest_GetResourcePropertyTest_info,
317     &nptest_SetTopicValueTest_info,
318     &nptest_ExpectNotificationTest_info,
319     &nptest_ConsumerTag_info,
320     &nptest_DestroyTopicResponse_info,
321     &nptest_CreateNotificationProducerTestResponse_info,
322     &wsnt_SubscriptionManagerRP_info,
323     &wsnt_SubscribeResponse_info,
324     &wsnt_TopicNotSupportedFault_info,
325     &wsnt_ResumeSubscription_info,
326     &wsnt_Notify_info,
327     &wsnt_PauseSubscription_info,
328     &wsnt_NotificationProducerRP_info,
329     &wsnt_GetCurrentMessageResponse_info,
330     &wsnt_PauseSubscriptionResponse_info,
331     &wsnt_ResumeSubscriptionResponse_info,
332     &wsnt_ResourceUnknownFault_info,
333     &wsnt_TopicPathDialectUnknownFault_info,
334     &wsnt_PauseFailedFault_info,
335     &wsnt_InvalidTopicExpressionFault_info,
336     &wsnt_NoCurrentMessageOnTopicFault_info,
337     &wsnt_ResumeFailedFault_info,
338     &wsnt_GetCurrentMessage_info,
339     &wsnt_SubscribeCreationFailedFault_info,
340     /* Types */
341     &nptest_GetCurrentMessageTestType_info,
342     &nptest_SetTopicValueType_info,
343     &nptest_CreateTopicType_info,
344     &nptest_CreateConsumerTestType_info,
345     &wsnt_TopicExpressionType_info,
346     &nptest_SubscribeTestType_info,
347     &nptest_CreateTopicTestType_info,
348     &nptest_TopicDefinitionType_info,
349     &nptest_DestroyTopicTestType_info,
350     &nptest_FaultType_info,
351     &nptest_TestStepType_info,
352     &nptest_TestCaseType_info,
353     &nptest_NotificationProducerTestPortTypeGTWSDLResourcePropertiesType_info,
354     &nptest_GetResourcePropertyTestType_info,
355     &nptest_SetTopicValueTestType_info,
356     &nptest_ExpectNotificationTestType_info,
357     &nptest_CreateNotificationProducerTestResponseType_info,
358     &wsa_Relationship_info,
359     &wsa_ReferencePropertiesType_info,
360     &wsa_ServiceNameType_info,
361     &wsa_EndpointReferenceType_info,
362     &wsa_RelationshipTypeValues_info,
363     &wsa_AttributedURI_info,
364     &wsa_AttributedQName_info,
365     &wsa_ReplyAfterType_info,
366     &wsa_FaultSubcodeValues_info,
367     &wsbf_BaseFaultType_info,
368     &wsrl_ResourceUnknownFaultType_info,
369     &wsrl_ResourceNotDestroyedFaultType_info,
370     &wsrl_TerminationTimeChangeRejectedFaultType_info,
371     &wsrl_UnableToSetTerminationTimeFaultType_info,
372     &wsrp_InsertType_info,
373     &wsrp_UpdateType_info,
374     &wsrp_ResourcePropertyValueChangeNotificationType_info,
375     &wsrp_QueryExpressionType_info,
376     &wsrp_ResourceUnknownFaultType_info,
377     &wsrp_InvalidSetResourcePropertiesRequestContentFaultType_info,
378     &wsrp_InvalidQueryExpressionFaultType_info,
379     &wsrp_UnknownQueryExpressionDialectFaultType_info,
380     &wsrp_SetResourcePropertyRequestFailedFaultType_info,
381     &wsrp_QueryEvaluationErrorFaultType_info,
382     &wsrp_InvalidResourcePropertyQNameFaultType_info,
383     &wsrp_DeleteType_info,
384     &wsrp_UnableToModifyResourcePropertyFaultType_info,
385     &wsnt_TopicPathDialectUnknownFaultType_info,
386     &wsnt_SubscribeCreationFailedFaultType_info,
387     &wsnt_NotificationMessageHolderType_info,
388     &wsnt_ResourceUnknownFaultType_info,
389     &wsnt_InvalidTopicExpressionFaultType_info,
390     &wsnt_NoCurrentMessageOnTopicFaultType_info,
391     &wsnt_PauseFailedFaultType_info,
392     &wsnt_ResumeFailedFaultType_info,
393     &wsnt_TopicNotSupportedFaultType_info,
394     /* ResourceProperty element QName -> type info mappings */
395      &NotificationProducerTestPortType_Topic_rp_info,
396      &NotificationProducerTestPortType_TopicExpressionDialects_rp_info,
397      &NotificationProducerTestPortType_FixedTopicSet_rp_info,
398
399     NULL
400 };
401
402 globus_result_t
403 NotificationProducerTestService_registry_add_types(
404     globus_xsd_type_registry_t          registry)
405 48 {
406 48     globus_result_t                     result = GLOBUS_SUCCESS;
407 48     globus_xsd_type_info_t *            type = NotificationProducerTestService_l_types;
408 48     GlobusFuncName(NotificationProducerTestService_registry_add_types);
409 48     GlobusSoapMessageDebugEnter();
410
411 8016     while (*type != NULL)
412     {
413 7968         result = globus_xsd_type_registry_insert(
414             registry,
415             *type,
416             NULL);
417
418 7968         if (result != GLOBUS_SUCCESS)
419         {
420 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
421                 result,
422                 (*type)->type->Namespace,
423                 (*type)->type->local);
424
425 0             goto exit;
426         }
427 7968         type++;
428     }
429
430   exit:
431
432 48     GlobusSoapMessageDebugExit(); 
433 48     return result;
434 }
435 /* NotificationProducerTestService_registry_add_types() */
436
437 globus_result_t
438 NotificationProducerTestService_registry_remove_types(
439     globus_xsd_type_registry_t          registry)
440 0 {
441 0     globus_result_t                     result = GLOBUS_SUCCESS;
442 0     globus_xsd_type_info_t *            type = NotificationProducerTestService_l_types;
443 0     GlobusFuncName(NotificationProducerTestService_registry_remove_types);
444 0     GlobusSoapMessageDebugEnter();
445
446
447 0     while (*type != NULL)
448     {
449 0         result = globus_xsd_type_registry_remove(
450             registry, 
451             (*type)->type,
452             NULL);
453
454 0         if(result != GLOBUS_SUCCESS)
455         {
456 0             result = GlobusSoapMessageErrorFailedRegistryPopulate(
457                 result, 
458                 (*type)->type->Namespace,
459                 (*type)->type->local);
460 0             goto exit;
461         }
462 0         type++;
463     }
464   
465   exit:
466
467 0     GlobusSoapMessageDebugExit(); 
468 0     return result;
469 }