RE: [flexcoders] [Flex 2] Crossdomain issue

2006-10-16 Thread Peter Farland





 This shouldn't matter, but can you try removing the 
to-ports attribute in the crossdomain.xml but leave the domain attribute in the 
allow-access-from element?
 
Are you using mxmlc to compile the SWF and if so, is there 
any chance that you changed the network access policy when compiling the SWF 
(i.e. set -useNetwork to false if compiled with 
mxmlc)?


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas 
RühlSent: Monday, October 16, 2006 7:49 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] [Flex 2] Crossdomain 
issue


Hello flexcoders,I am 
currently failing to access my application by an address other than 
localhost.The error I get is:Client.Error.MessageSend: Send 
failedThe details are:[FaultEvent.fault=[RPC Fault 
faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Security.Error error Error #2048"] 
messageId="..." type="fault" bubbles=false cancelable=true 
eventPhase=2]My crossdomain.xml looks like this:?>policy SYSTEM 
"http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">policy>from 
domain="*" 
to-ports="*"/>policy>And the URL, 
I am attempting to access ishttp://10.12.104.10:8700/flex/AvalonHelpdesk/AvalonHelpdesk.html...where 
10.12.104.10 is my IP address and 8700 is the FDS port.I can 
successfully access the policy file by typinghttp://10.12.104.10:8700/crossdomain.xmlEverything 
else, like Coldfusion and the database, as well runs locally on my machine. 
Any attempts using localhost, work just fine.Any help is really 
appreciated!Cheers, 
ThomasThomas 
RühlDesign, Programming & Conceptsakitogo OHGHanauer 
Landstrasse 18860314 FrankfurtTelefon +49 (0) 69 800 69 445Fax 
+49 (0) 69 800 69 449Mobil +49 (0) 179 750 75 87E-Mail thomas.ruehl@akitogo.comWeb 
http://www.akitogo.com
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] [Flex 2] Crossdomain issue

2006-10-17 Thread Thomas Rühl

Hi Peter, thanks for your reply.

I initially tried the configuration without the to-ports attribute, but 
no success there either. At the moment, I placed the crossdomain.xml in 
every folder I could find, that possibly could be accessed by 
FlashPlayer to gather the file.

However, it should only be placed in the root. As I wrote, in my case I 
can access the file directly using 
http://10.12.104.10:8700/crossdomain.xml, so I really do not understand 
what's going on there... It seems, as if the config loads now for some 
strange reason, but I'm getting another error on the server-side:

Requested resource '/flex2gateway/' (%2fflex2gateway%2f) not found

So... I drilled it down towards the services-config file(s)... Since I 
am using FDS alongside with RPC, the application is hosted by FDS, but I 
adapted an individual services-config-plusRemoting to enable 
FlashRemoting and the use of the Coldfusion gateway flex2gateway. Every 
change to the config, I do in both files - the adapted one that the 
compiler uses and that is included in the swf, and the original one that 
is available for FDS at runtime.

For the flex2gateway channel, they are both configured like this:


http://{server.name}:{server.port}{context.root}/flex2gateway/"; 
class="flex.messaging.endpoints.AMFEndpoint"/>
  
   false

 false

  



What am I doing wrong here??

Cheers, Thomas.



   Thomas Rühl
   Design, Programming & Concepts

   akitogo OHG
   Hanauer Landstrasse 188
   60314 Frankfurt

   Telefon +49 (0) 69 800 69 445
   Fax +49 (0) 69 800 69 449
   Mobil   +49 (0) 179 750 75 87
   E-Mail  [EMAIL PROTECTED]
   Web http://www.akitogo.com




Peter Farland wrote:
> 
> 
>  This shouldn't matter, but can you try removing the to-ports attribute 
> in the crossdomain.xml but leave the domain attribute in the 
> allow-access-from element?
>  
> Are you using mxmlc to compile the SWF and if so, is there any chance 
> that you changed the network access policy when compiling the SWF (i.e. 
> set -useNetwork to false if compiled with mxmlc)?
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Thomas Rühl
> *Sent:* Monday, October 16, 2006 7:49 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] [Flex 2] Crossdomain issue
> 
> 
> Hello flexcoders,
> 
> I am currently failing to access my application by an address other than
> localhost.
> 
> The error I get is:
> Client.Error.MessageSend: Send failed
> 
> The details are:
> [FaultEvent.fault=[RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend" faultDetail="Channel.Security.Error
> error Error #2048"] messageId="..." type="fault" bubbles=false
> cancelable=true eventPhase=2]
> 
> My crossdomain.xml looks like this:
> 
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd 
> ">
> 
> 
> 
> 
> And the URL, I am attempting to access is
> http://10.12.104.10:8700/flex/AvalonHelpdesk/AvalonHelpdesk.html 
> 
> ...where 10.12.104.10 is my IP address and 8700 is the FDS port.
> 
> I can successfully access the policy file by typing
> http://10.12.104.10:8700/crossdomain.xml 
> 
> 
> Everything else, like Coldfusion and the database, as well runs locally
> on my machine. Any attempts using localhost, work just fine.
> 
> Any help is really appreciated!
> 
> Cheers, Thomas
> 
> 
> 
> Thomas Rühl
> Design, Programming & Concepts
> 
> akitogo OHG
> Hanauer Landstrasse 188
> 60314 Frankfurt
> 
> Telefon +49 (0) 69 800 69 445
> Fax +49 (0) 69 800 69 449
> Mobil +49 (0) 179 750 75 87
> E-Mail [EMAIL PROTECTED] 
> Web http://www.akitogo.com 
> 
> 
> 
> 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



Re: [flexcoders] [Flex 2] Crossdomain issue

2006-10-17 Thread Thomas Rühl

I got it, I got it! ...well, almost.

Due to my RPC adaptions to services-config, I configured the 
'ColdFusion' destination to be localhost:8500. So, after all, it was my 
fault. However, when I began using Coldfusion I remember the {server...} 
variables didn't work for some reason.

Well, they do now, what the hell...

Thanks, Peter, for your concern.
Cheers, Thomas



   Thomas Rühl
   Design, Programming & Concepts

   akitogo OHG
   Hanauer Landstrasse 188
   60314 Frankfurt

   Telefon +49 (0) 69 800 69 445
   Fax +49 (0) 69 800 69 449
   Mobil   +49 (0) 179 750 75 87
   E-Mail  [EMAIL PROTECTED]
   Web http://www.akitogo.com




Peter Farland wrote:
> 
> 
>  This shouldn't matter, but can you try removing the to-ports attribute 
> in the crossdomain.xml but leave the domain attribute in the 
> allow-access-from element?
>  
> Are you using mxmlc to compile the SWF and if so, is there any chance 
> that you changed the network access policy when compiling the SWF (i.e. 
> set -useNetwork to false if compiled with mxmlc)?
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Thomas Rühl
> *Sent:* Monday, October 16, 2006 7:49 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] [Flex 2] Crossdomain issue
> 
> 
> Hello flexcoders,
> 
> I am currently failing to access my application by an address other than
> localhost.
> 
> The error I get is:
> Client.Error.MessageSend: Send failed
> 
> The details are:
> [FaultEvent.fault=[RPC Fault faultString="Send failed"
> faultCode="Client.Error.MessageSend" faultDetail="Channel.Security.Error
> error Error #2048"] messageId="..." type="fault" bubbles=false
> cancelable=true eventPhase=2]
> 
> My crossdomain.xml looks like this:
> 
> 
>  "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd 
> ">
> 
> 
> 
> 
> And the URL, I am attempting to access is
> http://10.12.104.10:8700/flex/AvalonHelpdesk/AvalonHelpdesk.html 
> 
> ...where 10.12.104.10 is my IP address and 8700 is the FDS port.
> 
> I can successfully access the policy file by typing
> http://10.12.104.10:8700/crossdomain.xml 
> 
> 
> Everything else, like Coldfusion and the database, as well runs locally
> on my machine. Any attempts using localhost, work just fine.
> 
> Any help is really appreciated!
> 
> Cheers, Thomas
> 
> 
> 
> Thomas Rühl
> Design, Programming & Concepts
> 
> akitogo OHG
> Hanauer Landstrasse 188
> 60314 Frankfurt
> 
> Telefon +49 (0) 69 800 69 445
> Fax +49 (0) 69 800 69 449
> Mobil +49 (0) 179 750 75 87
> E-Mail [EMAIL PROTECTED] 
> Web http://www.akitogo.com 
> 
> 
> 
> 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



RE: [flexcoders] [Flex 2] Crossdomain issue

2006-10-18 Thread Peter Farland





Hey Thomas,
 
I should point out that you have a few options when 
connecting to ColdFusion from a Flex 2 application (well, for any Flex 2 
application but I'll keep this reply CF focused).
 
The first thing I want to mention is that for RPC 
services like RemoteObject, and WebService and HTTPService (when using the 
proxy) you can avoid specifying a services-config.xml file so long as you 
take on the responsibility of programmatically specifying where the channel 
endpoint(s) are for a service. I would suggest this approach if you are 
connecting to an endpoint other than FDS and you're not comfortable futzing with 
the configuration across two app servers.
 
1. The first way to specify a set of channels that can be 
tried to find a suitable endpoint to communicate with a destination. This 
approach is hinted in the docs...

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=1101.html
... but to make it more explicit I'll reproduce the 
relevant ActionScript code here:
 
import mx.messaging.ChannelSet;
import mx.messaging.Channel;

import 
mx.messaging.channels.AMFChannel;
 
...var cs:ChannelSet = new ChannelSet();var 
customChannel:Channel = new AMFChannel(null, "http://localhost:8700/cfusion/flex2gateway/");cs.addChannel(customChannel);myRemoteObject.channelSet = 
cs;...
 
Note that we pass a null channel id to the channel 
constructor so that we don't have to know what the channel-definition is called 
in the relevant /WEB-INF/flex/services-config.xml file. The channel id is only 
to help services catch a mistaken channel assignment which is only really 
important for publish/subscribe services as if one were to assign a non-polling, 
non-real-time channel you'd never received pushed updates.
 
Also note this approach should work for other RPC services 
too (well, it is true for publish/subscribe services too like 
Producers/Consumers for the FDS message service and the data management 
services).
 
 
2. Another quick and dirty way to do this for the MXML API 
of RemoteObject ONLY is to use the legacy endpoint 
attribute:
 
http://localhost:8700/cfusion/flex2gateway/  ... />
 
Under the covers the MXML tag will use the endpoint to 
create a default channel set for you (it'll use AMFChannel for URLs starting 
with http, and SecureAMFChannel for URLs starting with 
https).
 
 
Pete
 
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas 
RühlSent: Tuesday, October 17, 2006 5:52 AMTo: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] [Flex 2] 
Crossdomain issue


I got it, I got it! ...well, almost.Due to my RPC adaptions to 
services-config, I configured the 'ColdFusion' destination to be 
localhost:8500. So, after all, it was my fault. However, when I began using 
Coldfusion I remember the {server...} variables didn't work for some 
reason.Well, they do now, what the hell...Thanks, Peter, for 
your concern.Cheers, 
ThomasThomas 
RühlDesign, Programming & Conceptsakitogo OHGHanauer 
Landstrasse 18860314 FrankfurtTelefon +49 (0) 69 800 69 445Fax 
+49 (0) 69 800 69 449Mobil +49 (0) 179 750 75 87E-Mail thomas.ruehl@akitogo.comWeb 
http://www.akitogo.comPeter 
Farland wrote:> > > This shouldn't matter, but can you try 
removing the to-ports attribute > in the crossdomain.xml but leave 
the domain attribute in the > allow-access-from element?> 
> Are you using mxmlc to compile the SWF and if so, is there any chance 
> that you changed the network access policy when compiling the SWF (i.e. 
> set -useNetwork to false if compiled with mxmlc)?> 
--> 
*From:* [EMAIL PROTECTED]ups.com 
[mailto:[EMAIL PROTECTED]ups.com] 
> *On Behalf Of *Thomas Rühl> *Sent:* Monday, October 16, 2006 
7:49 AM> *To:* [EMAIL PROTECTED]ups.com> 
*Subject:* [flexcoders] [Flex 2] Crossdomain issue> > > 
Hello flexcoders,> > I am currently failing to access my 
application by an address other than> localhost.> > The 
error I get is:> Client.Error.MessageSend: Send failed> 
> The details are:> [FaultEvent.fault=[RPC Fault 
faultString="Send failed"> 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Security.Error> error Error #2048"] 
messageId="..." type="fault" bubbles=false> cancelable=true 
eventPhase=2]> > My crossdomain.xml looks like this:> 
?>> > policy SYSTEM> "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd 
> <http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd>">> 
policy>> from domain="*" 
to-ports="*"/>> policy>> 
> And the URL, I am attempting to access is> http://