Hi and thanks for reading!
I tried to consume a xml webservice (jax-ws backend) with the inspector utility in flash builder beta 2.
Great tool, it created all neccessary classes and action script files from my wsdl without any error.
It's so nice to get deserialisation completly without manual intervention, really!
But at this point I got a huge performance issue. My webservice round-trip-time is usually between 20ms and 100ms (depending on called method, db access,...)
No client ever had problems with this service.
My generated flex service is producing accesstimes at about constantly 1000ms higher. 1 second is really long time for a simple action.
I measured this with two Date objects.
When I am using the mx.rpc.WebService object by hand, the time is perfect (20m to 100ms as expected).
Okay, I thought this could be caused from filling objects with the SOAP data... but...
After creating a webservice method that only answers with an Integer instead of a list of objects, I created a webservice method that has void voidMethod(void) signature...
Nothing changed. With my hand coded webservice element I am receiving times at about 10ms; Using the Service class generated by flex builder responsetimes are about 1000ms to 1100ms. Really hard to understand cause I was not yet able to track down a code peace where the time gets lost...
Flex Network manager is showing the 10ms response time when in debug mode.
Did anyone forget a sleep(1000ms) in a codepeace?
No idea if this could be helpful - some developer tutorial videos I watched about consuming a webservice with the inspector tool definitely had the same slow response times... (ok ok, this could be caused by slow connection or anything else, not the time to blame anyone yet
Did anyone get the same experience?
I know this is an old post, but I am facing the same issue when calling my .Net Web Service methods.
If I test the calls from IIS is pretty fast (average 6 seconds) for a complicated call. However, from Flex this time is doubled. I used flash.util.getTimer() method to calculate the time elapsed from when i make the web service call until I receive a response back. So, not GUI rendering is part of this measurement.
I am also using the proxy classes that Flex auto generated for me when connected to my web service.
Same issue for me also. Data parsing from service to flex object is consuming lot of time.
I am using Axis2 webserive connecting to weblogic server.
Any solution or alternatives to this issue?