This content has been marked as final. Show 12 replies
i think it is login?wsdl instead of login.wsdl
Thanks for the answer but unfortunately is not the right one, I tried with ?wsdl as well, but it still doesn't work
In fact I tried every possibility I can think about : I even copied the WSDL file in the same location as the Flex
think your creationComplete handler shouldn´t calll checkuser before the wsdl is loaded by your webservice instance.
You can call "checkUser" when the webservice has loaded the wsdl. (dont know the exact event handler but sometrhing like ... load="ws.checkUser()" ... should work)
I just tried it, it doesn't work
You are ssing a security error.
Are you running the application from Flex Builder or from a web server?
A swf(Flex app) cannot access data from a different domain than the one that served it unless that other server has a crossdomain.xml policy file.
The behavior is is different under FB, which installs into a trusted sandbox and can access most anything.
After I wrote the application I hit the "Run" button from my Flex Builder Application
that opens automatically a new browser window(Firefox in my case).
I have read on other forums about crossdomain.xml , but I didn't find anywhere what is it
about. Where can I find it, or where should I be? I searched all my computer and didn't
any file resembling this one.
Thanks for the answer,
If you are running under FlexBuilder, then crossdomain is not the problem.
Do you own the web service?
Yes I own the web services, there developed by me.
Well, I am stumped.
You might as well try the crossdomain.xml file. Below is an example. It is not secure, so use at your own risk.
It should go in the web server root, wherever " http://localhost:8080" resolves to.
<!DOCTYPE cross-domain-policy SYSTEM
<allow-http-request-headers-from domain="*" headers="*" />
Thanks for the example.
sounds like a weird problem.
First I like to propose to move the ws.checkuser call from the creationcomplete to a new button control and to a click method. This would help you to detect when error came up (during loading of the wsdl (which I assume from the error message) or when the checkuser function is called).
Second I would like to ask for some more infos:
- Flexbuilder version
- Your OS
- May post the login.wsdl which you can load from the browser (the error message mentioned the format of the wsdl)
I finally resolved the problem. It was a security issue...as the message error stated.
What I have done it was to add the bin location of my project to the Flash Player
sand box (this how it is called...I think).
Thanks for your time,