Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- SoapClient and Cookies
May 3, 2008, 4:24 pm
rate this thread
running a simple php script on my ubuntu machine. Basically, the ASP
servers first requires you to login via a login method by supplying
username and password. It returns a string to indicate whether you
logged in successfully and also returns a cookie.
Afther this authentication, you can connect to another service that is
only accessible if you have received the cookie above. I am able to
make this work via my browser, where I can login, check for the cookie
and I am able to access the WSDL file for the protected methods.
However, I am unable to get it work via a client site php script that
I run from the command line. I am able to see that I was logged in
successfully, I can also print_r($client->_cookies['name']) so I
know I am receiving the cookie. However, it seems like when I try to
instantiate another client it fails complaining that I cannot access
the URL provided.
$clientreq = new SoapClient(....);
How do I ensure that the cookie is used on subsequent requests? I
have seen that Zend classes offer cookie stickiness via
setCookieJar(). how can achieve this in php.
- » php 5 & XSLT: How to register own handlers for SAX, Error and PI ?
- — Next thread in » PHP Scripting Forum