Hi,
It might be an issue with the Namespace , if your webservice has
namespace, use that namespace on your Actionscriont in onComplete
method,
For example
namespace is "abc"
create a namespace
public namespace ns = "abc";
use this namespace in onComplete function on ur as code,
public function onComplete(event:Event)
{
xmlList = new XML(loader.data);
use namespace ns;
}
Regards,
-- AjayKumar
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, July 04, 2008 2:46 AM
To: [email protected]
Subject: RE: [flexcoders] WebService Issue
To be clear, the crossdomain.xml file must go on the server that is
serving the *WebService*. Is that the case?
And hmm, you may be missing the most important part of the crossdomain
file, let mw look.... Yes, you need a line like this:
<allow-access-from domain="*" to-ports="*" secure="true" />
Tracy
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of shameer.forflex
Sent: Thursday, July 03, 2008 3:13 AM
To: [email protected]
Subject: [flexcoders] WebService Issue
My flex application is calling a webservice. It runs fine locally.
When put on the server, I am getting an error.
The fault string looks like
message faultCode:Channel.Security.Error
faultString:'Security error accessing url'
faultDetail:'Unable to load WSDL. If currently online, please verify
the URI and/or format of the WSDL (http://myshec103077d:8080/Check/
<http://myshec103077d:8080/Check/>
addint?wsdl)'
I tried putting crossdomain.xml in the root of the application server
and I am able to access the cross domain file by typing
http://myshec103077d:8080/crossdomain.xml
<http://myshec103077d:8080/crossdomain.xml>
The cross domain file which I had put is of the form
<?xml version="1.0" ?>
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-http-request-headers-from domain="*" headers="SOAPAction"
secure="false" />
</cross-domain-policy>
Still I am getting the same error, when I run the flex app on the
server.
Any pointers will be appreciated.
Thanks,
Shameer.