4 Replies Latest reply on Feb 28, 2008 5:25 PM by monkeynote

    Newbie! WSDL Log In

      hello guys!

      im new to adobe flex and im having some problems with regards to WSDL log in. i have a webservice in my localhost named UserLogIn(Username, Password) that returns TRUE if successfully logged in and FALSE if not successful.

      my code works but there's a problem, the response text of the web service is delayed or should i say, it displays only the lastResult of the request. i think that my way of calling the web service is my problem (wsCAMS.UserLogIn.lastResult).

      here's the code below.... i hope that you can help me with my problem :(

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      import mx.controls.Alert;
      public function LogIn():void{
      var Username:String = boxUsername.text;
      var Password:String = boxPassword.text;
      Alert.show(wsCAMS.UserLogIn.lastResult,"Web Service Response");
      <mx:WebService id="wsCAMS" wsdl=" http://localhost/soap/service.asmx?wsdl" showBusyCursor="true" useProxy="false" />
      <mx:Panel width="261" height="165" layout="absolute" horizontalCenter="5" verticalCenter="-14">
      <mx:Button x="84" y="91" label="Log In" click="LogIn()"/>
      <mx:TextInput x="84" y="31" id="boxUsername" width="136"/>
      <mx:TextInput x="84" y="61" id="boxPassword" displayAsPassword="true" width="136"/>
      <mx:Label x="0" y="33" text="Username" width="76" fontWeight="bold" textAlign="right"/>
      <mx:Label x="0" y="63" text="Password" width="76" fontWeight="bold" textAlign="right"/>