0 Replies Latest reply on Jan 14, 2010 4:54 AM by uzairseedat

    Problem with .NET WebService

    uzairseedat

      I have a .NET Web service from which i need to fetch some data. The project name in .NET is StateService and inside that project there is a service with name: DataProvider.asmx

       

      I can run the service from Visual Studio and can see the WSDL using address:

       

      http://localhost:2822/DataProvider.asmx?WSDL

       

      Now the following code in Flex 3 gives me WSDL not found error:

       

      var service:WebService = new WebService();

      service.wsdl = http://localhost:2822/DataProvider.asmx?WSDL";

      service.destination = "DataProvider";

       

      service.GetState.addEventListener("result", LoadXML);

      service.addEventListener("fault", ShowError);

       

      service.loadWSDL();

      service.GetState(stateName);

       

      Help???