[Flashcoders] Password Protected Webservice call - Help Please!
I'm trying to call a webservice that requires a usename and password. But whenever i call it i get an error message for it locally or it pops a dialog when in a webpage. Is there anyway around this? Lori- ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] Password Protected Webservice call - Help Please!
Details are essential to a bug report. What does the error message say? What does the popup dialog say? On 12/18/06, Lori [EMAIL PROTECTED] wrote: I'm trying to call a webservice that requires a usename and password. But whenever i call it i get an error message for it locally or it pops a dialog when in a webpage. Is there anyway around this? Lori- ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] Password Protected Webservice call - Help Please!
Sorry, when i call the webservice in flash it get an error opening URL but i know its the right url for the webservice. When i call it in a browser it pops open a dialog box asking for the username and password of the webservice. What i'm doing is very basic: pWebServiceLocation = http://webserviceURL?WSDL;; var pWebService:WebService = new WebService(pWebServiceLocation, new Log()); pWebService.onLoad = function() { trace(tracking suceeded ); }; pWebService.onFault = function(fault) { trace(SERVICE failed); }; I think i have to send the username and password to the webservice in order to call it but i'm not sure how to do that. thanks, Lori- From: T. Michael Keesey [EMAIL PROTECTED] Sent: Monday, December 18, 2006 12:00 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Password Protected Webservice call - Help Please! Details are essential to a bug report. What does the error message say? What does the popup dialog say? On 12/18/06, Lori wrote: I'm trying to call a webservice that requires a usename and password. But whenever i call it i get an error message for it locally or it pops a dialog when in a webpage. Is there anyway around this? Lori- ___ Flashcoders@chattyfig.figleaf.com 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 -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
Is the URL the full URL to the Webserice? i.e. import mx.services.* myWS = new WebService(http://www.bankofamerica.com/WebService/myWebService.asmx?WS DL) Who owns the webservice? Can they tell you if additional user name and password variables need to be attached to your URL string when you call the service? Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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
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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
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 flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
I've tried that, doesn't seem to work... So you know who owns the webservice and what the username and password is? Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
Found this - read this technote: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19226 Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
Yes i do, i think the issue is that i don't know how to send the username and password to the Webservice so that it can authenticate me properly. I'm just not sure how this is done. Lori- From: Merrill, Jason [EMAIL PROTECTED] Sent: Monday, December 18, 2006 2:46 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Password Protected Webservice call - Help Please! I've tried that, doesn't seem to work... So you know who owns the webservice and what the username and password is? Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
I found out he's doing windows authentication for the username and password. It's a .net webservice. From: Merrill, Jason [EMAIL PROTECTED] Sent: Monday, December 18, 2006 2:49 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Password Protected Webservice call - Help Please! Found this - read this technote: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19226 Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: [Flashcoders] Password Protected Webservice call - Help Please!
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 ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
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. Jpsh if you look at my post a little closer, I wasn't suggesting PHP at all - just showing an example of how it's done with PHP, therefore they way it possibly translates to actionscript, (which is the same thing you now posted), which Lori said was already tried and failed. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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
RE: [Flashcoders] Password Protected Webservice call - Help Please!
Yep, according to the programmer who is handling the webservice programming he is using Windows Authentication to handle username and password. There should be (hopefully) a way to call the webservice and send the required authentication information, but i just dont see any example for how this can be done with AS. Thanks everyone for your help so far... L- From: Merrill, Jason [EMAIL PROTECTED] Sent: Monday, December 18, 2006 4:26 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Password Protected Webservice call - Help Please! 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. Jpsh if you look at my post a little closer, I wasn't suggesting PHP at all - just showing an example of how it's done with PHP, therefore they way it possibly translates to actionscript, (which is the same thing you now posted), which Lori said was already tried and failed. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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
Re: RE: [Flashcoders] Password Protected Webservice call - Help Please!
Try this: // SOAP Request var thisXMLReq:String = '?xml version=1.0 encoding=utf-8?' + 'SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;SOAP-ENV:Body xmlns:ns1=http://cfc;ns1:authenticateUser SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;username xsi:type=xsd:stringusername/usernamepassword xsi:type=xsd:stringpassword/password/ns1:authenticateUser/SOAP-ENV:Body/SOAP-ENV:Envelope'; // SOAP Request Length var SOAPReqLen:Number = thisXMLReq.length; // Basic authentication encoded // see http://www.securitystats.com/tools/base64.php var basicAuthVal:String = B64BlahB6Blah=; //Base64 encoded string of username:password // add SOAP Headers var SOAPHeaders:Array = new Array(Authorization, Basic + basicAuthVal, SOAPAction, '', Content-Length, SOAPReqLen, , UTF-8, Content-Type, text/xml-SOAP; charset=utf-8); // SOAP Request XML var myXML_xml:XML = new XML(thisXMLReq); // Add HTTP Headers for SOAP Request myXML_xml.addRequestHeader(SOAPHeaders); // XML Container for server response var myXMLResponse_xml:XML = new XML(); // response load acton myXMLResponse_xml.onLoad = function(success:Boolean){ trace(success); trace(result: + myXMLResponse_xml.toString()); }; // trigger SOAP call myXML_xml.sendAndLoad(http://www.myserver.com/usermgmt.cfc;, myXMLResponse_xml); I just found that on the Adobe livedocs. I'm not sure why the username+password is base64 encoded but you might try a plaintext version and if that doesn't work, base64 encode it. Hope this gets you SOMEWHERE. Let us know! On 12/18/06, Lori [EMAIL PROTECTED] wrote: Yep, according to the programmer who is handling the webservice programming he is using Windows Authentication to handle username and password. There should be (hopefully) a way to call the webservice and send the required authentication information, but i just dont see any example for how this can be done with AS. Thanks everyone for your help so far... L- From: Merrill, Jason [EMAIL PROTECTED] Sent: Monday, December 18, 2006 4:26 PM To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Password Protected Webservice call - Help Please! 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. Jpsh if you look at my post a little closer, I wasn't suggesting PHP at all - just showing an example of how it's done with PHP, therefore they way it possibly translates to actionscript, (which is the same thing you now posted), which Lori said was already tried and failed. Jason Merrill Bank of America Learning Organizational Effectiveness ___ Flashcoders@chattyfig.figleaf.com 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 ___ Flashcoders@chattyfig.figleaf.com 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 -- Jordan Snyder (jordansnyder.com) Applications Developer Image Action LLC http://www.imageaction.com ___ Flashcoders@chattyfig.figleaf.com 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