We help IT Professionals succeed at work.

AS2 webservice working locally, but not online

msukow
msukow asked
on
I have a SWF that works when consuming an ASP.net webservice as expected when I test locally. However, when I upload to the server, the SWF appears to be in a permanent holding pattern with none of the data being displayed. Please see the attached code for "crossdomain.xml" - does this need to be adjusted?
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
	<site-control permitted-cross-domain-policies="master-only"/>
	<allow-access-from domain="*.abc.abc.com" secure="false" />
	<allow-http-request-headers-from domain="*.abc.abc.com" headers="SOAPAction"/>
</cross-domain-policy>

Open in new window

Comment
Watch Question

Commented:
Do you have that crossdomain.xml file on the server where webservice script resides and your SWF sits in *.abc.abc.com domain???

CyanBlue

Author

Commented:
yes

Commented:
Do you have a URL where I can see it happening???

CyanBlue
crossdomain.xml should contain an entry for the domain name where your swf is residing.

for instance if your swf is hosted on. www.mygreatswf.com/somepage/thepage.html 

and you are calling a webservice on www.mywebservice.com/myserviceurl/

then you need to have the following entry in ur crossdomain.xml

<allow-access-from domain="www.mygreatswf.com" secure="false" />

and this crossdomain.xml file should be found at www.mywebservice.com/crossdomain.xml

good luck
furthermore i read ur posts again. the wild card thing doesnt work in crossdomain file. flash does a dumb comparison. it goes for an exact string match.

so mention the exact domain name in the xml and it will word. instead of *.abc.abc.com try "myexactdomain.abc.abc.com"
Commented:
There was an issue on the way the server was set up. It has now been resolved.

Commented:
Oh...  You didn't tell me that from the beginning...  Just kidding...  :p  

CyanBlue