PDA

View Full Version : web service performance problems


axel.max
12-29-2006, 02:04 AM
Hi all... has anybody else had a similar problem to what I'm having?

I am in the process of porting an application to AS3 flex 2 from flash 7.

web services that took max 2 seconds to process (ie once data received) now take 30 seconds+. It is definitely NOT the asynchronous time taken while the server assembles the data - I am timing it once the object has been received.

as a comparison I used the same xml file returned from the webservice request and parsed it with the AS3 XML object placing it into an array of Objects - this took just 200 milliseconds... what could the SoapDecoder class be doing that takes this long?!

I can see the following alternatives (anybody know how to do or have already done?!):

1. fix the problem somehow (access to the WebService source code and auxilliary classes to step through would be a start)
2. prevent the SOAPDecoder from decoding at all somehow (by extending it maybe - this is a bit hard when you don't have the source or API) and processing the pure XML web service respsonse myself
3. port the as2 webservice to as3

thanks for your help in advance

here's the invocation:

private function triggerWebService(fcall:WSFunctionCall, dl:DataLoader, serviceName:String, args:Array, configOptions:Object):void
{
var operation:AbstractOperation = ws.getOperation(serviceName);

fcall.asyncToken = operation.send.apply(operation, args);

operation.addEventListener(ResultEvent.RESULT, fcall.parseData);
operation.addEventListener(FaultEvent.FAULT, fcall.parseFault);
}

hangalot
01-07-2007, 01:55 PM
the webservice is written in a server side language so porting it to as3, thoughy the code was already as3...
i think the easiest would be handleing the raw response and using e4x to parse it