c# - Access inherited class in a web service -


i have web service project contains 3 classes:

  • 1 abstract public class (baseclass.cs)
  • and 2 public classes inherit (inheritedclassa.cs , inheritedclassb.cs)

in project (test.csproj), added web reference above mentioned web service, , named dal.

when i'm trying access example "baseclass" test project, write test.dal.baseclass, , recognizes it.

when try same thing access of inherited classes (inheritedclassa , inheritedclassb) test project doesn't work.

you need tell service use classes inheritedclassa , inheritedclassb either returning instances of classes in methods, or use xmlinclude include unused classes in reference. make sure update web reference after make of these changes.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -