I have third-party platforms from which the API needs to be tested using webservices. These APIs accept user objects that are not serializable. Say, for example, some of the APIs look like this.
doSomething(CustomId someId, DBLoaderType type, DBFilter filter, boolean exclude) returns java.util.List<SomeNavigationSystem>
But these CustomId , DBLoaderType , DBFilter , SomeNavigationSystem are not serializable objects.
Is there a way that I don't need to write any additional classes for all of these classes (there are many such classes) for serialization? If I write one wrapper or equivalent DTO for each business class, then it will be very insecure.
source share