User Guide
cfcomponent 89
History
ColdFusion MX 7:
• Added support for publishing document-literal style web services.
• Added the style, namespace, serviceportname, porttypename, wsdlfile, and
bindingname attributes.
• Extended functionality for the hint and displayname attributes when publishing document-
literal style web services.
ColdFusion MX: Added this tag.
Attributes
Attribute Req/Opt Default Description
extends Optional Name of parent component from which to inherit
methods and properties.
output Optional Component
body
displayable
text is
processed
as standard
CFML
Specifies whether constructor code in the component
can generate HTML output; does not affect output in
the body of
cffunction tags in the component.
• yes: Constructor code is processed as if it were
within a
cfoutput tag. Variable names surrounded
by number signs (#) are automatically replaced with
their values.
• no: Constructor code is processed as if it were
within a
cfsilent tag.
• If you do not specify this attribute, constructor code
is processed as standard CFML. Any variables must
be in
cfoutput tags.
style Optional rpc Specifies whether a CFC used for web services uses
RPC-encoded style or document-literal style:
• rpc: RPC-encoded style
• document: document-literal style
namespace Optional classname Specifies the namespace used in the WSDL when
using the CFC as a document-literal style web service.
If you don’t specify this attribute, ColdFusion MX
derives the value from the CFC class name.
This attribute applies only when
style="document".
serviceportname Optional Specifies the
name attribute of the port element in the
WSDL. If you don’t specify this attribute,
ColdFusion MX derives the value from the CFC class
name.
This attribute applies only when
style="document".