Re: Another CFDOCUMENT SUCK?
CFDOCUMENT has been the bane of my existence for years. Check out this simple dynamic PDF packaging code which should work... CFSET PAGEARRAY = [] / CFLOOP from=1 to=3 index=i CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv style=background:url(http://www.houseoffusion. com/_/hof120.gif)BRnbsp;/div/body/html /CFDOCUMENT cfset arrayappend(PAGEARRAY,PDFPAGE) / /CFLOOP CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv style=background:url(http://www.houseoffusion. com/_/hof120.gif)BRnbsp;/div/body/html /CFDOCUMENT cfset arrayappend(PAGEARRAY,PDFPAGE) / CFPDF action=merge name=FINALPDF cfloop from=1 to=#arraylen(PAGEARRAY)# index=i cfset pointer = PAGEARRAY[i]/ cfpdfparam source=pointer /cfloop /CFPDF cfcontent type=application/pdf variable=#tobinary(FINALPDF)# If you run this (on CF8 or CF9 - not tried 10) you will notice that the image appears only on the first and last page! Why? Because CFDocument ignores background images after the first call when in a loop. I was able to prove this by putting the call into a CFINCLUDE inside the loop. But then, if you add a CFDOCUMENTITEM to it, it throws an error: Routines cannot be declared more than once. According to Adobe there was a hotfix for this in CF8, although it did not work for me. Anyone know CFDoc well enough to present another solution? TIA, Igor I don't suppose there are any other ideas out there? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Another CFDOCUMENT SUCK?
CFDOCUMENT has been the bane of my existence for years. Check out this simple dynamic PDF packaging code which should work... CFSET PAGEARRAY = [] / CFLOOP from=1 to=3 index=i CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv style=background:url(http://www.houseoffusion.com/_/hof120.gif)BRnbsp;/div/body/html /CFDOCUMENT cfset arrayappend(PAGEARRAY,PDFPAGE) / /CFLOOP CFDOCUMENT FORMAT=PDF NAME=PDFPAGE htmlbodydiv style=background:url(http://www.houseoffusion.com/_/hof120.gif)BRnbsp;/div/body/html /CFDOCUMENT cfset arrayappend(PAGEARRAY,PDFPAGE) / CFPDF action=merge name=FINALPDF cfloop from=1 to=#arraylen(PAGEARRAY)# index=i cfset pointer = PAGEARRAY[i]/ cfpdfparam source=pointer /cfloop /CFPDF cfcontent type=application/pdf variable=#tobinary(FINALPDF)# If you run this (on CF8 or CF9 - not tried 10) you will notice that the image appears only on the first and last page! Why? Because CFDocument ignores background images after the first call when in a loop. I was able to prove this by putting the call into a CFINCLUDE inside the loop. But then, if you add a CFDOCUMENTITEM to it, it throws an error: Routines cannot be declared more than once. According to Adobe there was a hotfix for this in CF8, although it did not work for me. Anyone know CFDoc well enough to present another solution? TIA, Igor ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351366 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Another CFDOCUMENT SUCK?
Why not use one cfpdf with pagebreaks instead? Ray, this was a simple example to show the suckage. For the app, the data for various documents is coming from a database, and each one has different headers and footers. We already have all of the code which constructs the individual CFDocs successfully, and are merely trying to wrap it in a loop to stick them together into a single PDF. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351368 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Another CFDOCUMENT SUCK?
I would expect you can solve this problem by using unique names within your loop: cfloop from=1 to=3 index=i cfdocument ... name=pdfpage_01_#i#.../cfdocument ... cfdocument ... name=pdfpage_02_#i#.../cfdocument ... /cfloop We tried that Dave, it did not do the trick. Any other ideas? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFQueryParam and Unicode mixing
Someone correct me if I am wrong, but if you enable non-latin text for a datasource, cfqueryparam will treat ALL cf_sql_varchar data as unicode. Meaning there is no way to specify a non-unicode (ansi) string other than to NOT use cfqueryparam? I'm trying to weigh the value of enabling the non-latin option versus the N hinting, but I can't find a way to enter single-byte strings with cfqueryparam once the option is checked, and I think it's silly to sacrifice 50% of my storage space for this convenience. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335700 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
CFQueryParam and Unicode mixing
Someone correct me if I am wrong, but if you enable non-latin text for a datasource, cfqueryparam will treat ALL cf_sql_varchar data as unicode. Meaning there is no way to specify a non-unicode (ansi) string other than to NOT use cfqueryparam? I'm trying to weigh the value of enabling the non-latin option versus the N hinting, but I can't find a way to enter single-byte strings with cfqueryparam once the option is checked, and I think it's silly to sacrifice 50% of my storage space for this convenience. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335703 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
AHP Hosting Down Anyone on AHP?
My VPS is down and several on neighboring IPs. Anyone else on AHP that is down? My IP is 64.118.75.135. -Igor ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326964 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: AHP Hosting Down Anyone on AHP?
Thanks, I've been burning up Greg's cell and email this AM. Does anyone know if he's in LA? -Igor -Original Message- From: Michael Dinowitz [mailto:mdino...@houseoffusion.com] Sent: Tuesday, October 06, 2009 11:35 AM To: cf-talk Subject: Re: AHP Hosting Down Anyone on AHP? The House of Fusion machine and virtual server are both up. I've pinged Greg about your IP. On Tue, Oct 6, 2009 at 12:23 PM, Igor Ilyinsky cf-t...@maverickmaven.com wrote: My VPS is down and several on neighboring IPs. Anyone else on AHP that is down? My IP is 64.118.75.135. -Igor ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326966 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Setting a value for CFTEXTAREA (richtext) via Javascript
Is anyone really familiar with the way CF8 implements FCK? I'm trying to set the innerHTML value for a richtext field via javascript, and am having no luck finding the property. CF8 provides a nifty ColdFusion.getElementValue() function, but no setElementValue function :( . I'm able to get the ID of the field (document.MyFormName.MyFormField.id) but am not aware of a way to dup out the properties of the object. I'd prefer not to have to go through the trouble of binding, and just set it directly in my JS function. Any help here is appreciated. - Igor ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290543 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CFMX 6.1 Session Replication on JRun 4
Has anyone been successful in setting up the session replication in CFMX 6.1 on Jrun 4? I'm trying to test it out on 1 machine (for now). I have set up 2 server instances (say Server1 and Server2) and deployed CFMX on both. I configured both instances of CFMX to allow J2EE sessions. I clustered those 2 server instances in JRun I added each of the instances as a peer to the other, and pointed the web root to the same index.cfm file. The simple INDEX.CFM for testing is as follows: CFAPPLICATION name=testapp applicationtimeout=#createtimespan(0,0,5,0)# sessionmanagement=Yes sessiontimeout=#createtimespan(0,0,1,0)# CFIF IsDefined(Session.Host) CFOUTPUT#Session.Host#/CFOUTPUT CFELSE First time here. /CFIF BRBR CFSET Session.Host = CGI.HTTP_HOST CFDUMP var=#Session.Host# Now, when I test the two instances (say loclhost:8001 and localhost:8002) I never get confirmation that a session is coming form the other instance. The weird thing (or maybe not) is that the JSessionID, CFID and CFTOKEN are the same on both calls. Any input is appreciated. thanks in advance, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFMX 6.1 Session Replication on JRun 4
Thanks Dick, I'll give it a try. -Original Message- From: Dick Applebaum [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 12:37 PM To: CF-Talk Subject: Re: CFMX 6.1 Session Replication on JRun 4 I hadn't played with this for a while, so I thought I'd give it a try -- seems to work OK; 1) I am running CFMX6.1/JRun on Mac OS X Panther (all updates available applied) 2) Setup 2 server instances cfmx61 and cfmx61b (just duped the existing cfmx61 instance) 3) JMC: created/initialized cfmx61b 4) Set J2EE session variables in both 5) JMC: clustered cfmx61 and cfmx61b 6) wsconfig: connected cluster to Apache 7) Used a simple program (suggested by Sean Corfield) -- see below 8) Run concurrently in several windows of the same browser - each window of the same browser pointed to same domain is treated as the same session - each window of the same browser pointed to different domain is treated as different session 9) Run concurrently in several different browsers (Safari, IE, Mozilla) -different browsers are different sessions 10) JMC: Stop/Start cfmx server instances to see server instance change in browser windows HTH Dick Sean's program cfapplication name=blah sessionmanagement=Yes sessiontimeout=#CreateTimeSpan(0,0,45,0)# setdomaincookies=yes and html body cfif NOT IsDefined(Session.TestA) cfset Session.TestA = 0 /cfif cfset Session.TestA = Session.TestA + 1 cfobject action="" type=java class=jrunx.kernel.JRun name=jr cfset sname = jr.getServerName() cfoutput on server #sname# p Session value = #Session.TestA# p SessionID = #Session.SessionID# /cfoutput /body /html On Mar 2, 2004, at 7:35 AM, Igor Ilyinsky wrote: Has anyone been successful in setting up the session replication in CFMX 6.1 on Jrun 4? I'm trying to test it out on 1 machine (for now). I have set up 2 server instances (say Server1 and Server2) and deployed CFMX on both. I configured both instances of CFMX to allow J2EE sessions. I clustered those 2 server instances in JRun I added each of the instances as a peer to the other, and pointed the web root to the same index.cfm file. The simple INDEX.CFM for testing is as follows: CFAPPLICATION name=testapp applicationtimeout=#createtimespan(0,0,5,0)# sessionmanagement=Yes sessiontimeout=#createtimespan(0,0,1,0)# CFIF IsDefined(Session.Host) CFOUTPUT#Session.Host#/CFOUTPUT CFELSE First time here. /CFIF BRBR CFSET Session.Host = CGI.HTTP_HOST CFDUMP var=#Session.Host# Now, when I test the two instances (say loclhost:8001 and localhost:8002) I never get confirmation that a session is coming form the other instance. The weird thing (or maybe not) is that the JSessionID, CFID and CFTOKEN are the same on both calls. Any input is appreciated. thanks in advance, Igor cccfug.org _ [ HYPERLINK http://www.houseoffusion.com/lists.cfm?link=t:4Todays Threads] [ HYPERLINK http://www.houseoffusion.com/lists.cfm?link=i:4:155077This Message] [ HYPERLINK http://www.houseoffusion.com/lists.cfm?link=s:4Subscription] [ HYPERLINK http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=5326.4851.4Fast Unsubscribe] [ HYPERLINK http://www.houseoffusion.com/signin/User Settings] _ HYPERLINK http://www.houseoffusion.com/banners/view.cfm?bannerid=37 \n --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.552 / Virus Database: 344 - Release Date: 12/15/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.552 / Virus Database: 344 - Release Date: 12/15/2003 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Session Replication in CFMX 6.1 on JRun 4
Having trouble setting up the session replication in CFMX 6.1 on Jrun 4. I'm trying to test it out on 1 machine (for now). I have set up 2 server instances (say Server1 and Server2) and deployed CFMX on both. I configured both instances of CFMX to allow J2EE sessions. I clustered those 2 server instances in JRun I added each of the instances as a peer to the other, and pointed the web root to the same index.cfm file. The simple INDEX.CFM for testing is as follows: CFAPPLICATION name=testapp applicationtimeout=#createtimespan(0,0,5,0)# sessionmanagement=Yes sessiontimeout=#createtimespan(0,0,1,0)# CFIF IsDefined(Session.Host) CFOUTPUT#Session.Host#/CFOUTPUT CFELSE First time here. /CFIF BRBR CFSET Session.Host = CGI.HTTP_HOST CFDUMP var=#Session.Host# Now, when I test the two instances (say loclhost:8001 and localhost:8002) I never get confirmation that a session is coming form the other instance. The weird thing (or maybe not) is that the JSessionID, CFID and CFTOKEN are the same on both calls. Any input is appreciated. thanks in advance, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Session Replication in CFMX 6.1 on JRun 4
Perhaps I should mention that I have not set up the web server configuration, if that makes a difference, thanks, Igor -Original Message- From: Igor Ilyinsky Sent: Monday, March 01, 2004 2:09 PM To: CF-Talk Subject: Session Replication in CFMX 6.1 on JRun 4 Having trouble setting up the session replication in CFMX 6.1 on Jrun 4. I'm trying to test it out on 1 machine (for now). I have set up 2 server instances (say Server1 and Server2) and deployed CFMX on both. I configured both instances of CFMX to allow J2EE sessions. I clustered those 2 server instances in JRun I added each of the instances as a peer to the other, and pointed the web root to the same index.cfm file. The simple INDEX.CFM for testing is as follows: CFAPPLICATION name=testapp applicationtimeout=#createtimespan(0,0,5,0)# sessionmanagement=Yes sessiontimeout=#createtimespan(0,0,1,0)# CFIF IsDefined(Session.Host) CFOUTPUT#Session.Host#/CFOUTPUT CFELSE First time here. /CFIF BRBR CFSET Session.Host = CGI.HTTP_HOST CFDUMP var=#Session.Host# Now, when I test the two instances (say loclhost:8001 and localhost:8002) I never get confirmation that a session is coming form the other instance. The weird thing (or maybe not) is that the JSessionID, CFID and CFTOKEN are the same on both calls. Any input is appreciated. thanks in advance, Igor cccfug.org _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: ColdFusion Blog App from Macromedia DevNet Resource Kit V5
So, Heidi, I think you asked for feedback, but instead you got caught in a crossfire of insults between developers. None of which I am willing to bet has even used Blogman. I have used it and have some feedback... 1. There is no spot in the config.XML doc to specify a mail server, so it relies on the default (if there is one). I added an option to include one per blog. 2. Multiple people can contribute to the same blog, and they all have equal control. While I'm not sure that any two people will need to contribute to the same blog, if they did... there is no reason for them to be able to step on each others toes. Also, makes the multi-accounts feature useless. 3. There is no mention of securing your XML files. Some of which (config, users, emailsub, commentsub) if browsed to will reveal all user accounts and other sensitive info. 4. It is not immediately intuitive that you must create a category to begin blogging. I'm not sure that a category should be required, as most Blogs are general. 5. Without re-engineering it, It was difficult to set up blogs for multiple people without making duplicates of the entire app. A better architecture would be: -Blogman - App Files (CFCs) - Master Admin - Blogger Admin ? blogger_id = xxx - Blogs -Blog1 -Blog2 -Blog3 To give my opinion. I love the apps that come with DRK because they are current and relevant... And when some Senior Manager withno clue about technology says Hey, can you build me one of those blog applications I can say Sure without telling him what I really feel. They also provide me with a (usually) well architechted platform to build on top of... and are a great resource to beginner developers. Anyone threatened by MM creating software should re-think their career choice, because by putting out these applications they are both creating a market for us, and giving us the code to add to our entourage. -Igor -cccfug.org -Original Message- From: Heidi Voltmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 2:31 PM To: CF-Talk Subject: ColdFusion Blog App from Macromedia DevNet Resource Kit V5 The Macromedia DevNet Resource Kit team is looking for suggestions on how to improve or enhance the ColdFusion Blog App (a.k.a. Blogman) from DRK Volume 5. If you used the Blogman application (http://www.macromedia.com/software/drk/productinfo/product_overview/volume5/coldfusionmx.html#blog_man_application) and have feature requests, please respond to this post or feel free to send them directly to me. Thanks, Heidi Voltmer Macromedia _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: UPS XML Rates w/ DRK5 Socket Component
Let's try it this way... Has anyone implemented the UPS rates XML service with CFMX 6.1's underlying J2EE functionality (namely the java.net.Socket object)? -cccfug.org -Original Message- From: Igor Ilyinsky Sent: Tuesday, November 04, 2003 3:31 PM To: CF-Talk Subject: UPS XML Rates w/ DRK5 Socket Component Hi Yall, For a long time I've been looking for a good way to implement the usage of UPS's XML based rates service program to calculate shipping costs. In the past, there were so many ways to do this, but they were all too messy or tedious... i.e, not worth the simple functionality I required. There were the custom tags that my host wouldn't let me use, the XML hacks, or writing my own java method to do it. Everyone kept expecting that CFMX would provide a cure but it hasn't. The bottom line was that CF did not provide a developer with usage of a Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its headers. Well, now there is a component on the latest DRK that promises to allow the raw XML Socket via the underlying java.net.Socket object. It is called the socket component, and may just be the saving grace here. So has anyone used it to implement the UPS Rates Services API? I'd be curious to know if it works, the performance, and how it is implemented. I think if this really does work, it will provide any developer using CFMX 6.1 with a means to easily get real-time shipping rates with very little programming, and for Macromedia, I think this component alone will make buying DRK5 a great value. Furthermore, it promotes using the underlying J2EE functionality to empower your CF app... -Igor -cccfug.org _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: UPS XML Rates w/ DRK5 Socket Component
Wow, Erik, I was not aware of that. I assumed it was a limitation of CFHTTP, not a shortcoming. Also, I didn't find this in the technote until now: 38383 Added the ability to perform raw HTTP posts using the cfhttp tag. I'll have to try your method, Have you experienced any issues with this? I noticed you don't have a time-out. Do you have a back up just in case? Thanks -Igor -cccfug.org -Original Message- From: Erik Yowell [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:40 AM To: CF-Talk Subject: RE: UPS XML Rates w/ DRK5 Socket Component Socket communication is one way (ugly, but certainly works), but I believe a majority of the HTTP problems were fixed with 6.1, as we've implemented the UPS rate service and selection tool with CFHTTP with no problems. The following code works fine for us - !--- Build UPS XML Packet --- cfsavecontent variable=XMLPacketcfoutput ?xml version=1.0? AccessRequest AccessLicenseNumber#AccessLicenseNumber#/AccessLicenseNumber UserId#UserID#/UserId Password#Password#/Password /AccessRequest ?xml version=1.0? RatingServiceSelectionRequest xml:lang=en-US Request TransactionReference CustomerContextRating and Service/CustomerContext XpciVersion1.0001/XpciVersion /TransactionReference RequestActionRate/RequestAction RequestOptionshop/RequestOption /Request PickupType Code01/Code /PickupType Shipment Shipper Address PostalCode#attributes.originPostCode#/PostalCode CountryCodeUS/CountryCode /Address /Shipper ShipTo Address PostalCode#safePostalCode#/PostalCode City#cityName#/City cfif Len(Trim(stateProvince)) GT 0StateProvinceCode# stateProvince #/StateProvinceCode/cfif CountryCode#countryName#/CountryCode /Address /ShipTo Package PackagingType Code02/Code DescriptionPackage/Description /PackagingType DescriptionRate Shopping/Description PackageWeight Weight#weight#/Weight /PackageWeight /Package ShipmentServiceOptions/ /Shipment /RatingServiceSelectionRequest/cfoutput/cfsavecontent cfhttp url = ""> port = 443 method = POST throwonerror=yes cfhttpparam type=XML value=#XMLPacket# /cfhttp cfset XMLResponse = XmlParse(CFHTTP.FileContent) Erik Yowell [EMAIL PROTECTED] http://www.shortfusemedia.com -Original Message----- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:31 PM To: CF-Talk Subject: UPS XML Rates w/ DRK5 Socket Component Hi Yall, For a long time I've been looking for a good way to implement the usage of UPS's XML based rates service program to calculate shipping costs. In the past, there were so many ways to do this, but they were all too messy or tedious... i.e, not worth the simple functionality I required. There were the custom tags that my host wouldn't let me use, the XML hacks, or writing my own java method to do it. Everyone kept expecting that CFMX would provide a cure but it hasn't. The bottom line was that CF did not provide a developer with usage of a Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its headers. Well, now there is a component on the latest DRK that promises to allow the raw XML Socket via the underlying java.net.Socket object. It is called the socket component, and may just be the saving grace here. So has anyone used it to implement the UPS Rates Services API? I'd be curious to know if it works, the performance, and how it is implemented. I think if this really does work, it will provide any developer using CFMX 6.1 with a means to easily get real-time shipping rates with very little programming, and for Macromedia, I think this component alone will make buying DRK5 a great value. Furthermore, it promotes using the underlying J2EE functionality to empower your CF app... -Igor -cccfug.org _ _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
UPS XML Rates w/ DRK5 Socket Component
Hi Yall, For a long time I've been looking for a good way to implement the usage of UPS's XML based rates service program to calculate shipping costs. In the past, there were so many ways to do this, but they were all too messy or tedious... i.e, not worth the simple functionality I required. There were the custom tags that my host wouldn't let me use, the XML hacks, or writing my own java method to do it. Everyone kept expecting that CFMX would provide a cure but it hasn't. The bottom line was that CF did not provide a developer with usage of a Raw XML socket over HTTP as CFHTTP would f-up the buffer with all of its headers. Well, now there is a component on the latest DRK that promises to allow the raw XML Socket via the underlying java.net.Socket object. It is called the socket component, and may just be the saving grace here. So has anyone used it to implement the UPS Rates Services API? I'd be curious to know if it works, the performance, and how it is implemented. I think if this really does work, it will provide any developer using CFMX 6.1 with a means to easily get real-time shipping rates with very little programming, and for Macromedia, I think this component alone will make buying DRK5 a great value. Furthermore, it promotes using the underlying J2EE functionality to empower your CF app... -Igor -cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CALLER Scope in CFFUNCTION???
Is there a way to reference the local variables and arguments on a calling CFFunction? I have a CFC which contains a few Functions that call each other, and sometimes themselves. Can I access variables of the caller function in any way (other than passing them directly to the function). Sort of like this... CFFUNCTION NAME=Funk1 ... !--- I want to know the value of Arg1 from the caller here (below) --- /CFFUNCTION CFFUNCTION NAME=Funk2 CFARGUMET NAME=Arg1 CFSET VARVar1 = CFSET TEMP = Funk1() /CFFUNCTION TIA, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CALLER Scope in CFFUNCTION???
Is there a way to reference the local variables and arguments on a calling CFFunction? I have a CFC which contains a few Functions that call each other, and sometimes themselves. Can I access variables of the caller function in any way (other than passing them directly to the function). Sort of like this... CFFUNCTION NAME=Funk1 ... !--- I want to know the value of Arg1 from the caller here (below) --- /CFFUNCTION CFFUNCTION NAME=Funk2 CFARGUMET NAME=Arg1 CFSET VARVar1 = CFSET TEMP = Funk1() /CFFUNCTION TIA, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFC OOP - recursive error handling
Now that I have begun to delve deeper into CFC development, and the Object Oriented model, I have run into a speedbump. I have a cffunction that is recursive, and along the path of processing there are several errors checks that occur. Some minor, that continue processing, and some major that halt processing. Now, I need to find a smart way to handle these errors. Does anyone have an idea? A struct, array, string,db ??? How should the data set be structured??? I want to be able to return all non-critical errors to the user, and only abort if there is a critical error. Also, there's been much coverage on using VAR to keep the scope of a variable local to a CFFUNCTION instance, but how can I make sure that my variable spans the scope of the entire call (including recursions), without scoping any other calls? Should I use a Request scope, or is there something better? I fear using session scope as the user may have multiple requests to my CFC running concurrently. TIA, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
CFC OOP - recursive error handling
Now that I have begun to delve deeper into CFC development, and the Object Oriented model, I have run into a speedbump. I have a cffunction that is recursive, and along the path of processing there are several errors checks that occur. Some minor, that continue processing, and some major that halt processing. Now, I need to find a smart way to handle these errors. Does anyone have an idea? A struct, array, string,db ??? How should the data set be structured??? I want to be able to return all non-critical errors to the user, and only abort if there is a critical error. Also, there's been much coverage on using VAR to keep the scope of a variable local to a CFFUNCTION instance, but how can I make sure that my variable spans the scope of the entire call (including recursions), without scoping any other calls? Should I use a Request scope, or is there something better? I fear using session scope as the user may have multiple requests to my CFC running concurrently. TIA, Igor cccfug.org [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
OT: Chicago ColdFusion UserGroup
Sorry for the very short notice, but in case anyone lives in or near Chicago, there is a new CFUG. http://www.cccfug.org Tomorrow will be the first meeting, so it should be fun. You can RSVP at the site. I also wouldn't mind comments on the site. Please be brutally honest. Thanks, Igor ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm
NaN pain in my Nass
I should have found this during the beta for RedSky, but I didn't. It turns out that NaN is a reserved word of some sort, that really ruins my day. do this: CFSET word = Hello Dolly CFIF trim(word) EQ NaN /CFIF You will get an error: The value NaN cannot be converted to a number... however, if you change it to NAN, it works fine (case sensitive). Go figure! I use NaN to compare values returned from Flash, it works fine with the upper case, since CF's matching is case insensitive, but it took me forever to figure that one out (ok, 20 minutes, but it felt like forever). -Igor ~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Get the mailserver that powers this list at http://www.coolfusion.com
RE: Separating IIS from CF
Actually Tony, I believe there is a reason, and many, many, many large enterprises run their web application servers under this configuration. Granted, this is a very extreme measure of protection, and the process is not as simple as take CF off of your IIS box, and put it on a different one, but that of running ColdFusion in distributed mode, which is fairly well documented. The scenario is this: You have your CF running as an ISAPI or NSAPI plugin, on the same machine as your web server. You didn't realize that when you re-installed your web server after last weeks system crash, you had not patched one of the holes (say the .htr bug in IIS 4), or, better yet, say you have not closed off all ports besides 80 and 443. Now a hacker has discovered that your ip address is 111.111.11.11, and that he can access your files from some other port without them being processed (and thus protected) by CF. So he enters 111.111.11.11:/application.cfm into his TCP program, and lands upon all of the source code for your application, complete with database ip's and passwords. Ok, I agree that is far fetched, but it has happened, and is not outside of the scope of possibility. So how does running a distributed infrastructure help you? 1. There is a firewall between the external Web server (serving HTML Graphics) and the modified internal Application Server (also needs a web server) to protect your source code. 2. Your firewall is configured to only pass requests to the app server that come from the Web Server (no direct access from anywhere else). 3. Your users will never find the explicit ip address of you application server... the most they can get is the ip of your Load Balancer, or your external web server, Thus they can not find your Application server, and do malicious things to it. Now, I admit, I have not set this sort of infrastructure up since CF 4.5, so my memory may not be exact. But I believe that this is the basic principal behind running applications in distributed mode. -Igor -Original Message- From: Tony Weeg [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 2:23 PM To: CF-Talk Subject: RE: Separating IIS from CF we had a security audit one time tell us to take our webservers offline so that hackers couldn't see them. my point is... there is no clear reasoning as to why a security company would tell you to take your cf server and put that on a different machine than your iis machine...it just doesn't make sensenot in the least bit. how many developers/web shops on this list, have iis and cf on the same machine? I bet 100% of us. tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -Original Message- From: Venable, John [mailto:[EMAIL PROTECTED] Sent: Thursday, August 07, 2003 11:10 AM To: CF-Talk Subject: Separating IIS from CF We just had a security audit and one of the recommendations was to separate Cold Fusion and IIS onto two separate systems. I hadn't heard of doing this, and am really wary of doing this since we are using Commonspot and I have no idea what ramifications would result. Their reasoning for this was pretty vague, so can anyone give me reasons why we should and shouldn't do this? The motivation in this particular case being improved security. Thanks John --- John Venable Director of Web Architecture Epilepsy Foundation ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: approaching clients of (former) employer
While I agree that the below statement is fair, I must say that I see some loopholes which you may be able to enterprise on... In the US a verbal contract is supposedly as good as a written one. However, a contract is generally based on entities, and not individuals. Technically, if Company B wrote a check to Tengai, then they can not expect you Gyrus to accommodate their rules on client relationships and non-competition... especially if Gyrus did not sign anything saying he would not compete. Secondly, you are only bound by the agreements that you make. Saying I will work for you does not imply I will not take your clients... That is why there are non-competition clauses in all of our contracts. Such things need to be explicit. Lastly, just because Company A sold their list to Company B for XXX dollars (or pounds, whatever you brits are using these days), It does not mean that they did not give their list to you for free before that. Perhaps they sold Company B a dirty list? My suggestion it that you create a separate legal entity (perhaps Tingea), and have your self a ball... But that is just a NY'ers point of view -Igor -Original Message- From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 1:19 PM To: CF-Talk Subject: RE: approaching clients of (former) employer So first, standard disclaimer... IANAL so take this with one helluva grain of salt. Also, I can only speak of experience in the US, a society which is quite a bit more litigious than, um, everyone else. That said, what I have to say is probably not what you want to hear. The short of it is that, even though you never signed anything with Company A, you accepted their money. While this is not a true contract, it is very nearly one and could be argued in court that it provides for a contractual relationship. The real question, disregarding ethics, is what the terms of the contract were between Company A and Company B. Did they just buy the client list, all rights that Company A can infer about those clients, the entire company, etc.? I suspect the answer to this question would greatly impact your ability to legally contact these clients. Also, I'm assuming that you did work for some of the same clients under Company B as under Company A. If so, than the almost-a-contract stuff applies here as well. But maybe only to those clients that you worked for while under Company B. Also, while Company B might have legal ground to keep you from calling the clients, there's nothing that would stop the clients from calling you. Especially since your contract doesn't include a non-compete along those lines. Of course, all of the above ignores the question of ethics. Unfortunately, while the notion of making sure the clients know all of the facts before being pushed towards ASP is a noble one, it is also none of your concern as, technically, they were never *YOUR* clients. Even if you worked directly with them, you did so under the auspices of Companies A B. Anyway, I hope my rambling is of some help. I hope it all works out for you. -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: [EMAIL PROTECTED] WWW: http://www.evoch.com/ -Original Message- From: Gyrus [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 1:43 PM To: CF-Talk Subject: OT: approaching clients of (former) employer Hi, Just wondered if any of the people here a bit wiser to the ways of the industry and legal matters could give us their opinion on a slightly sticky situation that's cropped up for us. We'd really appreciate any advice. I'll say upfront that we're UK-based, so I'm not sure if any legal issues are UK-specific. The short version of the long story is that myself and a friend, who offer our freelance web services under the name Tengai, used to do a lot of work as sub-contractors for (let's say) Company A. The work (all based on ColdFusion) was all done without any written contracts, and all seemed well until (don't sneer!) they went belly up owing us money. Their client list was bought by (let's say) Company B. We vaguely considered leaping in and trying to poach the clients in the transfer, but accepted that despite there being no written contracts, it was unethical, and played the game. We met with Company B, they seemed a bit more organised than Company A, and said that while their own in-house stuff was all based on ASP and MS technologies, they'd probably continue the relationship with us as sub-contractors to do the CF work. We did a few little jobs through them in the first months, but near the beginning of this year everything went quiet. As far as we were aware, the clients were just backing away from the hiked-up prices that Company B were putting through to them. So recently, with times being tough, we've come back round to idea of approaching these clients directly. We've not had any work from Company B for nearly 6
RE: Firefly Remoting from CFMX
I do that already, but that does not answer how I get it to FireFly. I think I'll have to dig deeper into the API. thanks -Igor -Original Message- From: Suyer, Ed [PRD Non-JJ] [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:20 PM To: CF-Talk Subject: RE: Firefly Remoting from CFMX Sometimes I pass the gateway address via the html object tag i.e. OBJECT ... PARAM NAME=movie VALUE=foo.swf PARAM NAME=loop VALUE=false PARAM NAME=quality VALUE=high PARAM name=FlashVars value=param_gateway_url=http://localhost/flashservices/gateway; EMBED .../EMBED /OBJECT You will then have a string variable in flash param_gateway_url which contains http://localhost/flashservices/gateway; HTH ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Firefly Remoting from CFMX
Dave, aside for the fact that this approach is overkill, and has no worth in a real world scenario, it does not apply to Firefly. Thanks for the suggestion though, Igor -Original Message- From: Dave Carabetta [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 5:56 PM To: CF-Talk Subject: Re: Firefly Remoting from CFMX Has anyone been messing with the FireFly Shiznit? Does anyone know of a good resource to ask questions about this stuff? I am trying to find out if there is a way I can programmatically (dynamically) assign the gateway URL, so that I can run my swf from any machine. Up until now, the only place I know of that I can assign this, is in that silly little Component Parameters Panel I have not worked with FireFly, but the Macromedia TechSales blog posted this article on dynamic flash remoting gateways recently: http://www.markme.com/techsales/archives/002528.cfm Regards, Dave. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFMX Form Submission Hacking.
Does anyone have a quick snippet of code that does a regex match against the referrer to check if a form was submitted from an internal page (with attention to ports if possible). Too lazy to write it myself, so hoping someone does this to prevent hacking of form submissions. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Firefly Remoting from CFMX
I received a few respones from various places, here are the 2 most viable options (below). Let me know if either works well for you. -Igor ___ From Mark Altenberg: There is sparse Firefly API documentation here: http://www.macromedia.com/software/dataconnection/resources/api_documentation/ If you check: Firefly Components Plugins Remoting FxRecordSetConnectorClass Methods you will encounter a method called setSourceUrl, and I believe that will accomplish your ends. ___ From Cory Hanson: We were able to bypass the Component Parameters Panel by modifying the FxRecordSetConnector component. Within the component, search for the following: con.setSourceUrl( this.sourceUrl ); We then replaced it with something like the following: con.setSourceUrl( _root.sourceGatewayUrl ); Then we passed this variable (sourceGatewayUrl) into the movie from coldfusion (or whatever way you want). This may not be the best way, but we preferred to have the component look for the gateway in another location. There were some weird problems with setting the other parameters in that Component Parameters Panel... Once you get your SERVICE and METHOD set (with GATEWAY blank), don't click back in the GATEWAY field! Clicking in the GATEWAY for anything will wipe out your SERVICE and your METHOD. :-) -Original Message- From: Brad Howerter [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:11 PM To: CF-Talk Subject: Firefly Remoting from CFMX Igor, my coworkers are trying to do the same thing. If we discover a way to do it, we'll post here. If you beat us to it, please let us know. -- Brad ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Form Submission Hacking.
I realize this... It will not completely prevent hacking... but I would like to make sure that if a person is on my form page, they are not able to save the page, edit some of the hidden form variables, and then submit the page to my server. I am aware that the referrer can be simulated, but that is a deeper degree of the issue I am trying to solve. -Igor -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:41 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Does anyone have a quick snippet of code that does a regex match against the referrer to check if a form was submitted from an internal page (with attention to ports if possible). Too lazy to write it myself, so hoping someone does this to prevent hacking of form submissions. That wouldn't prevent hacking of form submissions, as the referer is provided by the browser, not the server. Also, I'm not sure what you mean by attention to ports. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Form Submission Hacking.
I'm not sure how that would work Mike... If I set the session variable, and the user comes back (within the session timeout timeframe) wouldn't the session variable persist? It's not like the session is tied to the page itself. -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:51 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Why not just set some kind of variable on the form page itself, such as session.isOnMyServer and then on the processing page, check for the existence of that variable... Would that not work for you? Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:40 PM Subject: RE: CFMX Form Submission Hacking. I realize this... It will not completely prevent hacking... but I would like to make sure that if a person is on my form page, they are not able to save the page, edit some of the hidden form variables, and then submit the page to my server. I am aware that the referrer can be simulated, but that is a deeper degree of the issue I am trying to solve. -Igor -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:41 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Does anyone have a quick snippet of code that does a regex match against the referrer to check if a form was submitted from an internal page (with attention to ports if possible). Too lazy to write it myself, so hoping someone does this to prevent hacking of form submissions. That wouldn't prevent hacking of form submissions, as the referer is provided by the browser, not the server. Also, I'm not sure what you mean by attention to ports. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Form Submission Hacking.
Still not sure how what you're saying works. Let me give you a scenario. User clicks checkout on the e-commerce app. from his shopping cart. -- request gets sent to form page; session.notahacker = 1 -- The page comes up with a request for his CC info in a form. The same form has a hidden field with the total purchase amount ($35) User Clicks Save, to save the html page to his desktop. User Edits the HTML page to change the amount from $35 to $3 User Opens the page in a browser from his local machine. User clicks submit from this page to my web server -- request gets sent to submit page; session.notahacker is still 1 -- What was solved? -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:38 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Form Page - set the session variable equal to 1 Processing Page - check to see if the session variable equals 1, and if so, process the form.. THEN set the session variable to 0 and carry on. That should work for you. Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:24 PM Subject: RE: CFMX Form Submission Hacking. I'm not sure how that would work Mike... If I set the session variable, and the user comes back (within the session timeout timeframe) wouldn't the session variable persist? It's not like the session is tied to the page itself. -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:51 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Why not just set some kind of variable on the form page itself, such as session.isOnMyServer and then on the processing page, check for the existence of that variable... Would that not work for you? Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:40 PM Subject: RE: CFMX Form Submission Hacking. I realize this... It will not completely prevent hacking... but I would like to make sure that if a person is on my form page, they are not able to save the page, edit some of the hidden form variables, and then submit the page to my server. I am aware that the referrer can be simulated, but that is a deeper degree of the issue I am trying to solve. -Igor -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:41 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Does anyone have a quick snippet of code that does a regex match against the referrer to check if a form was submitted from an internal page (with attention to ports if possible). Too lazy to write it myself, so hoping someone does this to prevent hacking of form submissions. That wouldn't prevent hacking of form submissions, as the referer is provided by the browser, not the server. Also, I'm not sure what you mean by attention to ports. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Form Submission Hacking.
Actually Matt, that is not a solution for this application in particular. If it were simple, where prices never changed, and other variables were constants, then that would be a good solution. Also, if there were not such an intensive overhead for re-calculating everything unnecessarily. The loophole in your suggestion is that the user is not getting an absolutely accurate cost for the items they are purchasing if a change of price occurs during their transaction. In effect, they could enter their CC info for an item that was $33 when they clicked it, but is now $35 after your admin realized the demand went up. In some ways I'm sure this is neither ethical or legal. A true solution would be to create an intermediate table that would save the purchase information between the time they agreed to buy, and the time the purchase went through. I have opted to circumvent unnecessary processing by passing these elements through form fields, which improve my application design and performance. My only issue is making sure that the submission in authentic, which is not that hard to do, only I was hoping that someone here was clever enough to have done it before me. Apparently not, Igor -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:06 PM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. You're right. That will not protect you, but the problem isn't Michael's suggestion; its your application design. Hidden form vars are just flat out a terrible place to put sensitive info; a gilded invitation that says 'steal from me' on it. Don't rely on form vars to transport any sort of sensitive info. In fact try not to rely on them for anything (That way when you have to use one you *know* you had to do it that way). Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:47 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Still not sure how what you're saying works. Let me give you a scenario. User clicks checkout on the e-commerce app. from his shopping cart. -- request gets sent to form page; session.notahacker = 1 -- The page comes up with a request for his CC info in a form. The same form has a hidden field with the total purchase amount ($35) User Clicks Save, to save the html page to his desktop. User Edits the HTML page to change the amount from $35 to $3 User Opens the page in a browser from his local machine. User clicks submit from this page to my web server -- request gets sent to submit page; session.notahacker is still 1 -- What was solved? -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:38 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Form Page - set the session variable equal to 1 Processing Page - check to see if the session variable equals 1, and if so, process the form.. THEN set the session variable to 0 and carry on. That should work for you. Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:24 PM Subject: RE: CFMX Form Submission Hacking. I'm not sure how that would work Mike... If I set the session variable, and the user comes back (within the session timeout timeframe) wouldn't the session variable persist? It's not like the session is tied to the page itself. -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:51 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Why not just set some kind of variable on the form page itself, such as session.isOnMyServer and then on the processing page, check for the existence of that variable... Would that not work for you? Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:40 PM Subject: RE: CFMX Form Submission Hacking. I realize this... It will not completely prevent hacking... but I would like to make sure that if a person is on my form page, they are not able to save the page, edit some of the hidden form variables, and then submit the page to my server. I am aware that the referrer can be simulated, but that is a deeper degree of the issue I am trying to solve. -Igor -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:41 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Does anyone have a quick snippet of code that does a regex match against the referrer to check if a form was submitted from an internal page (with attention to ports if possible). Too lazy to write it myself, so hoping someone does
RE: CFMX Form Submission Hacking.
I don't use the session scope because it is a clustered application. I don't like overloading the client scope with unnecessary information either. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:47 PM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. I have opted to circumvent unnecessary processing by passing these elements through form fields, which improve my application design and performance. My only issue is making sure that the submission in authentic, which is not that hard to do, only I was hoping that someone here was clever enough to have done it before me. Why not stick the prices in the Session scope, then, if you simply don't want them to change during their transaction? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFMX Form Submission Hacking.
It's secure enough to the point where only somebody who can rewrite the raw HTTP header to look like the one on my servers, is able to get a hack through. This is hard enough to do, and enough of a rare case, that if they did that, I'm sure the admins would eventually (if not immediately) notice the discrepancy (as it is calculated on the admin side), and void the transaction. I'm trying to avoid this happening on a large scale. -Igor -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:52 PM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. I do what another poster mentioned: I pass nothing but the session ID and recalculate the cart based on the info in the db. I'm of course unfamiliar with the specifics of your app, but the only thing I think has been done before with regard to passing prices via form vars is hack them. From an earlier post it sounds like you're reconciled to this info being only minimally secure, at best. I'm afraid thats about all you can expect with this approach. I'd still say there's *got* to be a better way to do this. --- Matt Robertson, [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com --- -- Original Message -- From: Igor Ilyinsky [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Mon, 23 Jun 2003 14:30:12 -0500 Actually Matt, that is not a solution for this application in particular. If it were simple, where prices never changed, and other variables were constants, then that would be a good solution. Also, if there were not such an intensive overhead for re-calculating everything unnecessarily. The loophole in your suggestion is that the user is not getting an absolutely accurate cost for the items they are purchasing if a change of price occurs during their transaction. In effect, they could enter their CC info for an item that was $33 when they clicked it, but is now $35 after your admin realized the demand went up. In some ways I'm sure this is neither ethical or legal. A true solution would be to create an intermediate table that would save the purchase information between the time they agreed to buy, and the time the purchase went through. I have opted to circumvent unnecessary processing by passing these elements through form fields, which improve my application design and performance. My only issue is making sure that the submission in authentic, which is not that hard to do, only I was hoping that someone here was clever enough to have done it before me. Apparently not, Igor -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:06 PM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. You're right. That will not protect you, but the problem isn't Michael's suggestion; its your application design. Hidden form vars are just flat out a terrible place to put sensitive info; a gilded invitation that says 'steal from me' on it. Don't rely on form vars to transport any sort of sensitive info. In fact try not to rely on them for anything (That way when you have to use one you *know* you had to do it that way). Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:47 AM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. Still not sure how what you're saying works. Let me give you a scenario. User clicks checkout on the e-commerce app. from his shopping cart. -- request gets sent to form page; session.notahacker = 1 -- The page comes up with a request for his CC info in a form. The same form has a hidden field with the total purchase amount ($35) User Clicks Save, to save the html page to his desktop. User Edits the HTML page to change the amount from $35 to $3 User Opens the page in a browser from his local machine. User clicks submit from this page to my web server -- request gets sent to submit page; session.notahacker is still 1 -- What was solved? -Igor -Original Message- From: Michael T. Tangorre [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:38 PM To: CF-Talk Subject: Re: CFMX Form Submission Hacking. Form Page - set the session variable equal to 1 Processing Page - check to see if the session variable equals 1, and if so, process the form.. THEN set the session variable to 0 and carry on. That should work for you. Mike - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Monday, June 23, 2003 2:24 PM Subject: RE: CFMX Form Submission Hacking. I'm not sure how that would work Mike... If I set the session variable, and the user comes back (within the session timeout
RE: CFMX Form Submission Hacking.
perhaps you are right Dave. And Matt. I'm going to run over to the Is Flash really that good thread to tell them that using flash solves this issue. -Igor -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 3:31 PM To: CF-Talk Subject: RE: CFMX Form Submission Hacking. It's secure enough to the point where only somebody who can rewrite the raw HTTP header to look like the one on my servers, is able to get a hack through. This is hard enough to do, and enough of a rare case, that if they did that, I'm sure the admins would eventually (if not immediately) notice the discrepancy (as it is calculated on the admin side), and void the transaction. I'm trying to avoid this happening on a large scale. I think you're overestimating the difficulty of rewriting HTTP headers. I think you're also underestimating the population of computer criminals. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Is Flash really THAT good?
Actually, Seth has a very valid point (perhaps more so than he realizes). While it is natural for us, as faithful pupils of Macromedia technologies, to promote and defend the product lines, it is important to keep an open mind about technology in general. The article that was acknowledged was not an open view. In fact, I have numerous other articles just like it from 1995, saying things like The internet is a fad, and will not fade and it will never replace the way we do business. Well, guess what? It has... and as far as I can see... so will flash. I say this not from brainwashing, but from experience. I have recently been able to create an application that I never could come close to developing well in DHTML because of its real-time nature. The only other option I had was to build it in C++ or VB, and have every user download it. Flash facilitates many things, and merging conventional desktop apps with web apps is one of them. Try building a Napster in DHTML... How about MS Excel or Access? Not gonna happen. But in Flash it becomes quite easy. Flash is not mainly about allowing you to do things you could not do before... but about allowing you to do them faster and easier. Truthfully, most of what you see in Flash apps you could build in a Java Applet. But that is extremely difficult for a web developer to do. That is why Flash is REALLY THAT GOOD. Again, I do not defend flash because I was convinced about its future potential... but because of the Money it generates for me today. -Igor Quick Example: I buy the DCK (FireFly - Flash Connection kit w/ Remoting) for ($300) I run through Ben Forta's New article showing how to build a employee admin system. (2 hours) http://www.macromedia.com/devnet/mx/coldfusion/articles/data_conn.html I use the same exact components to build a user administration module for my client. (20 minutes) They love it... I Charge them $300 for the module, and continue to build more such apps.- In under 3 hours, and only 1 client, I just broke even on the DCK... Imagine how little time, and how much I can charge to get the rest of the Admin Application complete... All with the same code. -Original Message- From: Jon Block [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:26 AM To: CF-Talk Subject: RE: Is Flash really THAT good? Seth, What is interesting is that even though this article is 4 years old, all of his points are still valid. Sure Flash has new features but his points are in regards to how Flash is used, not what it's features are. -Jon -Original Message- From: Turetsky, Seth [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:51 AM To: CF-Talk Subject: RE: Is Flash really THAT good? Originally Published: September 1, 1999 Last Updated: April 26, 2000 Today: June 20, 2003 - a lot(stress that) has been added to flash since then -Original Message- From: Jon Block [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 9:34 AM To: CF-Talk Subject: Is Flash really THAT good? This is a bit off topic but I wanted to ask this question specifically to this audience. There seems to be a sence that Flash is this awesome platform for rich internet applications that thats where everything is going. All you hear about is how fast it is, how good looking it is, and so on. Maybe I'm the only one but Flash drives me crazy. Even though it has database connectivity, I still see it as a frustrating way to create needless animations. Maybe I'm wrong. I admit I have only got into Flash a little bit but every time I do, I end up asking myself why I am wasting my time with this tool. As application developers, do you take Flash seriously? Do you think it does or will ever make since to use it for your full blown applications? I just read over the message thread at: http://www.dack.com/web/flash_evil.html and I found it very interesting and I sort of agree with the author. He's also got an interesting usability test posted at: http://www.dack.com/web/flashVhtml/ I'm interested as to what you guys think. Thanks, Jon ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Is Flash really THAT good?
Mike, I've been trying to figure out how to do that... can you send me the snippet of code :) I can't believe this debate is still going on. Sounds to me like those opposed of Flash, are scared shitless of the development interface (as I was 2 years ago mind you.) and what you don't know or fear you often dislike or discredit. It would be a great thing for those people if Flash were to die, because that is just one less technology they have to learn, or worse yet, play catch-up on... Just as it would be great for JSP developers everywhere if ColdFusion did not compile to Java Byte Code... because now WE ARE ALL LETHAL JAVA DEVELOPERS!!! -Igor -Original Message- From: Mike Chambers [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:33 PM To: CF-Talk Subject: Re: Is Flash really THAT good? I just want to make sure that everyone understands: You can have blue links in Flash. mike chambers [EMAIL PROTECTED] - Original Message - From: Matthew Small [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, June 20, 2003 3:32 PM Subject: RE: Is Flash really THAT good? Just jumping in here... It sure would be a dull world if nothing evolved. If that were true, we would not have nice cars (they would all be horseless carriages) and houses would be caves. We use new things because the technology becomes available. Some uses are good, some are bad. There are plenty of bad sites written in HTML, so should we not use HTML? Nope, the answer is to intelligently design our web sites. The fact is, RIA is going to become the norm within ten years because it will make the user experience easier, more aesthetically pleasing, and more functional with fewer client errors on the server end. Sure, blue links are standard, but people like flash. (no pun intended) Matthew Small IT Director Showstopper American Dance Championships [EMAIL PROTECTED] 843-357-1847 -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 3:27 PM To: CF-Talk Subject: RE: Is Flash really THAT good? Yeah I definitely agree with everything you are saying. Well... mostly. I'm just saying that traditional navigation schemes transcend the media. Just because it's done in flash doesn't mean you can't have blue underline links. Everything can be implemented identically in one or the other. But as far a blue links go (or any long standing tradition), just because it's been this way in the past, doesn't mean we should keep doing it into the future. Using established proven methodologies for navigation yes, I think coloring and underlining menu object is just aesthetic at this point. I agree it may well have been true 3 years ago, but now users expect visually pleasing sites and applications. (Look at OSX and WinXP) Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Lofback, Chris [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:56 PM To: CF-Talk Subject: RE: Is Flash really THAT good? Blue, underlined text is hardly navigation. That's just a common identifier for a link, which in HTML is an action, not necessarily navigation. A link can do a number of things like execute a javascript function or dhtml. Google, since you mention how standard it is, does not use this for it's core navigation. Web, Images, Groups, Directory, and News (The four categories of google) are represented with blue text in a box. If selected the box is blue, if not it's gray. This is hardly a standard, but none the less is effective because users are familiar with tabular menus. CF_UsabilitySoapBox Well, this is quibbling over minor differences and word definitions. And I know I'm blowing against the wind here, but the simple fact is that users know what to do with blue, underlined text and HTML buttons. Why deviate from something that users know? It only makes it harder for them and increases the likelihood that they won't use your site--unless they have no place else to go. Here is the key phrase in your post: effective because users are familiar That is the heart of the matter. Every site, whether flash or html, navigate completely different. This is pretty much true and it's a negative, not a positive. On the web, different != good usability. All of those sites with different/unique navigation are harder to use than standard blue underlines and HTML widgets because users have to figure them out--and they HATE that. Even if you think, what's the big deal, it only takes a few minutes? They HATE to be forced to learn something new when all they want to do is...whatever...anything but be forced by some web site to endure their different navigation. Look at Yahoo, eBay, Amazon and Google. I'd guess they are among the most heavily used sites and they rely on standard light/white
Firefly Remoting from CFMX
Has anyone been messing with the FireFly Shiznit? Does anyone know of a good resource to ask questions about this stuff? I am trying to find out if there is a way I can programmatically (dynamically) assign the gateway URL, so that I can run my swf from any machine. Up until now, the only place I know of that I can assign this, is in that silly little Component Parameters Panel TIA, Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
WOW!!! Ok, I guess in the future it would make sense to read the release notes a few times over: To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive All I had to do was open C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\gateway-webapp.war531023565\WEB-INF\web.xml in notepad, change DISABLE_CFWS_ADAPTERS to false, and cycle the server... And it WORKS!!! I'm not sure if I made a permanant change, as this resides in a temp directory, but I'm sure Mike's solution is a permanat one. I didn't try Corfield's solution, becasuse I don't know which file to edit. There are like a gazillion WEB-INF/web.xml files on my machine. I guess it would help to know which file to look for, as we are most familiar with the one under the web root. Thanks Mike and Sean for all your insights. For next version... can you guys push for maybe having the Gateway allow this for a select list of domains to minimize the risk Or for now, is there any way to move the gateway to a discreet location so that a hack is not as easy as http://www.mydomain.com/flashservices/gateway/ Thanks Again... Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:18 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Sean...please see below: Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:48 PM Subject: Re: Flash Remoting Issues with CFMX On Wednesday, Jun 18, 2003, at 12:48 US/Pacific, Igor Ilyinsky wrote: The issue is clearly one of U3. That is the only change I made this morning, and now the thing Don't work! Yup, Updater 3 disables the web service proxy feature in Flash Remoting by default since it can be used for a DoS attack. Unfortunately, this is one of those issues that only someone who has this working with U3 can help with, or (as that scenario may not actually exist) someone from Macromedia with an in depth knowledge of the FlashRemoting servlet. I have it working so I can explain how to re-enable it. But it is a security hazard so beware: A standalone SWF can connect to ACME's Flash Remoting gateway and used it to repeatedly call Web Services either elsewhere (out on the internet or within ACME's network). If you re-enable the web service proxy you should ensure that port 80 traffic outbound from your application server is firewall-restricted and that any internal web services accessible from your app server are secured (e.g., via username/password). Note: restricting port 80 outbound traffic implies that your web server and your app server must be separate (since a web server must be able to send outbound port 80 traffic!). In WEB-INF/web.xml, look for the Flash gateway servlet definition and modify it as shown: OK..there are 2 WEB_INF directories...one in CFusionMX\runtime\ and the other off CFusionMX\wwwrootso which one are you talking about? BTW I've tried the fix posted on MM in both places with no joy..but what you have below seems different servlet id=macromedia_servlet_11 servlet-nameFlashGateway/servlet-name display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description servlet-classcoldfusion.bootstrap.BootstrapServlet/servlet-class add these lines following: init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuetrue/param-value descriptionWhen set to true, this setting disables the ColdFusion Web Services Adapters in the gateway./description /init-param *** end of added lines above init-param id=InitParam_103401311064890 param-nameservlet.class/param-name param-valueflashgateway.controller.GatewayServlet/param-value /init-param Add the init-param .. /init-param piece - not the lines with on them! Restart CFMX and the web services gateway should now work. If you find it still isn't working, check to see if there's a flashgateway deployment left in the SERVER-INF directory - if there is, stop CFMX, remove the flashgateway deployment files completely from SERVER-INF and start CFMX back up. Can you list these flashgateway deployment files or tell us how to identify them? Thanks man ;-) HTH, Sean A Corfield -- http://www.corfield.org
RE: Flash Remoting Issues with CFMX
Did you try Mike's solution. It worked for me. You must be like Justin timberlake singing where is the love? -Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 9:55 AM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Still no love here.I'm waiting for Sean to tell me more about those flashgateway deployment files what are they called or how can they be identified??? Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 7:07 AM Subject: RE: Flash Remoting Issues with CFMX WOW!!! Ok, I guess in the future it would make sense to read the release notes a few times over: To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive All I had to do was open C:\CFusionMX\runtime\servers\default\SERVER-INF\temp\gateway-webapp.war53102 3565\WEB-INF\web.xml in notepad, change DISABLE_CFWS_ADAPTERS to false, and cycle the server... And it WORKS!!! I'm not sure if I made a permanant change, as this resides in a temp directory, but I'm sure Mike's solution is a permanat one. I didn't try Corfield's solution, becasuse I don't know which file to edit. There are like a gazillion WEB-INF/web.xml files on my machine. I guess it would help to know which file to look for, as we are most familiar with the one under the web root. Thanks Mike and Sean for all your insights. For next version... can you guys push for maybe having the Gateway allow this for a select list of domains to minimize the risk Or for now, is there any way to move the gateway to a discreet location so that a hack is not as easy as http://www.mydomain.com/flashservices/gateway/ Thanks Again... Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:18 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Sean...please see below: Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:48 PM Subject: Re: Flash Remoting Issues with CFMX On Wednesday, Jun 18, 2003, at 12:48 US/Pacific, Igor Ilyinsky wrote: The issue is clearly one of U3. That is the only change I made this morning, and now the thing Don't work! Yup, Updater 3 disables the web service proxy feature in Flash Remoting by default since it can be used for a DoS attack. Unfortunately, this is one of those issues that only someone who has this working with U3 can help with, or (as that scenario may not actually exist) someone from Macromedia with an in depth knowledge of the FlashRemoting servlet. I have it working so I can explain how to re-enable it. But it is a security hazard so beware: A standalone SWF can connect to ACME's Flash Remoting gateway and used it to repeatedly call Web Services either elsewhere (out on the internet or within ACME's network). If you re-enable the web service proxy you should ensure that port 80 traffic outbound from your application server is firewall-restricted and that any internal web services accessible from your app server are secured (e.g., via username/password). Note: restricting port 80 outbound traffic implies that your web server and your app server must be separate (since a web server must be able to send outbound port 80 traffic!). In WEB-INF/web.xml, look for the Flash gateway servlet definition and modify it as shown: OK..there are 2 WEB_INF directories...one in CFusionMX\runtime\ and the other off CFusionMX\wwwrootso which one are you talking about? BTW I've tried the fix posted on MM in both places with no joy..but what you have below seems different servlet id=macromedia_servlet_11 servlet-nameFlashGateway/servlet-name display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description servlet
RE: Flash Remoting Issues with CFMX
Well, worst case scenario... You COULD as Sean pointed out, use another gateway for this access... so use the one that works... Shit.. you can even use mine... it's all in the good name of CFUG! See how things work out? Sing it with me now... Tell me you love me, why did you leave me, all alone... Damn this XM stuff to hell. pulling hair out Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 11:47 AM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Thanks SeanI've tried both files and toasting the temp directorystill no luck...oh well...this is a low priority for me right now...so I'll leave our poor CFUGs Daily Forta tips disabled for now :-( Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:55 AM Subject: Re: Flash Remoting Issues with CFMX Interesting... that is indeed what the release notes suggest but I've needed to touch the flash gateway ear file... In fact, I don't even have that file! I have: ./servers/cfmx/cfusion/WEB-INF/cfusion/lib/flashgateway.jar (yes, this is CFMX for J2EE) The SERVER-INF stuff I was referring to was SERVER-INF/temp/ which can be completely removed before restarting the server. The WEB-INF/web.xml I was suggesting changing was this one: ./server/cfmx/cfusion/WEB-INF/web.xml (replace cfmx/cfusion/ with default for the standalone version I guess) However, if Mike's solution has you up and running, go with it. On Wednesday, Jun 18, 2003, at 23:40 US/Pacific, Mike Chambers wrote: Here is how I got it working: -go to: C:\CFusionMX\runtime\servers\default unzip flashgateway.ear (you might need to rename it to .zip) this will unzip a file called gateway-webapp.war unzip this. This will create a WEB-INF directory. Go into that directory and edit the web.xml file. Look for: init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuetrue/param-value descriptionWhen set to true, this setting disables the ColdFusion WebServices Adapters in the gateway./description /init-param and set the param-value to false. re-zip everything and rename it to the orginal file names. Restart the server. Here is some simple test code I put together to call Ben Forta's tip of the day web service from Flash via Flash Remoting: - #include netservices.as var result = new Object(); result.onResult = function(data) { trace(onResult); for(var x in data) { trace(x + : + data[x]); } } result.onStatus = function(info) { trace(Error : + info.description); } var wsdl = http://www.forta.com/cf/tips/syndicate.cfc?wsdl;; var server = NetServices.createGatewayConnection(http://127.0.0.1:8500/ flashservices/gat eway/); var service = server.getService(wsdl, result); service.get(new Date()); //service.browse(0); -- - I tested a couple of other Flash apps that call web services via Flash Remoting and they all work. hope that helps... mike chambers [EMAIL PROTECTED] - Original Message - From: Bryan Stevenson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 12:17 AM Subject: Re: Flash Remoting Issues with CFMX Hey Sean...please see below: Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Sean A Corfield [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 8:48 PM Subject: Re: Flash Remoting Issues with CFMX On Wednesday, Jun 18, 2003, at 12:48 US/Pacific, Igor Ilyinsky wrote: The issue is clearly one of U3. That is the only change I made this morning, and now the thing Don't work! Yup, Updater 3 disables the web service proxy feature in Flash Remoting by default since it can be used for a DoS attack. Unfortunately, this is one of those issues that only someone who has this working with U3 can help with, or (as that scenario may not actually exist) someone from Macromedia with an in depth knowledge of the FlashRemoting servlet. I have
Flash Remoting Issues with CFMX
Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes that I am overlooking? Any suggestions? I was going to try consuming my CFC as a web service through the Flash remoting proxy, but I'm not sure what that should indicate to me. Any insights? Or a different list that may be able to help. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Online bidding
Chad, could you elaborate a bit on that? -Original Message- From: Chad [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:51 AM To: CF-Talk Subject: Online bidding I am creating a website that will include an online bidding application. Bidding will only last for one minute and will take simultaneous bids very rapidly. Does anyone have any good information about online bidding applications or have knowledge of developing this type of application? ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
WSDL based web services (babelfish for example). Does anyone have this babelfish example working; or could you check: http://www.macromedia.com/support/flash/flashremoting/consuming_ws_using_cfmx/ It should only take a second, and does not require any code changes. just copy the index.cfm and babelfish.swf to a web folder, and browse to the index.cfm from a browser. Let me know what version of CFMX you have (meaning, what updaters, or version #) thanks -Igor -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:30 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Do the remotes services you are trying to use have Flash Remoting? Or are the traditional XML based web services? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:01 AM To: CF-Talk Subject: Flash Remoting Issues with CFMX Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes that I am overlooking? Any suggestions? I was going to try consuming my CFC as a web service through the Flash remoting proxy, but I'm not sure what that should indicate to me. Any insights? Or a different list that may be able to help. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
Yes, I am, it just took me 2 days to figure out that there could be an issue there. WHERE WERE YOU 2 DAYS AGO MIKE Thanks for the info. I'll check it out! -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:27 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Are you running updater 3 on the cfserver? I believe they switched that off for this update... So you will need to edit one of the XML configuration files for CF and switch it back on... Cant remember which one, but I assume the U3 release notes will have this documented HTH Mikey -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 16:01 To: CF-Talk Subject: Flash Remoting Issues with CFMX Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes that I am overlooking? Any suggestions? I was going to try consuming my CFC as a web service through the Flash remoting proxy, but I'm not sure what that should indicate to me. Any insights? Or a different list that may be able to help. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
Thanks Collin, I don't have a 'DISABLE_CFWS_ADAPTERS' boolean in web.xml. All I have is this servlet servlet-nameFlashGateway/servlet-name servlet-classflashgateway.controller.GatewayServlet/servlet-class display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description /servlet servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping -Original Message- From: Collin Tobin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:32 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX /WEB-INF/web.xml In the FlashGateway servlet section, change DISABLE_CFWS_ADAPTERS boolen value to false. Restart. Collin Tobin CFMX QA Engineer Macromedia® What the web can be.(tm) Announcing Macromedia DevNet Subscriptions Maximize your power with our new premium software subscription for Macromedia developers Find out more: http://www.macromedia.com/go/devnetsubs/ -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Are you running updater 3 on the cfserver? I believe they switched that off for this update... So you will need to edit one of the XML configuration files for CF and switch it back on... Cant remember which one, but I assume the U3 release notes will have this documented HTH Mikey -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 16:01 To: CF-Talk Subject: Flash Remoting Issues with CFMX Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes that I am overlooking? Any suggestions? I was going to try consuming my CFC as a web service through the Flash remoting proxy, but I'm not sure what that should indicate to me. Any insights? Or a different list that may be able to help. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
Bryan, I don't think U3 kills remoting completely... Just the feature that lets you consume a web service using the Gateway as a proxy. -Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:37 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Same heredon't have that setting but U3 is installed I also installed U3 on another server and it DID NOT kill remotingso I'm not sure that's the issue?? colour me confused by remoting again ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:25 AM Subject: RE: Flash Remoting Issues with CFMX Thanks Collin, I don't have a 'DISABLE_CFWS_ADAPTERS' boolean in web.xml. All I have is this servlet servlet-nameFlashGateway/servlet-name servlet-classflashgateway.controller.GatewayServlet/servlet-class display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description /servlet servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping -Original Message- From: Collin Tobin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:32 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX /WEB-INF/web.xml In the FlashGateway servlet section, change DISABLE_CFWS_ADAPTERS boolen value to false. Restart. Collin Tobin CFMX QA Engineer Macromedia® What the web can be.(tm) Announcing Macromedia DevNet Subscriptions Maximize your power with our new premium software subscription for Macromedia developers Find out more: http://www.macromedia.com/go/devnetsubs/ -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Are you running updater 3 on the cfserver? I believe they switched that off for this update... So you will need to edit one of the XML configuration files for CF and switch it back on... Cant remember which one, but I assume the U3 release notes will have this documented HTH Mikey -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 16:01 To: CF-Talk Subject: Flash Remoting Issues with CFMX Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes that I am overlooking? Any suggestions? I was going to try consuming my CFC as a web service through the Flash remoting proxy, but I'm not sure what that should indicate to me. Any insights? Or a different list that may be able to help. TIA -Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Flash Remoting Issues with CFMX
Bryan, I think I found it check this http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx_updater01.html under flash remoting-related issues (or read snippet below) Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in Updater 3. To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive. init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuefalse/param-value descriptionWhen set to true, this setting disables the ColdFusion WebServices Adapters in the gateway./description /init-param -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:47 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX I wonder if it's this bit??: servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping All my old Flash work uses http://domain_or_IP/flashservices/gateway The above just says /flashservices (no /gateway)could that be it? Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:40 AM Subject: RE: Flash Remoting Issues with CFMX It doesn't kill remoting... What it just stops flash from conneting to other webservices running on other machines (afaik) -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 18:37 To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Same heredon't have that setting but U3 is installed I also installed U3 on another server and it DID NOT kill remotingso I'm not sure that's the issue?? colour me confused by remoting again ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:25 AM Subject: RE: Flash Remoting Issues with CFMX Thanks Collin, I don't have a 'DISABLE_CFWS_ADAPTERS' boolean in web.xml. All I have is this servlet servlet-nameFlashGateway/servlet-name servlet-classflashgateway.controller.GatewayServlet/servlet-class display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description /servlet servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping -Original Message- From: Collin Tobin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:32 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX /WEB-INF/web.xml In the FlashGateway servlet section, change DISABLE_CFWS_ADAPTERS boolen value to false. Restart. Collin Tobin CFMX QA Engineer MacromediaR What the web can be.(tm) Announcing Macromedia DevNet Subscriptions Maximize your power with our new premium software subscription for Macromedia developers Find out more: http://www.macromedia.com/go/devnetsubs/ -Original Message- From: Mike Townend [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:27 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Are you running updater 3 on the cfserver? I believe they switched that off for this update... So you will need to edit one of the XML configuration files for CF and switch it back on... Cant remember which one, but I assume the U3 release notes will have this documented HTH Mikey -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 16:01 To: CF-Talk Subject: Flash Remoting Issues with CFMX Any remoting gurus out there? I have an app that uses Flash Remoting to consume local CFCs and as a proxy to consume remote web services. However, on my host, the first part works, but the second part (consuming remot web services) does not. Are there any configurational changes
RE: Flash Remoting Issues with CFMX
Bryan, I'm in the same sinking boat. That update did not change anything. Collin, any more insights? TIA Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:03 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Thanks Igor.made the change and cycled the CF admin service..but no joy...oh well Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:52 AM Subject: RE: Flash Remoting Issues with CFMX Bryan, I think I found it check this http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx _updater01.html under flash remoting-related issues (or read snippet below) Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in Updater 3. To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive. init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuefalse/param-value descriptionWhen set to true, this setting disables the ColdFusion WebServices Adapters in the gateway./description /init-param -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:47 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX I wonder if it's this bit??: servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping All my old Flash work uses http://domain_or_IP/flashservices/gateway The above just says /flashservices (no /gateway)could that be it? Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:40 AM Subject: RE: Flash Remoting Issues with CFMX It doesn't kill remoting... What it just stops flash from conneting to other webservices running on other machines (afaik) -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 18:37 To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Same heredon't have that setting but U3 is installed I also installed U3 on another server and it DID NOT kill remotingso I'm not sure that's the issue?? colour me confused by remoting again ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:25 AM Subject: RE: Flash Remoting Issues with CFMX Thanks Collin, I don't have a 'DISABLE_CFWS_ADAPTERS' boolean in web.xml. All I have is this servlet servlet-nameFlashGateway/servlet-name servlet-classflashgateway.controller.GatewayServlet/servlet-class display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description /servlet servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping -Original Message- From: Collin Tobin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:32 AM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX /WEB-INF/web.xml In the FlashGateway servlet section, change DISABLE_CFWS_ADAPTERS boolen value to false. Restart. Collin Tobin CFMX QA Engineer MacromediaR What the web can be.(tm) Announcing Macromedia DevNet Subscriptions Maximize your power with our new premium software subscription
RE: Flash Remoting Issues with CFMX
If that were the case... KA-CHING for Macromedia every time someone uses Flash Remoting. Imagine 4 clustered web servers with Flash MX on each one. $2000 extra, just to do remoting??? I think MM is smarter than that. Anyway, SWFs pride themselves on being 'contained' within their own shell, so there should be no inherent dependencies for deployment. Unless, of course, you're running FlashComm apps. How deep is this thing? Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:14 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX This may be a stupid questionbut does Flash MX have to be installed on the server for this to work? I don't think so...but I'm grasping at straws here ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:52 AM Subject: RE: Flash Remoting Issues with CFMX Bryan, I think I found it check this http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx _updater01.html under flash remoting-related issues (or read snippet below) Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in Updater 3. To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive. init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuefalse/param-value descriptionWhen set to true, this setting disables the ColdFusion WebServices Adapters in the gateway./description /init-param -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:47 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX I wonder if it's this bit??: servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping All my old Flash work uses http://domain_or_IP/flashservices/gateway The above just says /flashservices (no /gateway)could that be it? Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:40 AM Subject: RE: Flash Remoting Issues with CFMX It doesn't kill remoting... What it just stops flash from conneting to other webservices running on other machines (afaik) -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 18:37 To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Same heredon't have that setting but U3 is installed I also installed U3 on another server and it DID NOT kill remotingso I'm not sure that's the issue?? colour me confused by remoting again ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:25 AM Subject: RE: Flash Remoting Issues with CFMX Thanks Collin, I don't have a 'DISABLE_CFWS_ADAPTERS' boolean in web.xml. All I have is this servlet servlet-nameFlashGateway/servlet-name servlet-classflashgateway.controller.GatewayServlet/servlet-class display-nameFlash Gateway/display-name descriptionAllows flash to connect to CFML and CFC templates./description /servlet servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping -Original Message- From: Collin Tobin [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:32 AM
RE: Flash Remoting Issues with CFMX
No errors, and you are correct. It worked on my machine before I installed Updater 3. Now it does not work. -Igor -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:36 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Ok, excuse my ignorance, but I'm a bit confused. You have a flash application that can call a cfc from your cfmx server fine. But when you try and access a remote webservice it doesn't work? (I thought this is what ur first post said, but the responses since seem to imply that you can get it working on your own cfmx box) What exactly happens when it doesn't work? Any errors? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:18 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX If that were the case... KA-CHING for Macromedia every time someone uses Flash Remoting. Imagine 4 clustered web servers with Flash MX on each one. $2000 extra, just to do remoting??? I think MM is smarter than that. Anyway, SWFs pride themselves on being 'contained' within their own shell, so there should be no inherent dependencies for deployment. Unless, of course, you're running FlashComm apps. How deep is this thing? Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:14 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX This may be a stupid questionbut does Flash MX have to be installed on the server for this to work? I don't think so...but I'm grasping at straws here ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:52 AM Subject: RE: Flash Remoting Issues with CFMX Bryan, I think I found it check this http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenote s_mx _updater01.html under flash remoting-related issues (or read snippet below) Access from Macromedia Flash to web services using the Flash Gateway is disabled by default in Updater 3. To enable access from Macromedia Flash to web services add the following DISABLE_CFWS_ADAPTERS Servlet init-param entry to the FlashGatewayServlet entry in the web.xml file that is contained in the flashgateway.ear archive. init-param param-nameDISABLE_CFWS_ADAPTERS/param-name param-valuefalse/param-value descriptionWhen set to true, this setting disables the ColdFusion WebServices Adapters in the gateway./description /init-param -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:47 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX I wonder if it's this bit??: servlet-mapping servlet-nameFlashGateway/servlet-name url-pattern/flashservices/url-pattern /servlet-mapping All my old Flash work uses http://domain_or_IP/flashservices/gateway The above just says /flashservices (no /gateway)could that be it? Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:40 AM Subject: RE: Flash Remoting Issues with CFMX It doesn't kill remoting... What it just stops flash from conneting to other webservices running on other machines (afaik) -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 18:37 To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Same heredon't have that setting but U3 is installed I also installed U3 on another server and it DID NOT kill remotingso I'm not sure that's the issue?? colour me confused by remoting again ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver
RE: Flash Remoting Issues with CFMX
The issue is clearly one of U3. That is the only change I made this morning, and now the thing Don't work! Unfortunately, this is one of those issues that only someone who has this working with U3 can help with, or (as that scenario may not actually exist) someone from Macromedia with an in depth knowledge of the FlashRemoting servlet. If you are scratching your head wondering why MM has set this setting in U3, it is because (AFAIK) it can be considered a security hazard, as any flash app can use your gateway as a proxy for consuming web services (assuming it knows where to look). -Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:22 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Adam, and how would I go about hitting the service with an HTTP call? It's not a firewall issue as I have the exact same router (Linksys 4 port router) and ZoneAlarm setup at the office as I did on the server at home. The only real difference is OShome was Win2K Prooffice is Win2K Advanced Server Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adam Wayne Lehman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 12:17 PM Subject: RE: Flash Remoting Issues with CFMX Can you hit the service with an http call? Is it possible a firewall at your office is getting in the way? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:41 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Adam, Not sure if you're asking me or Igor...so here goes I have a Flash ap for viewing Ben Forta's Daily CF tips previously setup as follows: -site that calls the SWF from my server at home sites on a CF 5 server (thus calling teh SWF from my MX server at home -SWF calls remote webservice provided by Ben -home server has MX with U3 installed The change: -that server at home is gone -new server in office (MX with U3 installed) now has the SWF -CF 5 site code adjusted to point at new location of SWF -SWF code adjusted to use flashservices gateway on new server in office So basically the same dang setupsame versionssame web.xml files...but on the new server it won't connect to Ben's webserviceI'm lost ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adam Wayne Lehman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:35 AM Subject: RE: Flash Remoting Issues with CFMX Ok, excuse my ignorance, but I'm a bit confused. You have a flash application that can call a cfc from your cfmx server fine. But when you try and access a remote webservice it doesn't work? (I thought this is what ur first post said, but the responses since seem to imply that you can get it working on your own cfmx box) What exactly happens when it doesn't work? Any errors? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:18 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX If that were the case... KA-CHING for Macromedia every time someone uses Flash Remoting. Imagine 4 clustered web servers with Flash MX on each one. $2000 extra, just to do remoting??? I think MM is smarter than that. Anyway, SWFs pride themselves on being 'contained' within their own shell, so there should be no inherent dependencies for deployment. Unless, of course, you're running FlashComm apps. How deep is this thing? Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:14 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX This may be a stupid questionbut does Flash MX have to be installed on the server for this to work? I don't think so...but I'm grasping at straws here ;-) Bryan Stevenson B.Comm. VP Director of E
RE: Flash Remoting Issues with CFMX
Adam, How can a SWF connect to a Remote server directly? Are you saying that Bryan should be using Ben's Gateway (i.e., http://www.forta.com/flashservices/gateway or wherever it is...)? Theoretically it could work, if Ben left his service open like that, but I don't think he would even consider doing this. Nor is that a good model going forward. Otherwise, if you have a configuration where you can consume a web service directly from Flash (Excluding Central) then I think you know something we don't. So do tell... For the record, both Bryan's and my issues and goals are the same. We need to consume ben's tip web service for a CFUG site through a flash app interface... I only introduced the babelfish example because it is a simpler example, and is directly from Macromedia's site, so that means it SHOULD work. -Igor -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:03 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Bryan, I'm still kind of confused as to what's going on. Technically speaking, the only thing that has changed in the location of the SWF file, which shouldn't be relying on your CFMX box for anything. (Unless you are routing the call through a CFC of your own) The SWF file should be connecting directly to Ben's server via his remoting gateway. If this is the setup, then it's safe to say your new server is not the culprit. Because all it should be doing is hosting the SWF file. What's the URL to the CFUG page? I'll test to see if it works on my network or not. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:41 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Adam, Not sure if you're asking me or Igor...so here goes I have a Flash ap for viewing Ben Forta's Daily CF tips previously setup as follows: -site that calls the SWF from my server at home sites on a CF 5 server (thus calling teh SWF from my MX server at home -SWF calls remote webservice provided by Ben -home server has MX with U3 installed The change: -that server at home is gone -new server in office (MX with U3 installed) now has the SWF -CF 5 site code adjusted to point at new location of SWF -SWF code adjusted to use flashservices gateway on new server in office So basically the same dang setupsame versionssame web.xml files...but on the new server it won't connect to Ben's webserviceI'm lost ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adam Wayne Lehman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:35 AM Subject: RE: Flash Remoting Issues with CFMX Ok, excuse my ignorance, but I'm a bit confused. You have a flash application that can call a cfc from your cfmx server fine. But when you try and access a remote webservice it doesn't work? (I thought this is what ur first post said, but the responses since seem to imply that you can get it working on your own cfmx box) What exactly happens when it doesn't work? Any errors? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:18 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX If that were the case... KA-CHING for Macromedia every time someone uses Flash Remoting. Imagine 4 clustered web servers with Flash MX on each one. $2000 extra, just to do remoting??? I think MM is smarter than that. Anyway, SWFs pride themselves on being 'contained' within their own shell, so there should be no inherent dependencies for deployment. Unless, of course, you're running FlashComm apps. How deep is this thing? Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:14 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX This may be a stupid questionbut does Flash MX have to be installed on the server for this to work? I don't think so...but I'm grasping at straws here ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion
RE: Flash Remoting Issues with CFMX
Bryan, I think you and I are SOL unless we can find someone who is successfully using the Gateway as a proxy for web services on a machine that has been updated with U3. I'm gonna try the other list to see if anyone is running this on their site with U3. See you there... -Igor -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:24 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Adam, Igor is right...and it's not using Ben's gateway...it's calling a CFC that Ben has exposedthus it's using my gateway to consume the webservice AFAIK Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:10 PM Subject: RE: Flash Remoting Issues with CFMX Adam, How can a SWF connect to a Remote server directly? Are you saying that Bryan should be using Ben's Gateway (i.e., http://www.forta.com/flashservices/gateway or wherever it is...)? Theoretically it could work, if Ben left his service open like that, but I don't think he would even consider doing this. Nor is that a good model going forward. Otherwise, if you have a configuration where you can consume a web service directly from Flash (Excluding Central) then I think you know something we don't. So do tell... For the record, both Bryan's and my issues and goals are the same. We need to consume ben's tip web service for a CFUG site through a flash app interface... I only introduced the babelfish example because it is a simpler example, and is directly from Macromedia's site, so that means it SHOULD work. -Igor -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:03 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Bryan, I'm still kind of confused as to what's going on. Technically speaking, the only thing that has changed in the location of the SWF file, which shouldn't be relying on your CFMX box for anything. (Unless you are routing the call through a CFC of your own) The SWF file should be connecting directly to Ben's server via his remoting gateway. If this is the setup, then it's safe to say your new server is not the culprit. Because all it should be doing is hosting the SWF file. What's the URL to the CFUG page? I'll test to see if it works on my network or not. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:41 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Adam, Not sure if you're asking me or Igor...so here goes I have a Flash ap for viewing Ben Forta's Daily CF tips previously setup as follows: -site that calls the SWF from my server at home sites on a CF 5 server (thus calling teh SWF from my MX server at home -SWF calls remote webservice provided by Ben -home server has MX with U3 installed The change: -that server at home is gone -new server in office (MX with U3 installed) now has the SWF -CF 5 site code adjusted to point at new location of SWF -SWF code adjusted to use flashservices gateway on new server in office So basically the same dang setupsame versionssame web.xml files...but on the new server it won't connect to Ben's webserviceI'm lost ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adam Wayne Lehman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:35 AM Subject: RE: Flash Remoting Issues with CFMX Ok, excuse my ignorance, but I'm a bit confused. You have a flash application that can call a cfc from your cfmx server fine. But when you try and access a remote webservice it doesn't work? (I thought this is what ur first post said, but the responses since seem to imply that you can get it working on your own cfmx box) What exactly happens when it doesn't work? Any errors? Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Igor
RE: Flash Remoting Issues with CFMX
A Brain fart is a common thing... immagine having an ass epiphany. -Igor -Someone quote me on that, that is good! -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:03 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Your right, my apologies. Having a brain fart, confusing getService() with establishing your gateway. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 4:24 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Adam, Igor is right...and it's not using Ben's gateway...it's calling a CFC that Ben has exposedthus it's using my gateway to consume the webservice AFAIK Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Igor Ilyinsky [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:10 PM Subject: RE: Flash Remoting Issues with CFMX Adam, How can a SWF connect to a Remote server directly? Are you saying that Bryan should be using Ben's Gateway (i.e., http://www.forta.com/flashservices/gateway or wherever it is...)? Theoretically it could work, if Ben left his service open like that, but I don't think he would even consider doing this. Nor is that a good model going forward. Otherwise, if you have a configuration where you can consume a web service directly from Flash (Excluding Central) then I think you know something we don't. So do tell... For the record, both Bryan's and my issues and goals are the same. We need to consume ben's tip web service for a CFUG site through a flash app interface... I only introduced the babelfish example because it is a simpler example, and is directly from Macromedia's site, so that means it SHOULD work. -Igor -Original Message- From: Adam Wayne Lehman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 3:03 PM To: CF-Talk Subject: RE: Flash Remoting Issues with CFMX Bryan, I'm still kind of confused as to what's going on. Technically speaking, the only thing that has changed in the location of the SWF file, which shouldn't be relying on your CFMX box for anything. (Unless you are routing the call through a CFC of your own) The SWF file should be connecting directly to Ben's server via his remoting gateway. If this is the setup, then it's safe to say your new server is not the culprit. Because all it should be doing is hosting the SWF file. What's the URL to the CFUG page? I'll test to see if it works on my network or not. Adam Wayne Lehman Web Systems Developer Johns Hopkins Bloomberg School of Public Health Distance Education Division -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:41 PM To: CF-Talk Subject: Re: Flash Remoting Issues with CFMX Hey Adam, Not sure if you're asking me or Igor...so here goes I have a Flash ap for viewing Ben Forta's Daily CF tips previously setup as follows: -site that calls the SWF from my server at home sites on a CF 5 server (thus calling teh SWF from my MX server at home -SWF calls remote webservice provided by Ben -home server has MX with U3 installed The change: -that server at home is gone -new server in office (MX with U3 installed) now has the SWF -CF 5 site code adjusted to point at new location of SWF -SWF code adjusted to use flashservices gateway on new server in office So basically the same dang setupsame versionssame web.xml files...but on the new server it won't connect to Ben's webserviceI'm lost ;-) Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Adam Wayne Lehman [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:35 AM Subject: RE: Flash Remoting Issues with CFMX Ok, excuse my ignorance, but I'm a bit confused. You have a flash application that can call a cfc from your cfmx server fine. But when you try and access a remote webservice it doesn't work? (I thought this is what ur first post said, but the responses since seem to imply that you can get it working on your own cfmx box
RE: DevCon 2003
Just out of curiosity, Kevin, what is your ethnicity, and religious faith, if I may ask? As for Bryan's Comments: I agree with Adam and Dave, that this list should not be subject to Fantasyland, Tree-huggin communist views. I'm sure Mike D could set up [EMAIL PROTECTED] for you. Lastly, Karl Malone (a.k.a., The Mailman) is an almost 40 year old Basketball player for the Utah Jazz. He was voted one of the Top 50 b-ballers of all time, and once scored 61 points in a game, as well as being voted NBA MVP twice. Karl was also a key player on the 1992 US Olympic Dream Team that spanked the world's ass in our own sport, and proved that America was no place for tree-huggers (had to throw that in). Karl enjoys sad puppy movies, and long walks around the lake... salt lake that is. -Original Message- From: Kevin Pompei [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 3:40 PM To: CF-Talk Subject: Re: DevCon 2003 Actually, Salt Lake City is not that much like the rest of Utah. It's much more diverse than people often think. Not just ethnically but also politically and religously. I've lived here for almost 9 years and I can tell you that the skiing is fantastic. Uncrowded runs are less than 30 minutes from Downtown. Since the 2002 Winter Olympics the restaurant scene has also improved dramatically. Hotel rates are generally not very expensive. Kevin Pompei Salt Lake City, UT - Original Message - From: Haggerty, Mike [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:10 PM Subject: RE: DevCon 2003 I hear one of the major 'things to do' in SLC is Karl Malone watching. He supposedly frequents a number of shopping venues and can often be spotted riding a motorcycle. Also, the city is not very... uhh.. ethnically diverse. He supposedly stands out. M -Original Message- From: Kevin Graeme [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 3:47 PM To: CF-Talk Subject: RE: DevCon 2003 Looking at these sites: http://www.slctravel.com/ http://www.utah.com/cities/slc.htm Not much. -Kevin Hmmm... what's in Salt Lake City?? Just curious... Candace K. Cottrell, Web Developer The Children's Medical Center One Children's Plaza Dayton, OH 45404 937-641-4293 http://www.childrensdayton.org [EMAIL PROTECTED] ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFHTTP - JavaScript - Frame Source (Dynamic)
Guys, I am going nutty trying to figure this out!!! I have to capture an HTML 'snapshot' of a dynamic page and then save the source to a static HTML page. The reason is that I want to give my users a 'preview' of what the static page will be and allow them the option to keep it, or refresh and try again with the potential of different results (because it is dynamic). The problem is that the page that I am pulling for the 'preview' is in a different directory, and CFHTTP's ResolveURL attribute does not resolve all of the URLs, especially not the ones loading Flash apps. What I'm trying to do now, is open the page in a different frame, and if the user chooses to keep the page, I want to retrieve the HTML from that frame. However, I have not found an object in the DOM that will return a document's HTML source. Any Ideas? I'm open to other solutions. Keep in mind that I can not do another HTTP call because that may load a different page, as it is dynamic. Also, If possible, I'd rather not make changes to the dynamic page this dynamic page. TIA Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFHTTP - JavaScript - Frame Source (Dynamic) RESOLVED
Thanks Neil... It worked with 'document.body.innerHTML' Igor -Original Message- From: Neil Middleton [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 10:28 AM To: CF-Talk Subject: RE: CFHTTP - JavaScript - Frame Source (Dynamic) use document.innerHTML which will return the source for the frame. Neil -Original Message- From: Igor Ilyinsky [mailto:[EMAIL PROTECTED] Sent: 28 March 2003 15:56 To: CF-Talk Subject: CFHTTP - JavaScript - Frame Source (Dynamic) Guys, I am going nutty trying to figure this out!!! I have to capture an HTML 'snapshot' of a dynamic page and then save the source to a static HTML page. The reason is that I want to give my users a 'preview' of what the static page will be and allow them the option to keep it, or refresh and try again with the potential of different results (because it is dynamic). The problem is that the page that I am pulling for the 'preview' is in a different directory, and CFHTTP's ResolveURL attribute does not resolve all of the URLs, especially not the ones loading Flash apps. What I'm trying to do now, is open the page in a different frame, and if the user chooses to keep the page, I want to retrieve the HTML from that frame. However, I have not found an object in the DOM that will return a document's HTML source. Any Ideas? I'm open to other solutions. Keep in mind that I can not do another HTTP call because that may load a different page, as it is dynamic. Also, If possible, I'd rather not make changes to the dynamic page this dynamic page. TIA Igor ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
OT: COLDFUSION w/ UNIX + SYBASE = NEWJOB (NYC)
I realize this is not the ideal list for this post, but I checked the cf-jobs list and saw a tumbleweed rolling by. There is a job opening at a Major Investement Brokereage firm in midtown NYC (If you know my history, you may guess which one). It pays well (considering the times) but is a great opportunity to get your foot in the door in the IB world (which I can attest, if market conditions improve, means MUCHO DINERO in the future). They are looking for an experienced CFer, with lots of RDBMS experience (Preferably Sybase, then MS SQL). Experience with Unix is KEY, and so is a general understanding of the old skool Mainframe world (PowerBuilder Huge Plus). At leas 5 years experience in client/server technology, or someone willing to fib about this (a little). If you are interested, please send an email OFFLIST to: [EMAIL PROTECTED] or to me directly. Be sure to mention my name (IGOR ILYINSKY) and your chances improve (I'm not shitting you). Good Luck!!! and pass it on -Igor Ilyinsky ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribeforumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4