I've tried that, doesn't seem to work... i kept seeing some 
references through google where you can use addheader() but i'm not sure how to 
use it to add the username and password to the header... 

Lori-

----------------------------------------

                                From: "Merrill, Jason" <[EMAIL PROTECTED]>
Sent: Monday, December 18, 2006 2:11 PM
To: Flashcoders mailing list <[email protected]>
Subject: RE: [Flashcoders] Password Protected Webservice call - Help Please! 

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