Video Screencast Help
Protect Your POS Environment Against Retail Data Breaches. Learn More.
Endpoint Management Community Blog

Using Reserved Words with the Web Service Generator in Workflow

Created: 21 Aug 2013 • Updated: 21 Aug 2013
BRING's picture
+1 1 Vote
Login to vote

When creating a set of new components based off the Web Service Caller Generator (as shown below),

image001_7.png

Errors can occur if, on the last page of the generator (as shown below), component properties are named with words like “new”, “finally”, “byte”, “interface” etc.

 

image003_8.png

 

Cause:

Many words are reserved  or protected, and may NOT be used in component names and properties.

The list of reserved words that we check for are:

                "abstract",

                "event",

                "new",

                "struct",

                "as",

                "explicit",      

                "null",

                "switch",

                "base",

                "extern",

                "object",

                "this",

                "bool",

                "false",

                "operator",

                "throw",

                "break",

                "finally",

                "out",

                "true",

                "byte",

                "fixed",

                "override",

                "try",

                "case",

                "float",

                "params",

                "typeof",

                "catch",

                "for",

                "private",

                "uint",

                "char",

                "foreach",

                "protected",

                "ulong",

                "checked",

                "goto",

                "public",

                "unchecked",

                "class",

                "if",

                "readonly",

                "unsafe",

                "const",

                "implicit",

                "ref",

                "ushort",

                "continue",

                "in",

                "return",

                "using",

                "decimal",

                "int",

                "sbyte",

                "virtual",

                "default",

                "interface",

                "sealed",

                "volatile",

                "delegate",

                "internal",

                "short",

                "void",

                "do",

                "is",

                "sizeof",

                "while",

                "double",

                "lock",

                "stackalloc",

                "else",

                "long",

                "static",

                "enum",

                "namespace",

                "string",

                "System"

             

If you encounter this problem, try to avoid the use of reserved words in this situation.  However, if you need to use them, simply place an “@” symbol in front of the reserved word.  This will allow them to be used as component property names.  Examples would be “@new”, “@finally”, “@byte”, “@interface” etc.