C
cgem
Hello. I am seeing a problem with VC#2008 Express when learning a WSDL. I
have a base class A and a subclass B. My web services server exposes a SOAP
service that returns an object of type A. The actual returned type is B (or
C or any of a bunch of different subclasses of A). The code generated by VC#
seems to know about the class hierarchy (there is a class B which extends A).
However, when I send the request from my VC# client, and get the response
(verified on the wire), the VC# code returns only null, unless the returned
type is actually listed as A. Shouldn't it be able to recognize that
something of type B is actually also of type A?
Thanks!
have a base class A and a subclass B. My web services server exposes a SOAP
service that returns an object of type A. The actual returned type is B (or
C or any of a bunch of different subclasses of A). The code generated by VC#
seems to know about the class hierarchy (there is a class B which extends A).
However, when I send the request from my VC# client, and get the response
(verified on the wire), the VC# code returns only null, unless the returned
type is actually listed as A. Shouldn't it be able to recognize that
something of type B is actually also of type A?
Thanks!