| 1 | ||
| 2 | #include "ResourcePropertiesTestService.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 "rptest_TestStep.h" | |
| 41 | #include "rptest_TestCase.h" | |
| 42 | #include "rptest_SetResourcePropertiesTest.h" | |
| 43 | #include "rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties.h" | |
| 44 | #include "rptest_QName.h" | |
| 45 | #include "rptest_TypeQName.h" | |
| 46 | #include "rptest_GetMultipleResourcePropertiesTest.h" | |
| 47 | #include "rptest_CreateResourcePropertiesTestResponse.h" | |
| 48 | #include "rptest_Fault.h" | |
| 49 | #include "rptest_QueryResourcePropertiesTest.h" | |
| 50 | #include "rptest_CreateResourcePropertiesTest.h" | |
| 51 | #include "rptest_GetResourcePropertyTest.h" | |
| 52 | #include "rptest_ResourcePropertyDefinition.h" | |
| 53 | #include "wsrl_UnableToSetTerminationTimeFault.h" | |
| 54 | #include "wsrl_DestroyResponse.h" | |
| 55 | #include "wsrl_TerminationTimeChangeRejectedFault.h" | |
| 56 | #include "wsrl_ResourceUnknownFault.h" | |
| 57 | #include "wsrl_ScheduledResourceTerminationRP.h" | |
| 58 | #include "wsrl_Destroy.h" | |
| 59 | #include "wsrl_SetTerminationTimeResponse.h" | |
| 60 | #include "wsrl_SetTerminationTime.h" | |
| 61 | #include "wsrl_ResourceNotDestroyedFault.h" | |
| 62 | #include "rptest_TestStepType.h" | |
| 63 | #include "rptest_TestCaseType.h" | |
| 64 | #include "rptest_SetResourcePropertiesTestType.h" | |
| 65 | #include "rptest_ResourcePropertiesTestPortTypeGTWSDLResourcePropertiesType.h" | |
| 66 | #include "rptest_GetMultipleResourcePropertiesTestType.h" | |
| 67 | #include "rptest_CreateResourcePropertiesTestResponseType.h" | |
| 68 | #include "rptest_FaultType.h" | |
| 69 | #include "rptest_QueryResourcePropertiesTestType.h" | |
| 70 | #include "rptest_CreateResourcePropertiesTestType.h" | |
| 71 | #include "rptest_GetResourcePropertyTestType.h" | |
| 72 | #include "rptest_ResourcePropertyDefinitionType.h" | |
| 73 | #include "wsa_Relationship.h" | |
| 74 | #include "wsa_ReferencePropertiesType.h" | |
| 75 | #include "wsa_ServiceNameType.h" | |
| 76 | #include "wsa_EndpointReferenceType.h" | |
| 77 | #include "wsa_RelationshipTypeValues.h" | |
| 78 | #include "wsa_AttributedURI.h" | |
| 79 | #include "wsa_AttributedQName.h" | |
| 80 | #include "wsa_ReplyAfterType.h" | |
| 81 | #include "wsa_FaultSubcodeValues.h" | |
| 82 | #include "wsbf_BaseFaultType.h" | |
| 83 | #include "wsrp_InsertType.h" | |
| 84 | #include "wsrp_UpdateType.h" | |
| 85 | #include "wsrp_ResourcePropertyValueChangeNotificationType.h" | |
| 86 | #include "wsrp_QueryExpressionType.h" | |
| 87 | #include "wsrp_ResourceUnknownFaultType.h" | |
| 88 | #include "wsrp_InvalidSetResourcePropertiesRequestContentFaultType.h" | |
| 89 | #include "wsrp_InvalidQueryExpressionFaultType.h" | |
| 90 | #include "wsrp_UnknownQueryExpressionDialectFaultType.h" | |
| 91 | #include "wsrp_SetResourcePropertyRequestFailedFaultType.h" | |
| 92 | #include "wsrp_QueryEvaluationErrorFaultType.h" | |
| 93 | #include "wsrp_InvalidResourcePropertyQNameFaultType.h" | |
| 94 | #include "wsrp_DeleteType.h" | |
| 95 | #include "wsrp_UnableToModifyResourcePropertyFaultType.h" | |
| 96 | #include "wsrl_ResourceUnknownFaultType.h" | |
| 97 | #include "wsrl_ResourceNotDestroyedFaultType.h" | |
| 98 | #include "wsrl_TerminationTimeChangeRejectedFaultType.h" | |
| 99 | #include "wsrl_UnableToSetTerminationTimeFaultType.h" | |
| 100 | ||
| 101 | /* ResourceProperty element QName -> type includes */ | |
| 102 | ||
| 103 | #include "xsd_dateTime.h" | |
| 104 | ||
| 105 | /* ResourceProperty element QNames */ | |
| 106 | ||
| 107 | xsd_QName ResourcePropertiesTestPortType_TerminationTime_rp_qname = | |
| 108 | { | |
| 109 | "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd", | |
| 110 | "TerminationTime" | |
| 111 | }; | |
| 112 | ||
| 113 | struct globus_xsd_type_info_s ResourcePropertiesTestPortType_TerminationTime_rp_info = | |
| 114 | { | |
| 115 | &ResourcePropertiesTestPortType_TerminationTime_rp_qname, | |
| 116 | xsd_dateTime_serialize_wrapper, | |
| 117 | xsd_dateTime_deserialize_pointer_wrapper, | |
| 118 | xsd_dateTime_init_wrapper, | |
| 119 | xsd_dateTime_destroy_wrapper, | |
| 120 | xsd_dateTime_copy_wrapper | |
| 121 | }; | |
| 122 | ||
| 123 | xsd_QName ResourcePropertiesTestPortType_CurrentTime_rp_qname = | |
| 124 | { | |
| 125 | "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd", | |
| 126 | "CurrentTime" | |
| 127 | }; | |
| 128 | ||
| 129 | struct globus_xsd_type_info_s ResourcePropertiesTestPortType_CurrentTime_rp_info = | |
| 130 | { | |
| 131 | &ResourcePropertiesTestPortType_CurrentTime_rp_qname, | |
| 132 | xsd_dateTime_serialize_wrapper, | |
| 133 | xsd_dateTime_deserialize_pointer_wrapper, | |
| 134 | xsd_dateTime_init_wrapper, | |
| 135 | xsd_dateTime_destroy_wrapper, | |
| 136 | xsd_dateTime_copy_wrapper | |
| 137 | }; | |
| 138 | ||
| 139 | ||
| 140 | ||
| 141 | static globus_xsd_type_info_t ResourcePropertiesTestService_l_types[] = { | |
| 142 | /* Elements */ | |
| 143 | &wsa_From_info, | |
| 144 | &wsa_FaultTo_info, | |
| 145 | &wsa_RelatesTo_info, | |
| 146 | &wsa_Action_info, | |
| 147 | &wsa_ReplyAfter_info, | |
| 148 | &wsa_EndpointReference_info, | |
| 149 | &wsa_MessageID_info, | |
| 150 | &wsa_ReplyTo_info, | |
| 151 | &wsa_To_info, | |
| 152 | &wsrl_TerminationTime_info, | |
| 153 | &wsrl_TerminationNotification_info, | |
| 154 | &wsrl_CurrentTime_info, | |
| 155 | &wsbf_BaseFault_info, | |
| 156 | &wsrp_Delete_info, | |
| 157 | &wsrp_InvalidResourcePropertyQNameFault_info, | |
| 158 | &wsrp_GetResourceProperty_info, | |
| 159 | &wsrp_Update_info, | |
| 160 | &wsrp_SetResourcePropertyRequestFailedFault_info, | |
| 161 | &wsrp_SetResourceProperties_info, | |
| 162 | &wsrp_QueryResourceProperties_info, | |
| 163 | &wsrp_Insert_info, | |
| 164 | &wsrp_SetResourcePropertiesResponse_info, | |
| 165 | &wsrp_UnableToModifyResourcePropertyFault_info, | |
| 166 | &wsrp_GetMultipleResourceProperties_info, | |
| 167 | &wsrp_QueryEvaluationErrorFault_info, | |
| 168 | &wsrp_QueryExpression_info, | |
| 169 | &wsrp_GetMultipleResourcePropertiesResponse_info, | |
| 170 | &wsrp_InvalidQueryExpressionFault_info, | |
| 171 | &wsrp_GetResourcePropertyResponse_info, | |
| 172 | &wsrp_UnknownQueryExpressionDialectFault_info, | |
| 173 | &wsrp_ResourcePropertyValueChangeNotification_info, | |
| 174 | &wsrp_InvalidSetResourcePropertiesRequestContentFault_info, | |
| 175 | &wsrp_QueryResourcePropertiesResponse_info, | |
| 176 | &wsrp_ResourceUnknownFault_info, | |
| 177 | &rptest_TestStep_info, | |
| 178 | &rptest_TestCase_info, | |
| 179 | &rptest_SetResourcePropertiesTest_info, | |
| 180 | &rptest_ResourcePropertiesTestPortTypeGTWSDLResourceProperties_info, | |
| 181 | &rptest_QName_info, | |
| 182 | &rptest_TypeQName_info, | |
| 183 | &rptest_GetMultipleResourcePropertiesTest_info, | |
| 184 | &rptest_CreateResourcePropertiesTestResponse_info, | |
| 185 | &rptest_Fault_info, | |
| 186 | &rptest_QueryResourcePropertiesTest_info, | |
| 187 | &rptest_CreateResourcePropertiesTest_info, | |
| 188 | &rptest_GetResourcePropertyTest_info, | |
| 189 | &rptest_ResourcePropertyDefinition_info, | |
| 190 | &wsrl_UnableToSetTerminationTimeFault_info, | |
| 191 | &wsrl_DestroyResponse_info, | |
| 192 | &wsrl_TerminationTimeChangeRejectedFault_info, | |
| 193 | &wsrl_ResourceUnknownFault_info, | |
| 194 | &wsrl_ScheduledResourceTerminationRP_info, | |
| 195 | &wsrl_Destroy_info, | |
| 196 | &wsrl_SetTerminationTimeResponse_info, | |
| 197 | &wsrl_SetTerminationTime_info, | |
| 198 | &wsrl_ResourceNotDestroyedFault_info, | |
| 199 | /* Types */ | |
| 200 | &rptest_TestStepType_info, | |
| 201 | &rptest_TestCaseType_info, | |
| 202 | &rptest_SetResourcePropertiesTestType_info, | |
| 203 | &rptest_ResourcePropertiesTestPortTypeGTWSDLResourcePropertiesType_info, | |
| 204 | &rptest_GetMultipleResourcePropertiesTestType_info, | |
| 205 | &rptest_CreateResourcePropertiesTestResponseType_info, | |
| 206 | &rptest_FaultType_info, | |
| 207 | &rptest_QueryResourcePropertiesTestType_info, | |
| 208 | &rptest_CreateResourcePropertiesTestType_info, | |
| 209 | &rptest_GetResourcePropertyTestType_info, | |
| 210 | &rptest_ResourcePropertyDefinitionType_info, | |
| 211 | &wsa_Relationship_info, | |
| 212 | &wsa_ReferencePropertiesType_info, | |
| 213 | &wsa_ServiceNameType_info, | |
| 214 | &wsa_EndpointReferenceType_info, | |
| 215 | &wsa_RelationshipTypeValues_info, | |
| 216 | &wsa_AttributedURI_info, | |
| 217 | &wsa_AttributedQName_info, | |
| 218 | &wsa_ReplyAfterType_info, | |
| 219 | &wsa_FaultSubcodeValues_info, | |
| 220 | &wsbf_BaseFaultType_info, | |
| 221 | &wsrp_InsertType_info, | |
| 222 | &wsrp_UpdateType_info, | |
| 223 | &wsrp_ResourcePropertyValueChangeNotificationType_info, | |
| 224 | &wsrp_QueryExpressionType_info, | |
| 225 | &wsrp_ResourceUnknownFaultType_info, | |
| 226 | &wsrp_InvalidSetResourcePropertiesRequestContentFaultType_info, | |
| 227 | &wsrp_InvalidQueryExpressionFaultType_info, | |
| 228 | &wsrp_UnknownQueryExpressionDialectFaultType_info, | |
| 229 | &wsrp_SetResourcePropertyRequestFailedFaultType_info, | |
| 230 | &wsrp_QueryEvaluationErrorFaultType_info, | |
| 231 | &wsrp_InvalidResourcePropertyQNameFaultType_info, | |
| 232 | &wsrp_DeleteType_info, | |
| 233 | &wsrp_UnableToModifyResourcePropertyFaultType_info, | |
| 234 | &wsrl_ResourceUnknownFaultType_info, | |
| 235 | &wsrl_ResourceNotDestroyedFaultType_info, | |
| 236 | &wsrl_TerminationTimeChangeRejectedFaultType_info, | |
| 237 | &wsrl_UnableToSetTerminationTimeFaultType_info, | |
| 238 | /* ResourceProperty element QName -> type info mappings */ | |
| 239 | &ResourcePropertiesTestPortType_TerminationTime_rp_info, | |
| 240 | &ResourcePropertiesTestPortType_CurrentTime_rp_info, | |
| 241 | ||
| 242 | NULL | |
| 243 | }; | |
| 244 | ||
| 245 | globus_result_t | |
| 246 | ResourcePropertiesTestService_registry_add_types( | |
| 247 | globus_xsd_type_registry_t registry) | |
| 248 | 160 | { |
| 249 | 160 | globus_result_t result = GLOBUS_SUCCESS; |
| 250 | 160 | globus_xsd_type_info_t * type = ResourcePropertiesTestService_l_types; |
| 251 | 160 | GlobusFuncName(ResourcePropertiesTestService_registry_add_types); |
| 252 | 160 | GlobusSoapMessageDebugEnter(); |
| 253 | ||
| 254 | 15520 | while (*type != NULL) |
| 255 | { | |
| 256 | 15360 | result = globus_xsd_type_registry_insert( |
| 257 | registry, | |
| 258 | *type, | |
| 259 | NULL); | |
| 260 | ||
| 261 | 15360 | if (result != GLOBUS_SUCCESS) |
| 262 | { | |
| 263 | 0 | result = GlobusSoapMessageErrorFailedRegistryPopulate( |
| 264 | result, | |
| 265 | (*type)->type->Namespace, | |
| 266 | (*type)->type->local); | |
| 267 | ||
| 268 | 0 | goto exit; |
| 269 | } | |
| 270 | 15360 | type++; |
| 271 | } | |
| 272 | ||
| 273 | exit: | |
| 274 | ||
| 275 | 160 | GlobusSoapMessageDebugExit(); |
| 276 | 160 | return result; |
| 277 | } | |
| 278 | /* ResourcePropertiesTestService_registry_add_types() */ | |
| 279 | ||
| 280 | globus_result_t | |
| 281 | ResourcePropertiesTestService_registry_remove_types( | |
| 282 | globus_xsd_type_registry_t registry) | |
| 283 | 0 | { |
| 284 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 285 | 0 | globus_xsd_type_info_t * type = ResourcePropertiesTestService_l_types; |
| 286 | 0 | GlobusFuncName(ResourcePropertiesTestService_registry_remove_types); |
| 287 | 0 | GlobusSoapMessageDebugEnter(); |
| 288 | ||
| 289 | ||
| 290 | 0 | while (*type != NULL) |
| 291 | { | |
| 292 | 0 | result = globus_xsd_type_registry_remove( |
| 293 | registry, | |
| 294 | (*type)->type, | |
| 295 | NULL); | |
| 296 | ||
| 297 | 0 | if(result != GLOBUS_SUCCESS) |
| 298 | { | |
| 299 | 0 | result = GlobusSoapMessageErrorFailedRegistryPopulate( |
| 300 | result, | |
| 301 | (*type)->type->Namespace, | |
| 302 | (*type)->type->local); | |
| 303 | 0 | goto exit; |
| 304 | } | |
| 305 | 0 | type++; |
| 306 | } | |
| 307 | ||
| 308 | exit: | |
| 309 | ||
| 310 | 0 | GlobusSoapMessageDebugExit(); |
| 311 | 0 | return result; |
| 312 | } |