WebService:How programming of "login" and "password" like that... in flex

Hello, I am a Thai guy, so any sentence or a grammar is not correct or a mistake, I apologise for this.

In php, I test my Web service like this:

____________________________________________________________________________

[client-side]

$client = new SoapClient ("plus.wsdl", array)

'trace' = > 1,

'exceptions' = > 0,

'login' = > '51011111 ',.

'password' = > "1234".

));

$ar = $client - > more (5, 2);

___________________________________________________________________________

[Server] side

function plus($num1,$num2) {}

$h = array ();

$user = trim($_SERVER['PHP_AUTH_USER']);

$pwd = trim($_SERVER['PHP_AUTH_PW']);

$h [0] = $user;                  check on the server side can get the user of the client

$h [1] = $pwd;                    check on the server side can get the password of the customer

$h [2] = $num1 + $num2;

return $h;

}

///////////////////////////////////////////////////////////////////////////////

$server = new SoapServer ("plus.wsdl");

$server-> addFunction("plus");

$server-> handle();

__________________________________________________________________

It is a fundamental criterion for the next stage of my authentication so it's work.

but now I want to use in Flex, but I do not know how to set

'login' = > '51011111 ',.

'password' = > "1234".

____________________________________________________________________

the other way, I know I should soapheader to authentic but I don't know how to use it because

This is the #1009 error and I don't know how to get value(user,pwd) on the server side to use soapheader.

Thank you very much.


anyone help me --'

but now I understand it.

solution:

private function authAndSend():void
{
        var encoder:Base64Encoder = new Base64Encoder();
        encoder.encode("someusername:somepassword");

ws.httpheaders = {Authorization:"Basic " + encoder.toString()};                                               
        ws.send();
}

Code (flex) WAA is equivalent to code php (see below)

$client = new SoapClient ("plus.wsdl", array)

"trace"-online 1

'exceptions'-online 0

'login'-online "51011111", //someusername

"password"-online //somepassword '1234 '.

));

Tags: Flex

Similar Questions

  • BlackBerry Smartphones how know my login and password for a new app in App World?

    I downloaded App World today, because I wanted the app "My Personal Health Record". Now, I have both, I can't in the health record but it assumes that I have the login and the password. I do? I have no idea. I've tried everything I can think of, but it doesn't seem to be a way to understand what they might be. Any ideas? All downloaded an app that does not allow because of this?

    I think I've answered my own question finally.  I deleted and reloaded the app and saw that I could scroll down.  He told me to go to a website, which I'm about to do and create an account.  Oh, well.   Thanks anyway!  Laughing out loud

  • Recently, when I try to retrieve my e-mail with windows mail, he asks me my login and password. I do not remember to be! How can I reset both?

    Recently, when I try to retrieve my e-mail with windows mail, he asks me my login and password. I do not remember to be!  How can I reset both?

    Hello

    Contact your ISP (Internet Service Provider) if they provided you with your e-mail account

  • Designjet t520: designjet t520 default login and password for web server

    Hello!

    Which is the default login and password for the web server and how to reset the password?

    Hello

    As mention Rashed, there is no password to the factory.

    Try a Restore Factory Settings.

    If this does not work, go to the Help Menu and do a Soft Reset. (Don't do the hard reset).

    For access to the support menu press on and hold the power button for 15 seconds, or at the home screen tap home, back, home, home.

    Concerning

    Mike

  • Remember login and password reset computer

    How do you get the remember login and password which has been retained to reset?

    Debhutch wrote:

    How do you get the remember login and password which has been retained to reset?

    Hello

    Keep the very secret but use something very special. How many passwords you should learn? How do you keep your password when you have 5 e-mail accounts, a dozen laptop computers to connect to an another dozen applications you have to opening session to use, internet banking, credit cards... more, 41 systems that require that you must change password every 4 weeks and cannot be re-used within 13 months.

    Well, save them in one place and use a MASTER password to open the safe. Please try:

    http://www.PCMag.com/Article2/0, 2817,2407168,00.asp

    Kind regards.

  • Cannot set Cisco SX20 - SIP Login and password

    Hello

    I have a problem that I can not set up login and password on the SIP profile 1 config page. Whenever I set up and refresh page, login and password is missing and diagnostics show error "401 Unathorized" which register to SIP Proxy (VCS).

    Software version 6.3.

    No idea how it install without factory reset?

    EDIT: I found that if I turn off the SIP protocol, set username and password, it is there. But as soon as I activate SIP back, username and password is missing.

    Thank you

    Hi Tibor,

    This is due to CSCuj48259. If you go into your system and your configuration mode set to OFF, it will solve the problem.

    This defect has not yet been solved, however she is addressed in a future release. I have

    f you run TC 6.2 or higher, you will have this problem if you have your configuration set to auto mode and auto-discovery of a fine return of provisioning succeeds but supplys a blank user name and password for your system. Also, if it is set to auto and DHCP option 150 is configured on this network, he will attempt to provision with CUCM which would clear these fields.

  • Creative cloud request login and password for proxy

    Hello!

    I tried to start creative cloud to download a few new updates on programs, but I have a sensitive question.

    He keeps asking me login and password for proxy. I have never used one and did not. I tried to get help from my Department, but they can't help me.

    We tried both by clicking on the button to use a proxy server, and we tried unclicking the button, restart the computer, but still the same issue. We tried using a proxy server and using the *. Adobe.com, *. adobelogin.com and *. activate.com and nothing changed. We tried the deleting the file after that in my user information regarding cloud creative (because it seemed to work for some people). We have tried to use my connection settings for the computer as a connection. I also discussed if it could be a firewall issue, but none of the sites are blocked. We also tried to inactivate the antivirus program to see if that causes problems. My computer guy told me to wait a week and see, but if something changes, but it's starting to annoy me. And this is not the first time that I had trouble downloading updates creative cloud, it always seems to be a problem or another.

    What else can we try? I don't want to reinstall everything, that will probably make no difference.

    After installing the patch, all of a sudden it worked... Strange things.

  • every time I launch form she asks login and password.

    every time I launch form in IE it is asking for login and password, I use the Sun plug-in, why he did this, wht could be the reason.

    concerning

    Naveed

    Hello

    try something like that.
    create trigger on logon at the form level
    and put in this trigger...

    null;
    

    and for db try something like this to change the case to false.
    Log in as the user sys.

    ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON=FALSE;
    

    and also you can do something like this...

    SQL> SHOW PARAMETER SEC_CASE_SENSITIVE_LOGON
    
    NAME                                 TYPE        VALUE
    ------------------------------------ ----------- ------------------------------
    sec_case_sensitive_logon             boolean     TRUE
    SQL> 
    
    SQL> ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
    
    System altered.
    
    SQL>
    

    hope it helps you too...

    Sarah

  • Login and password for SQL in Oracle 10 g

    Hi all

    I just installed Oracle 10g on my window XP and trying to figure out where I can get my login and password to access SQL more.
    I'm new to all this and any help will be useful

    Thank you

    Jason

    You can try command line:

    sqlplus "/ as sysdba"
    

    Above will connect you as sys.

    Then you can create a new user using the following:

    create user jason default tablespace users idenified by jasonpass;
    
    alter user jason quote 10M on users;
    
    grant create session to jason;
    
    grant other privileges to jason; -- oter privileges like create table, create procedure ...
    

    Then, you can connect to sqlplus like this:

    sqlplus jason/jasonpass
    

    With greetings
    Krystian Zieja

  • What is your dialog window trying to capture my login and password?

    Hi, I'm a new dialogue window when I use Firefox to access my yahoo email account. I've never had the box ask for my login and password. It was only to give me the opportunity to click on the words "Save password." Is this a new Mozilla dialog box that displays your login details and password? Thank you

    Hello

    This is a feature in Firefox called Firefox Password Manager. It securely stores your usernames and passwords for the sites that you visit to facilitate the re enter this information at a later date.

    You can learn more about this feature in this article.

    I hope that this helps, but if you have other questions, please come back here and we will do our best to respond.

  • Remembering the login and password... When the patch will be applied?

    Problem:
    -very often mozilla firefox is not recal login and password but 'checkbox' is checked for recall.

    Severity:
    -boring

    -> Press and hold ALT, or press F10 to display the Menu bar

    -> go to Menu help-> select "restart with disabled modules.

    Firefox closes, then it will open with Firefox comes from base. Now follow these steps:

    -> Update ALL your plugins Firefox https://www.mozilla.com/en-US/plugincheck/

    -> go to Menu view-> toolbars-> select menu bar and toolbar Navigation--> deselection adverse of all toolbars

    -> go Menu Tools-> clear recent history-> range of time: select all ITEMS -> click details (small arrow)-> place checkmark on Cache -> click on "clear now".

    -> go to the Tools Menu-> Options-> content-> place the check on:

    Images of care 1) block popups 2) automatically) 3 turn on JavaScript

    -> go to the Tools Menu-> Options-> privacy-> History section-> Firefox will: select "Use the custom settings for history"-> REMOVE checkmark 'Permanent Private Browsing Mode'-> place CHECKMARKS on:

    1 remember my browsing history 2) Remember download history 3) remember Search History 4) accept Cookies from sites-> select the "Exceptions" button... '-> click 'Remove all Sites' at the bottom of the window "Exception - Cookies".

      4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    

    -> REMOVE check MARK to CLEAR the HISTORY, the CLOSING of FIREFOX

    -> go to the Tools Menu-> Options-> Security-> place the check on:

    ((1) Warn me when sites try to install modules) 2 block reported attack sites block 3) declared false web 4) remember passwords for sites

    -> Click OK in the Options window

    -> click on the favorite icon (small drop down menu icon) on Firefox SearchBar (its position is on the right side of the address bar)-> click on "Manage search engines"-> select all unwanted search engine and click on delete-> click OK

    -> go to the Tools Menu-> Modules-> Extensions-> section REMOVE all unwanted/Suspicious Extensions (Add-ons)-> restart Firefox

    You can activate your known & modules trustworthy thereafter. Check and tell if its working.

  • Default login and password do not work

    Hello

    I forgot my wifi password which I am trying to reset now. But I am unable to connect to http://routerlogin.net by using the default login and password admin and password.

    Any advice?

    Thank you!

    push reset button until the power led blinks... use the default values on the label of the router

    http://www.downloads.NETGEAR.com/files/GDC/WGR614V6/wgr614v6_ref_man_20Apr05.PDF

    Reading 7 - 7

  • Login and password of the windows Server2008 trial

    Recently, I downloaded Windows Server 2008 R2 with the first version of service pack 1.

    Never happened to me the famous 3 messages with resources to guide me, I ask you what login and password should I use to access inside the trial version because I tried with login and passwords are the most common, and nobody working.

    Thank you very much

    Support is located in the Windows Server Forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • Try to put in place a new account but login and password do not work

    I am trying to set up a new account, but he said that the login and password do not work.  I use verizon as a server. I can go to their website and view mail, but not in windows mail.

    Account: 'incoming.yahoo.verizon.net', server: 'incoming.verizon.net', Protocol: POP3, server response: '-ERR [AUTH] Authentication failed', Port: 110, secure (SSL): no, Server error: 0x800CCC90, error number: 0x800CCC92

    Make sure that your settings are all correct.  The settings here: http://help.yahoo.com/l/us/verizon/mail/yahoomail/pop/pop-08.html are for Outlook Express, but they will be the same for Windows Mail. Brian Tillman [MVP-Outlook]

  • whenever I have to connect to the virtual machine asks me to enter login and password I can't save the credentials

    Hi, I used Windows Virtual PC XP mode for awhile and I just do a fresh install, and I'm having a problem that I seem not to be able to solve.

    After you enable the integration features, I got to the Windows Security login screen. I typed in the login and the password, but I accidentally made a mistake and could not connect. I clicked on cancel and was then in the XP login screen, where I entered then the right login and password and it me connected to the virtual machine XP without problem.

    Now, the problem I have is every time I connect to computer virtual it asks me the login and the password on the login screen of XP and I don't have the option to connect using the login Windows Security screen, so it do not give me an option to save my password and login information. So, to make things worse is that moment every time I have to resize the virtual pc it then asks me to log in again.

    Is it possible to return me to the Windows security login screen where can I put my login instead of the XP login screen when it is not an option?

    Hi Richard,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    TechNet Forum

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

     

    Hope this information helps.

Maybe you are looking for