I have an AIR application developed on 3.5sdk. I've tried to build it on 4.5(air2.5), replaced Application.application with FlexGlobals, and now application is working good in debug mode. But the problem is: when i'm building the release version application fails to see WebService. Have somebody encountered with this problem?
It might be that if you generated classes from your local or dev server, that
url gets harcoded inside the generated class, so if you deploy an try to se a
new url it won;t override. There is a line of code there
something like loadIfNecessary() ... near the hardcoded wsdl. So you need to
comment that and make sure you set new wsdl on runtime. Not sure if that is your
case but I saw it happened here on some other thread ...
Nope. it's hardcoded right... i don't use local server...
The message is:
Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL (http://server_ip:server_port/webservice.asmx?WSDL)
ofc... not so newbie... the main problem is... it works on 3.5sdk, but doesn't work in 4.5 builded as release... in debug mode it does work in both sdk's...
in 4.1 and 4.5 it gives the same error... i've listed it previously
Not implying anything newbie here. If you can see WSDL in browser obviously
backend is good. Next thing I can think of is crossdomain.xml. Though it is
strange since you say it works fine for 3.5. Have a look in the Adobe jira maybe
some bug is there related to this ...
Sorry I can't be more helpful.
We're having similar issues, which were discovered pulling WSDL's like you. Although ours also seems to be related to all HTTP Service requests, including loading external assets.
Maybe some info here can help you:
Can you share some more details on the migration steps?. Did you regenerate the
service for flex 4. I assume you did however just want to make sure. Did
something similar with flex couple of months ago did not bump into the issue,
this intrigues me...