G
Guest
I posted a similar question last week and got an answer but its not working.
I have three projects in a solution. Project A is a library. Project B is a
web service. Project C is a windows app.
Project B and C make reference to project A in order to share the same
library of classes. There is an abstract class in A and class that derives
from the abstract one.
Project B references project A and has a web method who's return type is the
class in project A that derives from an abstract class.
When Project C calls the web method in project B nothing comes back. This
should not be the case and I have verified via debug that the object is
instantiated, populated with values, but when the return statement is
executed the caller gets a null object back.
I also started the solution in debug with Project A (web service) as the
start up app. I invoked the web method and recieved xml output that has no
child nodes...in other words NOTHING but just before that the object to be
returned again was instantiated and had values.
I have tried using XmlInclude in various locations to no avail. Im not quite
sure how to get this thing working.
Someone showed me the following, that does not do exactly what I'm doing.
Instead the example has everythign within the web service itself. This is not
how my classes are encapsulated. Mine are split out as I described
above....shared library.
http://msdn.microsoft.com/library/d...erializationxmlincludeattributeclasstopic.asp
Can anyone help me out here? I'm getting a bit desparate as the deadline
approaches. Thanks!
I have three projects in a solution. Project A is a library. Project B is a
web service. Project C is a windows app.
Project B and C make reference to project A in order to share the same
library of classes. There is an abstract class in A and class that derives
from the abstract one.
Project B references project A and has a web method who's return type is the
class in project A that derives from an abstract class.
When Project C calls the web method in project B nothing comes back. This
should not be the case and I have verified via debug that the object is
instantiated, populated with values, but when the return statement is
executed the caller gets a null object back.
I also started the solution in debug with Project A (web service) as the
start up app. I invoked the web method and recieved xml output that has no
child nodes...in other words NOTHING but just before that the object to be
returned again was instantiated and had values.
I have tried using XmlInclude in various locations to no avail. Im not quite
sure how to get this thing working.
Someone showed me the following, that does not do exactly what I'm doing.
Instead the example has everythign within the web service itself. This is not
how my classes are encapsulated. Mine are split out as I described
above....shared library.
http://msdn.microsoft.com/library/d...erializationxmlincludeattributeclasstopic.asp
Can anyone help me out here? I'm getting a bit desparate as the deadline
approaches. Thanks!