Rizwan,
The WebFault has an attribute named (fault) which is a object
representation of exact fault returned by the server.
If you believe there is data missing, please turn up logging by placing:
#import logging
logger('suds.client').setLevel(logging.DEBUG)
in your code using the suds client.
Then retry and send me the soap reply containing the fault XML and I
will be glad to take a look.
Regards,
Jeff
Rizwan Raza wrote:
Guys:
I am deliberately raising a SOAP fault from a web service method with
some 'Description' and 'Code' which I intend to see on the client
side.
Below is what I got. It does not contain the SOAP fault description
and Code. It just says "Server raised fault"
Traceback (most recent call last):
File "C:\Python24\lib\logging\__init__.py", line 706, in emit
msg = self.format(record)
File "C:\Python24\lib\logging\__init__.py", line 592, in format
return fmt.format(record)
File "C:\Python24\lib\logging\__init__.py", line 385, in format
s = self._fmt % record.__dict__
KeyError: 'funcName'
Traceback (most recent call last):
File "WSTest01.py", line 24, in ?
print
serviceProxy.FindCalendarsByName('LCCME_OPTIONS','','','','','')
File "build\bdist.win32\egg\suds\client.py", line 166, in __call__
suds.WebFault: Server raised fault: '(faultstring){
_lang = "en-US"
}'
Is there a way to capture SOAP fault description and various other parameters?
Thanks
_______________________________________________
fedora-suds-list mailing list
fedora-suds-list(a)redhat.com
https://www.redhat.com/mailman/listinfo/fedora-suds-list