[Gug-cvs] gug/gug/host/handler soap.py,1.14,1.15
Status: Planning
Brought to you by:
szferi
From: Nagy Z. <zs...@us...> - 2007-05-08 13:56:26
|
Update of /cvsroot/gug/gug/gug/host/handler In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10433/gug/host/handler Modified Files: soap.py Log Message: gug.zsi.MyAny class instead of patching ZSI for ZSI-2.0 Index: soap.py =================================================================== RCS file: /cvsroot/gug/gug/gug/host/handler/soap.py,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** soap.py 30 Jan 2007 19:13:07 -0000 1.14 --- soap.py 8 May 2007 13:56:24 -0000 1.15 *************** *** 1,3 **** --- 1,4 ---- from ZSI import ParsedSoap, TC, SoapWriter, Fault + from gug.zsi import MyAny from gug.client.soap import ExpatReaderClass from gug.common.exception import NoSuchMethod *************** *** 77,85 **** raise NoSuchMethod, 'no such method (%s)' % method_name # parse the arguments of the method call ! args = tuple(ps.Parse(TC.Array('args',TC.Any(nillable = True), undeclared = True))) # call the method with the arguments (XXX: no keyword arguments supported!) result = method(auth, *args) # create a SOAP message ! response = str(SoapWriter().serialize(result, TC.Any(nillable = True))) except Exception, e: # if there is any exception, first write it to the log --- 78,87 ---- raise NoSuchMethod, 'no such method (%s)' % method_name # parse the arguments of the method call ! #args = tuple(ps.Parse(TC.Array('args',MyAny(nillable = True), undeclared = True))) ! args = tuple(ps.Parse(MyAny(nillable = True))) # call the method with the arguments (XXX: no keyword arguments supported!) result = method(auth, *args) # create a SOAP message ! response = str(SoapWriter().serialize(result, MyAny(nillable = True))) except Exception, e: # if there is any exception, first write it to the log |