Seems to me like you could do the same thing without PHP at all. Just use the username:[EMAIL PROTECTED] syntax in your AS when making the web service call. The host browser should send along the login with the request.

-josh

On Dec 18, 2006, at 11:10a, Merrill, Jason wrote:

Also, I looked on the web, and the closest answer I could find was for a PHP solution, where the username and password are part of the URL since
the HTTP directory may be password protected:

//PHP script
define('username', 'foo');
define('password', 'bar');
// This is location of the remote service
$client = new soapclient('http://' . username . ":" . password .
'@www.myserver.com/ws/server.php?wsdl', true);
$client->setCredentials(username,password);

So perhaps in Actionscript, something like:

var username="myusername"; var password = "mypassword";
var pWebService:WebService = new
WebService("http://"+username+":"+password+"@www.myserver.com/ myWS.asmx?
WSDL");

I'm just guessing though... not sure if that would work.


Jason Merrill
Bank of America
Learning & Organizational Effectiveness





_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to