How do I pass data to a Remote Service?

This question came up twice on the same day; once via personal e-mail and once via the House of Fusion Flex list. The question, from the House of Fusion list is this:


How do I submit data to the ColdFusion component from the Flex interface?

Using RemoteObject in Flex, you can submit data like his:


RemoteObject.methodName(data);

Basically, you pass data to a remote method the same exact way you pass it to a local method. The same approach is used if you use the WebService or HTTPService objects.

Both people who asked this question were asking in relation to ColdFusion; however the same principles apply no matter what middleware you are using. From the perspective of Flex/Flash it's just a consistent interface for accessing remote services.

I love the questions that are easy to answer. Do you have one to ask me?

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
All Content Copyright 2005, 2006, 2007, 2008, 2009 Jeffry Houser. May not be reused without permission
BlogCFC was created by Raymond Camden. This blog is running version 5.9.2.002.