Spec-Zone.ru › ColdFusion

cfinvokeargument

Passes the name and value of an argument to a component method or a web service method. This tag is used inside of the cfinvoke tag.

<cfinvokeargument name="" value="">

cfinvokeargument(name="", value="");

  • CF6+
  • Lucee
  • BL 1.0.0+
  • See Also: cfinvoke

    Attribute Reference

    name string
    Required

    The argument name

    value string
    Required

    The argument value

    omit boolean
    Default: false

    Enables you to omit a parameter when invoking a web service. It is an error to specify omit="true" if the cfinvoke webservice attribute is not specified. - true: omit this parameter when invoking a web service. - false: do not omit this parameter when invoking a web service.
    Values:
    • true
    • false

    Compatibility

    BoxLang:

    Version 1.0.0+ <bx:invokeargument> in BoxLang

    Examples
    Sample code using the cfinvokeargument tag

    Invoke a SOAP webservice and passing arguments using cfinvokeargument

    Calls a remote web service to perform an addition, uses cfinvokeargument to pass the arguments to the method.

    <cfinvoke webservice="http://soaptest.parasoft.com/calculator.wsdl" method="add" returnvariable="answer">
        <cfinvokeargument name="x" value="2">
        <cfinvokeargument name="y" value="3">
    </cfinvoke>
    <cfoutput>#answer#</cfoutput>

    Expected Result: 5.0

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/cfinvokeargument

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API