I am consuming a webserivce and the webservice has a method called getPayment(); the method returns a base class Payment. When I call this method, it always return the base class Payment even though the CreditCard class is set. The CreditCard class extends the Payment class. Can someone kindly explain to me why don't I get the actual class back?
BTW, I am using wscompile tool to build the client stub from the wsdl.
Thanks in advance.