From: <th...@bi...> - 2004-04-16 18:43:06
|
I used wsdl2py on one of our in-house WSDL's. wsdl2py ran fine, but when I= try to use it, I get the following when running the SOAP-method: =66rom ServerConfigService_services import * loc =3D ServerConfigServiceLocator() service =3D loc.getServerConfigServiceIF() req =3D ServerConfigServiceIF_getWorkpointDatabases() resp =3D service.getWorkpointDatabases(req) Traceback (most recent call last): File "<stdin>", line 1, in ? resp =3D service.getWorkpointDatabases(req) File "ServerConfigService_services.py", line 57, in getWorkpointDatabases response =3D self.binding.Send(None, None, request, soapaction=3D"", **= kw) File "C:\Python23\Lib\site-packages\ZSI\client.py", line 159, in Send tc =3D getattr(obj.__class__, 'typecode') AttributeError: class ServerConfigServiceIF_getWorkpointDatabases has no at= tribute 'typecode' But req has a typecode method: >>> req.typecode <ServerConfigService_services_types.getWorkpointDatabases_Def instance at 0= x01A74CB0> >>> dir(req.typecode) ['SimpleHREF', '__doc__', '__init__', '__module__', 'aname', 'cb', 'checkna= me', 'checktype', 'get_parse_and_errorlist', 'hasextras', 'inline', 'inorde= r', 'lenofwhat', 'mutable', 'name_match', 'nilled', 'nspname', 'ofwhat', 'o= name', 'ons', 'optional', 'parse', 'pname', 'pyclass', 'repeatable', 'schem= a', 'serialize', 'simple_value', 'type', 'typechecks', 'typed', 'unique'] Any ideas what is wrong? --=20 Mike Hostetler =20 th...@bi... http://users.binary.net/thehaas=20 Stop Spam: http://wecanstopspam.org/ With searching comes loss and the presence of absence: "My Novel" not found. |