Actually there should be a straight forward answer to this question (is about the "Object" property below):
Having the following data contract:
[KnownType(typeof(bool))]
[KnownType(typeof(int))]
[KnownType(typeof(string))]
[KnownType(typeof(Customer))]
[KnownType(typeof(Client))]
public class Transaction
{
// properties
[DataMember(Name = "UID")]
public int UID{}
[DataMember(Name = "Type")]
public Enums.TransactionType Type{}
[DataMember(Name = "Data")]
public Object Data{}
}
and the following service contract:
public interface IService
{
[OperationContract(Name = "GetData")]
List<Transaction> GetTransact();
}
Will this be interoperable? Saying from Java, gSoap? If not, how can I make it interoperable?
Thank you.
EDIT: I just want to know if WCF knows how to serialize/deserialize the Object from/into the known types defined.