Highlighted

On WebServices, crossdomain.xml and debug-mode

Avatar

Avatar

Caele

Avatar

Caele

Caele

22-01-2009

I'm building a conncetion to a remote webservice, and they
don't have a crossdomain.xml file on their server (or it is placed
badly or something).



While developing my connection has worked fine, but when I go
outside of the debug mode (actually running the swf/html from any
other folder then the projects bin-debug) and the connection won't
work. It returns no error and just seems to keep going ignoring the
request. So I looked around for a bit and managed to turn on the
trace() log file which brought the problem to my attention:



Cannot load crossdomain.xml from server, halting request. (or
something similar)



This is fine now that I know of it, I can get the server
people to add crossdomain for me. The questions I'm asking though
is:

Why does it work in the bin-debug filder?

How can I capture the "Cannot load crossdomain..." trace? (my
guess is that its generated in the flash player, and not flex
library)

Replies

Highlighted

Avatar

Avatar

ligouane

Avatar

ligouane

ligouane

11-06-2009

Hey Caele, I've exactly the same problem. WebServices are working like charms in debug mode, but if I try to export a release version, it won't work anymore...

Highlighted

Avatar

Avatar

Benji2008

Avatar

Benji2008

Benji2008

12-06-2009

that's very strange indeed

do you have the same versions for Flash and the Flashdebugger ?

Highlighted

Avatar

Avatar

ligouane

Avatar

ligouane

ligouane

15-06-2009

Yes I do. I don't understand. I'm gonna try to negotiate with my JEE developper to work this out...

Highlighted

Avatar

Avatar

ligouane

Avatar

ligouane

ligouane

16-07-2009

Okay, the problem was between the chair and the keyboard... The crossdmain.xml file wasn't at the root of the server...

Highlighted

Avatar

Avatar

_Nith_

Total Posts

(val/1000)?string[".0"]}K

Likes

121

Correct Answer

91

Avatar

_Nith_

Total Posts

(val/1000)?string[".0"]}K

Likes

121

Correct Answer

91
_Nith_

02-08-2009

Understand the SandboxType of flash player before getinto this issue.

While inside the  bin-debug, your sandbox type is LocalTrusted. This will allow access to external system,

When go go for the deployment it wont works, cos you sandbox type will be different (say Network with Local)

http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html

The above URL will expain the security concept

Nith