Hi Jonathan!

In your flex-config.xml file, uncomment out "<url>http://*</url>" and
"<url>https://*</url>" under the <whitelist> section of <web-service-proxy>
and <http-service-proxy>.

Example under <web-service-proxy>:

<whitelist>
<!-- config for unnamed web services -->
<unnamed>
<url>http://{localserver}/*</url>
<url>https://{localserver}/*</url>
<!--
For security, the whitelist is locked down by default.
Uncomment the first two urls below to enable access to all
URLs,
or add above the individual URLs you wish to access.
-->
<url>http://*</url>
<url>https://*</url>
</unnamed>
...
</whitelist>

Hope this helps!
Susan
Flex QA

-----Original Message-----
From: Jonathan Baney [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 06, 2004 10:50 AM
To: [email protected]
Subject: [flexcoders] session servlet problem

Hi All,

I am having difficulties with using the session servlet. My web.xml is 
unmodified and I make no reference to the session servlet in the 
flex_config.xml. I am using flex 1.0 on Jrun 4. Here is the error I get:

"Service threw an exception during method invocation: You are not 
allowed to access the service /faq. The service is not in the 
configured whitelist."

All the docs say to do is add something like this in the mxml file (this 
is what I have)
<mx:RemoteObject source="servlet" id="sessionObj" encoding="AMF"
showBusyCursor="true" result="retrieveSessionParams(event)"/>

I am using the following to access the session in the mxml file:

//called when app is initialized
function initApp():Void {
sessionObj.session("get","currentView");
}
function retrieveSessionParams(event):Void {
var currentView:String = event.result.currentView;
}
function setSessionParams(param:String):Void {
sessionObj.session("set","currentView",param);
}

Am I missing something?

Thanks,
Jonathan

-- 
Jonathan Baney
Enterprise Data Modeler
Thunderbird Consulting Application Engineering: A division of ITS
Mesa Community College






Yahoo! Groups Links






Reply via email to