3 Replies Latest reply on Jul 9, 2007 12:53 PM by ejthsiao

    loadWSDL

    ejthsiao Level 1
      Hi, I am trying to invoke a SOAP WS with the code entails. It seems the LOAD event for the loadWSDL never fires. Can someone tell me what's wrong with the code? Thanks.

      var tsWS:WebService = new WebService();
      tsWS.addEventListener(LoadEvent.LOAD, load_listener);
      tsWS.addEventListener(ResultEvent.RESULT, doResults);
      tsWS.addEventListener(FaultEvent.FAULT, doFailed);
      tsWS.useProxy = false;
      tsWS.wsdl = " http://localhost:7001/ws_medrec_patient_dao/MedRecPatientDao?WSDL";

      if (tsWS.canLoadWSDL() == false)
      trace(tsWS.wsdl);

      tsWS.loadWSDL();
      tsWS.save(patient);