Creating a request for ZSI
KGeraghty at 360i.com
Thu Feb 19 07:55:37 EST 2009
I am trying to access a WSDL and I used wsdl2py to create the needed files. My problem is that when I try to create a request object I get a request Holder object instead.
>>> req._username = username
>>> req._org_id = org_id
>>> req._profile_name = profile_name
<HotelWebService_services_types.get_rates_by_profile_name_Holder object at 0xb7c04d8c>
When I try to get a response the isinstance() test rejects the request holder object as being of the wrong type.
>>> resp = portType.get_rates_by_profile_name(req)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "HotelWebService_services.py", line 487, in get_rates_by_profile_name
raise TypeError, "%s incorrect request type" % (request.__class__)
TypeError: <class 'HotelWebService_services_types.get_rates_by_profile_name_Holder'> incorrect request type
How do I get a req object that ZSI will let me use to get a response?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list