[CR #271998] A user-defined type registration requires that the user declare the class and the serializer and deserializer classes associated with the class.
Workaround: Use Jaguar Manager to edit the package properties; see Chapter 28, “Configuring Custom Java Class List,” in the EAServer Programmer’s Guide for details. These classes must be associated with Web Services Toolkit elements as follows:
The user class and its associated serializer and deserializer classes must be defined in the Web Services Tools package.
Only the serializer and deserializer classes must be defined in the Web Services Web application.
For example, for the class com.mycompany.mypackage.SimpleClass with the serializer class com.mycompany.mypackage.SimpleClassSerializer and the deserializer class com.mycompany.mypackage.SimpleClassDeserializer, you must either add these classes to the Web Services Tools package’s Java Classes property:
com.mycompany.mypackage.SimpleClass
com.mycompany.mypackage.SimpleClassSerializer
com.mycompany.mypackage.SimpleClassDeserializer
Or, add:
com.mycompany.mypackage.*
Additionally, you must add the following to the Web Services Web application’s Java Classes property:
com.mycompany.mypackage.SimpleClassSerializer
com.mycompany.mypackage.SimpleClassDeserializer
If the files are in .jar archives,
then they must be in separate archives, and the archives must be
declared accordingly.
For example, if SimpleClass.jar contains the SimpleClass class and SimpleClassSerialization.jar contains the serializer and deserializer classes, then the Web Services Tools package Java Classes property must contain SimpleClass.jar and SimpleClassSerialization.jar. The Web Services Web application Java Classes property need contain only SimpleClassSerialization.jar.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |