|
Hi, I have the problem that I want to use a class as a
parameter of a method which is not a basic data type of java. I have defined a
interface like: public interface CContentExchangeValidatorService
extends java.rmi.Remote { public boolean
validateContent(ContentID contentID) throws
java.rmi.RemoteException,ConfuocoException; } Code of the ContentID class: public interface ContentID { public
byte[] getFingerprint(); public
void setFingerprint(byte[] fingerprint); public
boolean equals(ContentID contentID); public
boolean similar(ContentID contentID); } And I have to classes which implements the interface above
and are the concrete classes HashValue and Fingerprint. This means when I’ am calling the
validateContent() method I send a HashValue object or a Fingerprint object. How
can I realize it that Axis understands this type of object? I read in a book
that it’s possible to write own Serializer and Deserializer classes, but
it’s preferred to use the BeanSerializer and BeanDeserializer classes
instead of custom Serializer and Deserialzer. Can anybody help me or can give any suggestions how
to solve the problem? Thanks for any help in advance. Regards Ferruh |
