- Timestamp:
- Dec 7, 2010 9:20:18 AM (14 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 2453416
- Parents:
- a7c0bcb
- git-author:
- Ted Faber <faber@…> (12/06/10 21:27:45)
- git-committer:
- Ted Faber <faber@…> (12/07/10 09:20:18)
- Location:
- fedd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/Makefile
ra7c0bcb rc179764 15 15 16 16 ${GENERATED_MODS}: ${WSDL_FILES} 17 wsdl2py --file ../wsdl/fedd.wsdl --complexType --output-dir=${MODULE_DIR} 18 wsdl2py --file ../wsdl/fedd_internal.wsdl --complexType \ 19 --types=fedd_services_types --output-dir=${MODULE_DIR} 17 wsdl2py --complexType --output-dir=${MODULE_DIR} ../wsdl/fedd.wsdl 18 wsdl2py --complexType --output-dir=${MODULE_DIR} ../wsdl/fedd_internal.wsdl 20 19 21 20 clean: -
fedd/federation/parse_detail.py
ra7c0bcb rc179764 1 1 #!/usr/local/bin/python 2 2 3 from fedd_ servicesimport *3 from fedd_client import * 4 4 5 5 from ZSI.TC import QName, String, URI, AnyElement, UNBOUNDED, Any -
fedd/federation/remote_service.py
ra7c0bcb rc179764 18 18 from service_error import service_error 19 19 from xmlrpclib import ServerProxy, dumps, loads, Fault, Error, Binary 20 21 import fedd_services 22 import fedd_internal_services 20 try: 21 import fedd_services 22 import fedd_internal_services 23 except ImportError: 24 import fedd_server 25 import fedd_client 26 23 27 from util import fedd_ssl_context 24 28 from fedid import fedid … … 279 283 self.service_name = service_name 280 284 281 if getattr(fedd_services.feddBindingSOAP, service_name, None): 282 self.locator = fedd_services.feddServiceLocator 283 self.port_name = 'getfeddPortType' 284 elif getattr(fedd_internal_services.feddInternalBindingSOAP, 285 service_name, None): 286 self.locator = fedd_internal_services.feddInternalServiceLocator 287 self.port_name = 'getfeddInternalPortType' 285 try: 286 if getattr(fedd_services.feddBindingSOAP, service_name, None): 287 self.locator = fedd_services.feddServiceLocator 288 self.port_name = 'getfeddPortType' 289 elif getattr(fedd_internal_services.feddInternalBindingSOAP, 290 service_name, None): 291 self.locator = fedd_internal_services.feddInternalServiceLocator 292 self.port_name = 'getfeddInternalPortType' 293 except NameError: 294 if getattr(fedd_client.feddBindingSOAP, service_name, None): 295 self.locator = fedd_client.feddServiceLocator 296 self.port_name = 'getfeddPort' 297 elif getattr(fedd_internal_client.feddInternalBindingSOAP, 298 service_name, None): 299 self.locator = fedd_internal_client.feddInternalServiceLocator 300 self.port_name = 'getfedd_internalPort' 301 288 302 289 303 if request_message: self.request_message = request_message 290 304 else: 291 305 request_message_name = "%sRequestMessage" % service_name 292 self.request_message = \ 293 getattr(fedd_services, request_message_name, None) or \ 294 getattr(fedd_internal_services, request_message_name, None) 306 try: 307 self.request_message = \ 308 getattr(fedd_services, request_message_name, None) or \ 309 getattr(fedd_internal_services, request_message_name, 310 None) 311 except NameError: 312 self.request_message = \ 313 getattr(fedd_client, request_message_name, None) or \ 314 getattr(fedd_internal_client, request_message_name, 315 None) 295 316 if not self.request_message and strict: 296 317 raise service_error(service_error.internal,
Note: See TracChangeset
for help on using the changeset viewer.