Highlighted

HELP! Can not access Web Service

Avatar

Avatar

CJSteu

Avatar

CJSteu

CJSteu

22-02-2009

I get error below if webservice asmx and URL of domain do not
match...

they both have to have
http://www or no 'www' in order to run...

otherwise I get the following error below BUT my cross domain
is at

the root of the webserver!! what am I doing wrong???:





[RPC Fault faultString="Security error accessing url"

faultCode="Channel.Security.Error" faultDetail="Unable to



load WSDL. If currently online, please verify the URI and/or
format of

the WSDL



(
http://www.velocitytrading.net/VTOrdEnt.asmx?WSDL)"

at mx.rpc.wsdl::WSDLLoader/faultHandler()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at

mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::dispatchRpcE\

vent()

at

mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler\

()

at mx.rpc::Responder/fault()

at mx.rpc::AsyncRequest/fault()

at DirectHTTPMessageResponder/securityErrorHandler()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/redirectEvent()





CROSS DOMAIN



<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM

"
http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

<cross-domain-policy>

<allow-access-from domain="
http://velocitytrading.net"/>

<allow-access-from domain="
http://www.velocitytrading.net"/>

<allow-access-from domain="*.*"/>

</cross-domain-policy>

Replies

Highlighted

Avatar

Avatar

geethakm

Avatar

geethakm

geethakm

24-02-2009

Hi CJSteu,



Can u add this crossdomain.xml in ur server bin and dtd also
if needed and check the server is able to invoking the
crossdomain.xml by



url ex:
http://localhost:7001/crossdomain.xml



<?xml version="1.0"?>

<!DOCTYPE cross-domain-policy SYSTEM
"cross-domain-policy.dtd">

<cross-domain-policy>

<site-control permitted-cross-domain-policies="all"/>

<allow-access-from domain="*" to-ports="*" />

<allow-http-request-headers-from domain="*"
headers="*"/>

</cross-domain-policy>