Passing an array of objects when calling a document/literal web service with perl soap::lite
One recent problem I encountered was that I had to write a PERL client for an existing document/literal web service. The service is using polymorphism– there are two methods:
Product[] getProducts1(Products[] products1);
Product[] getProducts2();
Product[] getProducts2();
“Product” is only an interface. Product1 and Product2 are concret classes that implement the “product’ interface. and the objects in the products array are either Product1 objects or Product2 objects;