Webservice expose a complex type to the client in wsdl?

I've faced the same problem, and the only thing I found was to have a method that exposed the type (albeit I needed one in the long run).

I've faced the same problem, and the only thing I found was to have a method that exposed the type (albeit I needed one in the long run). The problem is that the wsdl has to contain the type in order that the properties of B are known on client side, otherwise you cannot ever use B client side. The wsdl for B will include the fact that it inherits A.In otherwords on client side your object really is a A - as only public properties are serialized there's no difference between an A or a B if the webmethod passes an A.

Thanks for your reply, and concerning 'my object is really A' on client side, not accurate, because my "B" has public methods that A doesn't have. – LolaRun Jan 27 '11 at 16:10 That would only be the case where the B class has its full type def available on client side (is this the case? ).

If its passed from the WSDL then methods are not described, only public properties. – Jon Egerton Jan 27 '11 at 17:39 B is not available on the client side at all. And that's what I want to do.

– LolaRun Jan 28 '11 at 8:20.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions