4 Replies Latest reply on Jan 30, 2008 8:15 PM by rmalired

    Webservice not returning a String

    VitaltypeMike Level 1
      I am running this block of code against an asp.net web service. When I test the service through Internet Explorer, it returns;
      <string xmlns=" http://tempuri.org/">Success</string>
      So I know its return "Success" as a String. I created wsOwners as a String variable and set it to the result of the webservice. I set the result to a label to make sure it is working. The the label displays;
      [object asyncToken]
      How do I get the result to display "Success" and why is it displaying that object message?

      private function newOwner():void
      {
      var wsOwners:WebService = new WebService();
      wsOwners.wsdl = " http://localhost:1711/Owners/Owners.asmx?WSDL";
      wsOwners.loadWSDL();
      var wsResult:String = wsOwners.NewOwner(tbxFirstName.text,
      tbxLastName.text,
      tbxAddress1.text,
      tbxAddress2.text,
      tbxCity.text,
      tbxState.text,
      tbxZip.text,
      tbxCountry.text,
      tbxPhone.text,
      tbxFax.text,
      tbxEmail.text);
      lblResult.text = wsResult;