Skip navigation
Mad32
Currently Being Moderated

Webservice call with Flashbuilder 4 tooks a very long time!

Mar 25, 2010 6:33 AM

Hi, Im using the Flashbuilder 4, which was released this week, to call data from a webservice. I builded an application that just call a service to get data. I used the new function data service to import the WSDL of the service. With the generated code I call the service within a Cairngorm Delegate class.

public class GetTicketDelegate extends MainDelegate{

       
        private var _cmd:Object;
       
        public function GetTicketDelegate(responder:Object) {
           
            this._cmd = responder;
           
            this._responder = responder as IResponder;

            this._service = new AppService();
            this._service.showBusyCursor = true;
        }

        /**
         *
         */
        public function getTicket():void {

            var i_DATA:ZCSCST_REQ_INIT_TICKET = new ZCSCST_REQ_INIT_TICKET();
           
            this._service.Z_CSC_INIT_TICKET_WS(i_DATA);

            _service.addEventListener(ResultEvent.RESULT, onResult);
            _service.addEventListener(FaultEvent.FAULT, onFault);

        }

        /**
         * Result handler
         * @param event
         *
         */
        override protected function onResult(event:Event):void {
            this._cmd.lastResult = ResultEvent(event).result;
            super.onResult(event);
           
        }

        /**
         * Fault handler
         * @param event
         *
         */
        override protected function onFault(event:FaultEvent):void {
            Alert.show(event.fault.faultCode + ": " + event.fault.faultString + " - " + event.fault.faultDetail);
            super.onFault(event);
        }      

    }

 

 

I have also build the same webservice call with Flexbuilder 3 using also the WSDL Import wizard. Now what I found out is that the call with the Flashbuilder 4 application tooks very long.
After using the Firebug of Mozila Firefox I found out the generated Service in FB4 call first the WSDL file... maybe to check the operations of the service... I don't know.

 

Screen1.png

 

As you can see it tooks round about 11 seconds to retrive the data.

 

Can anybody tell me how I can avoid that strange WSDL call?

 

Regards

Ralf

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points