Expand my Community achievements bar.

Urgent - Please help !

Avatar

Level 1
Hi,



I am beating my heads out but this strange problem doesnt
seem to have an answer.

I have a web app which retrieves data from a web service and
displays in a grid.It runs fine from a FLEX IDE.



I installed Livecycle data service(Flex.war , flex-admin.war
, samples.war) on tomcat and I created a directory in the samples
directory in which I have put my mxml file.I am able to access my
application through a URL.but when I hit the button to get the data
, It doesnt seem to be doing anything.

Also when I access the app, a swf file gets created in the
app directory but when I try to run it , It give the error



[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://jcaps.davita.corp:18080/uddidocs/envDaVitaRxDev/PIMUWebServ_build/wsdDRUGLOOKUP/wsdl_jce_wsdD...

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::dispatchRpcEvent()

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()



I searched online and ppl say that this is a crossdomain
issue but I have everything running on the same m/c.My application
, the UDDI server and the actual web service are all deployed on
the same physical m/c.



Guys , please help me If you know any solution.!! This is
driving me crazy!



Thanks,

Deepak.
2 Replies

Avatar

Level 2


Do you use Hotfix 3. There are a number of bug fixes
pertaining to the use of WebServices:
http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402381&sliceId=1

Avatar

Level 1
Thanks Karl.

I am not sure what hotfix 3 id but I have solved my problem.



I came across two little enlighntements.

1) The swf player security does not allow to fetch data from
any other domain.The "domain" thing here is very important coz
http://www.yahoo.com and
http://yahoo.com will be considered
different domain per the FLEX specs.

So basically my problem was that the crossdomain.xml which I
have put on my UDDI server was not accessible at the root.

so basically ur crossdomain.xml must be accessible on the URL

http://domain.com:port/crossdomain.xml

I modified the server.xml of the UDDI server to access the
crossdomain.xml on the root.You might have a different server file
to modify but this is the solution.



2) Also when you copy ur swf file out of your FLEX builder
default directory,It give error.

For this you need to make an entry in the flexbuilder.cfg
file

C:\Documents and Settings\user_name\Application
Data\Macromedia\Flash
Player\#Security\FlashPlayerTrust\flexbuilder.cfg



This will make ur swf work from any directory..



Hope this will help some people.!!!!



Thanks,

Deepak.