{"id":22,"date":"2008-06-10T10:53:08","date_gmt":"2008-06-10T16:53:08","guid":{"rendered":"http:\/\/www.n8williams.com\/devblog\/?p=22"},"modified":"2008-08-23T12:57:29","modified_gmt":"2008-08-23T18:57:29","slug":"receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","status":"publish","type":"post","link":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","title":{"rendered":"Receiving Flex Objects in Coldfusion, coldfusion component argument types"},"content":{"rendered":"<h2>Flex Remoting with Coldfusion. Coldfusion Services and custom objects\/components<\/h2>\n<p>I was getting frustrated when I COULD NOT receive a flex object as anything when a coldfusion service was receiving a remote call from flex. The coldfusion component had a method I was sending a call to. This method expected a struct arguement and then I was trying the argument type as on object. When I passed in the flex object to the remote method call in flex, when coldfusion received the argument it was breaking it apart and treating it as a messed up argument collection. Turns out you have to wrap a flex object in another object for coldfusion to receive it as a struct. Why the lack of documentation on this? I think flex remoting is really cool, but maybe it is a newer wave of development that just hasn&#8217;t been very popularized yet. I think that is changing. <\/p>\n<p>In any case the following links really help with understanding how coldfusion and flex work together with remoting. Coldfusion components, like custom TO objects, can also be used across the wire, and vice-versa with flex objects. It is pretty slick, but you have to learn how to make coldfusion components and corresponding flex objects with properties that match, etc. <\/p>\n<p>Nice article by Joel.<\/p>\n<p><a href=\"http:\/\/www.joelconnett.com\/flexobjectstocoldfusion.html\" target=\"_blank\">http:\/\/www.joelconnett.com\/flexobjectstocoldfusion.html<\/a><\/p>\n<p>I had originally found the following, which was helpful:<\/p>\n<p><a href=\"http:\/\/codingmurloc.wordpress.com\/2007\/05\/15\/passing-object-to-a-cfc-flex-or-cf-bug\/\" target=\"_blank\">http:\/\/codingmurloc.wordpress.com\/2007\/05\/15\/passing-object-to-a-cfc-flex-or-cf-bug\/<\/a><\/p>\n<p>For custom component types, see also:<\/p>\n<p><a href=\"http:\/\/www.brucephillips.name\/blog\/index.cfm\/2006\/10\/26\/Exchaning-User-Defined-Objects-Between-ColdFusion-and-Flex\" target=\"_blank\">http:\/\/www.brucephillips.name\/blog\/index.cfm\/2006\/10\/26\/Exchaning-User-Defined-Objects-Between-ColdFusion-and-Flex<\/a><\/p>\n<p><a href=\"http:\/\/www.forta.com\/blog\/index.cfm\/2006\/2\/1\/The-Keys-To-Getting-CFC-ActionScript-AutoConversions-To-Work\" target=\"_blank\">http:\/\/www.forta.com\/blog\/index.cfm\/2006\/2\/1\/The-Keys-To-Getting-CFC-ActionScript-AutoConversions-To-Work<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Flex Remoting with Coldfusion. Coldfusion Services and custom objects\/components I was getting frustrated when I COULD NOT receive a flex object as anything when a coldfusion service was receiving a remote call from flex. The coldfusion component had a method I was sending a call to. This method expected a struct arguement and then I &hellip; <a href=\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Receiving Flex Objects in Coldfusion, coldfusion component argument types&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,3],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.11 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages\" \/>\n<meta property=\"og:description\" content=\"Flex Remoting with Coldfusion. Coldfusion Services and custom objects\/components I was getting frustrated when I COULD NOT receive a flex object as anything when a coldfusion service was receiving a remote call from flex. The coldfusion component had a method I was sending a call to. This method expected a struct arguement and then I &hellip; Continue reading &quot;Receiving Flex Objects in Coldfusion, coldfusion component argument types&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\" \/>\n<meta property=\"og:site_name\" content=\"The Dev Pages\" \/>\n<meta property=\"article:published_time\" content=\"2008-06-10T16:53:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2008-08-23T18:57:29+00:00\" \/>\n<meta name=\"author\" content=\"Nate Admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@admin\" \/>\n<meta name=\"twitter:site\" content=\"@admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nate Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#article\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\"},\"author\":{\"name\":\"Nate Admin\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"headline\":\"Receiving Flex Objects in Coldfusion, coldfusion component argument types\",\"datePublished\":\"2008-06-10T16:53:08+00:00\",\"dateModified\":\"2008-08-23T18:57:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\"},\"wordCount\":266,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"articleSection\":[\"Coldfusion\",\"Flex\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\",\"url\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\",\"name\":\"Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages\",\"isPartOf\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\"},\"datePublished\":\"2008-06-10T16:53:08+00:00\",\"dateModified\":\"2008-08-23T18:57:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/n8williams.com\/devblog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Receiving Flex Objects in Coldfusion, coldfusion component argument types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#website\",\"url\":\"https:\/\/n8williams.com\/devblog\/\",\"name\":\"The Dev Pages\",\"description\":\"A knowledge base for web applications development (and beyond)\",\"publisher\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/n8williams.com\/devblog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757\",\"name\":\"Nate Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g\",\"caption\":\"Nate Admin\"},\"logo\":{\"@id\":\"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/n8williams.com\",\"https:\/\/twitter.com\/admin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","og_locale":"en_US","og_type":"article","og_title":"Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages","og_description":"Flex Remoting with Coldfusion. Coldfusion Services and custom objects\/components I was getting frustrated when I COULD NOT receive a flex object as anything when a coldfusion service was receiving a remote call from flex. The coldfusion component had a method I was sending a call to. This method expected a struct arguement and then I &hellip; Continue reading \"Receiving Flex Objects in Coldfusion, coldfusion component argument types\"","og_url":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","og_site_name":"The Dev Pages","article_published_time":"2008-06-10T16:53:08+00:00","article_modified_time":"2008-08-23T18:57:29+00:00","author":"Nate Admin","twitter_card":"summary_large_image","twitter_creator":"@admin","twitter_site":"@admin","twitter_misc":{"Written by":"Nate Admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#article","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components"},"author":{"name":"Nate Admin","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"headline":"Receiving Flex Objects in Coldfusion, coldfusion component argument types","datePublished":"2008-06-10T16:53:08+00:00","dateModified":"2008-08-23T18:57:29+00:00","mainEntityOfPage":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components"},"wordCount":266,"commentCount":0,"publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"articleSection":["Coldfusion","Flex"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#respond"]}]},{"@type":"WebPage","@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","url":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components","name":"Receiving Flex Objects in Coldfusion, coldfusion component argument types - The Dev Pages","isPartOf":{"@id":"https:\/\/n8williams.com\/devblog\/#website"},"datePublished":"2008-06-10T16:53:08+00:00","dateModified":"2008-08-23T18:57:29+00:00","breadcrumb":{"@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/n8williams.com\/devblog\/flex\/receiving-flex-objects-in-coldfusion-argument-types-for-coldfusion-components#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/n8williams.com\/devblog\/"},{"@type":"ListItem","position":2,"name":"Receiving Flex Objects in Coldfusion, coldfusion component argument types"}]},{"@type":"WebSite","@id":"https:\/\/n8williams.com\/devblog\/#website","url":"https:\/\/n8williams.com\/devblog\/","name":"The Dev Pages","description":"A knowledge base for web applications development (and beyond)","publisher":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/n8williams.com\/devblog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/1c31624786b5382f1a811f0a01985757","name":"Nate Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19d7bc7602072ac846e912622704a628?s=96&d=mm&r=g","caption":"Nate Admin"},"logo":{"@id":"https:\/\/n8williams.com\/devblog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/n8williams.com","https:\/\/twitter.com\/admin"]}]}},"_links":{"self":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/22"}],"collection":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":0,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"wp:attachment":[{"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/n8williams.com\/devblog\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}