Inject parameter rules
Remember the following points when working with inject parameters.
- The
<description>
tag is optional and can be empty or not listed at all. - Constant, client, inject, SQL, and HTTP parameters can be passed as arguments to other inject, SQL, and HTTP parameters.
- Arguments that are listed in functions are processed in the order that they are written.
- Inject parameters are evaluated once per operation when a service is run.
- Extra arguments that are not required by the function are ignored. However if not enough arguments are passed to a function, any missing arguments are assumed to be null.
- Strings cannot be passed directly as arguments to a function.
- Parameters that are passed to the service must be valid parameters for the command set that is called by the service.
- If the
<code>
tag contains characters that might require escaping in XML, the information in this tag must be specified in an XML CDATA block. - For user-defined JavaScript, the function must return a string.
- For predefined NSM functions, the
<methodCall>
and<arguments>
tags must be populated. The<code>
tag is ignored for predefined NSM functions. - For JavaScript functions, the
<code>
and<methodCall>
tags must be populated. You must also specify any<arguments>
that are used.