• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 33. ColdFusion Markup Language (... > Creating and Using Web Service CFCs

Creating and Using Web Service CFCs

As you saw in the previous section, the differences in format between a custom tag and a single-function component are minor. The difference in potential, however, is significant, because a CFC has the potential to be accessed remotely in three ways: a URL parameter (including a URL parameter generated automatically when a form is submitted), Flash Remoting, or a Web service invocation.

For a function within a CFC to respond as a Web service, it must be formatted with four parameters: name, access (set to “remote”), returnType, and output (set to “no” or “false”). For example, this is the start tag for the getSiteName function:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint