Beginner question: objects - 06-19-2006 , 09:04 AM
I would like to pass a generic System.Object to a web method. The actual
object will be of a derived class and will not always be the same class.
However, in my initial attempt I got errors saying "<specifc object type>
not expected." Are Web services unable to "ignore" the object type when
passing things around? If so, I may need to resort to Remoting instead
(assuming THAT will work).
Re: Beginner question: objects - 06-19-2006 , 03:58 PM
"Jeff Johnson" <i.get (AT) enough (DOT) spam> wrote
in the serialization process the program (Web service or Remoting server)
needs to know about the concrete class that the object is based on and that
just isn't an option in my case. I've gone a different route, which is to
have the client serialize the object itself (I was hoping to avoid this) and
then simply pass the Web service a byte array. It's too bad there isn't an
|Thread Tools||Search this Thread|