| Key points: |
- A custom serializer can modify any aspect of a given server-side class' serialization to the client.
- In this sample, the custom serializer:
- Changes the capitalization of property names, and
- Obscures the returned personnel record's identity with the word 'SECRET' (see line 81 in the server-side code).
- (See the server-side source code's 'employee database' (personnel[], line 11) for the employees' secret identities).
- The custom serializer must be registered with WebORB using WebORB's management console, as described here.
- If the serialization changes the names of the class' properties, then WebORB must be informed of the altered property names using the SetClientClassMemberNameAttribute attribute, as described in this sample.
|