Designer 10.5 | webMethods Service Development Help | Data Types | Java Classes for Objects
 
Java Classes for Objects
You can further describe the contents of an Object or Object list variable by applying a Java class to the variable. When you apply a supported Java class to an Object or Object list variable, Designer changes the icon for the variable. Applying Java classes to Objects and Object lists can provide the following benefits:
*Other developers can easily see the types your service expects as inputs and produces as output.
*Other developers can easily see the types contained in an IS document type.
*You can input values for the variable when running and debugging.
*You can assign values to variables in the pipeline using on the Pipeline view toolbar.
Note:
When you input values for a constrained Object during debugging or when assigning a value in the pipeline, Designer validates the data to make sure it is of the correct type.
The following table identifies the Java classes you can apply to Objects and Object list variables in Designer.
Data Type
Icon
Description
Java Class
boolean
True or false.
java.lang.Boolean
boolean list
A one-dimensional boolean array.
java.lang.Boolean[ ]
byte
Signed integer. The value must be greater than or equal to –128 but less than or equal to 127.
java.lang.Byte
byte [ ]
A one-dimensional byte array.
primitive type
byte list
A one-dimensional byte array.
java.lang.Byte[ ]
character
A single unicode character.
java.lang.Character
character list
A one-dimensional character array.
java.lang.Character[ ]
date
Date and time.
java.util.Date
date list
A one-dimensional date array.
java.util.Date[ ]
double
Double-precision floating point number.
java.lang.Double
double list
A one-dimensional double array.
java.lang.Double[ ]
float
Standard-precision floating point number.
java.lang.Float
float list
A one-dimensional float array.
java.lang.Float[ ]
integer
Signed integer. The value must be greater than or equal to -2147483648 but less than or equal to 2147483647.
java.lang.Integer
integer list
A one-dimensional integer array.
java.lang.Integer[ ]
long
Signed integer. The value must be greater than or equal to –9223372036854775808 but less than or equal to 9223372036854775807.
java.lang.Long
long list
A one-dimensional long array.
java.lang.Long[ ]
short
Signed integer. The value must be greater than or equal to -32768 but less than or equal to 32767.
java.lang.Short
short list
A one-dimensional short array.
java.lang.Short[ ]
XOPObject
A field in a SOAP message that is to be sent/received as a streamed MTOM attachment.
Note:Integration Server only supports this Java wrapper type for web services.
com.wm.util.XOPObject
Note:
Any Object or Object list placed into the service pipeline must be a serializable data type. If it cannot be serialized, the pipeline cannot be exchanged with a remote Integration Server. Further, the class names for the data type must be included in the Integration Server whitelist classes file or a package whitelist classes file for the pipeline to be deserialized at the destination Integration Server. Classes defined by Integration Server are already included in the whitelist class file. This requirement applies to all Object and Object list variables, including those contained in a Document or Document list. For more information about the whitelist classes file, see the webMethods Integration Server Administrator’s Guide.