Session support for SOAP client

I have a web service with 3 methods: Login, Tasks and Logout.

Login() stores user_id in session, Tasks() and Logout() checks user
access level and throw exception on error.
XMLRPC::Client works fine, but SOAP::WSDLDriverFactory does not store
session cookies.
How I can enable this feature for SOAP?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

D.Kay wrote:

I have a web service with 3 methods: Login, Tasks and Logout.

Login() stores user_id in session, Tasks() and Logout() checks user
access level and throw exception on error.
XMLRPC::Client works fine, but SOAP::WSDLDriverFactory does not store
session cookies.
How I can enable this feature for SOAP?

You need to install http-access2 and set cookie file to a driver.

driver = …
driver.options[“protocol.http.cookie_store_file”] = “cookie.file”
driver.web_services_method(…)

Regards,
// NaHi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)

iQEVAwUBRNbaoh9L2jg5EEGlAQJ4qwgAoaBpu8U8DVkpMO7xxAagLV5zh687gLB5
w74IRSIFhae83siDHzRX46v54QgqcFXLKEJDRxbziF/bmwXLOWIwINFh/v1t7km6
3Vb+kCYg/q0PRU6+3uWU0F4MoLL2ryrvcdWuISzsu7+a6SJynxjp2aLFpe0kosFI
7X3Yp3ko+2mVywtDoIm4iWPMhrNy3HsNrR8DoLW+3zSRigxbr0G16n8nyJLQWGip
1+FsC8O8uJdZYngkqxQLLk5/ykjgVU4qkXQwc2nkzyWqgRytdoBnwDj7SvR/PpQi
d+EhZuzBBXuEY55KLvnerC1gdFhCH2iiNMYD7EnzoABJYFssLcwP0Q==
=WZVU
-----END PGP SIGNATURE-----