Changeset a94cb0a
- Timestamp:
- Nov 21, 2008 5:07:56 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 5576a47
- Parents:
- ac54ef3
- Location:
- fedd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_client.py
rac54ef3 ra94cb0a 13 13 14 14 from xmlrpclib import ServerProxy, Error, dumps, loads 15 from ZSI import SoapWriter16 15 from ZSI.TC import QName, String, URI, AnyElement, UNBOUNDED, Any 17 16 from ZSI.wstools.Namespaces import SOAP … … 281 280 if transport == "soap": 282 281 if serialize_only: 283 sw = SoapWriter() 284 sw.serialize(req) 285 print str(sw) 282 print self.caller.serialize_soap(req_dict) 286 283 sys.exit(0) 287 284 else: -
fedd/remote_service.py
rac54ef3 ra94cb0a 5 5 import M2Crypto.httpslib 6 6 from M2Crypto.m2xmlrpclib import SSL_Transport 7 from ZSI import ParseException, FaultException 7 from ZSI import ParseException, FaultException, SoapWriter 8 8 9 9 from service_error import * … … 241 241 self.tracefile = tracefile 242 242 self.__call__ = self.call_service 243 244 def serialize_soap(self, req): 245 """ 246 Return a string containing the message that would be sent to call this 247 service with the given request. 248 """ 249 msg = self.request_message() 250 set_element = getattr(msg, "set_element_%s" % self.request_body_name, 251 None) 252 if not set_element: 253 raise service_error(service_error.internal, 254 "Cannot get element setting method for %s" % \ 255 self.request_body_name) 256 set_element(self.pack_soap(msg, self.request_body_name, req)) 257 sw = SoapWriter() 258 sw.serialize(msg) 259 return unicode(sw) 243 260 244 261 def call_xmlrpc_service(self, url, req, cert_file=None, cert_pwd=None,
Note: See TracChangeset
for help on using the changeset viewer.