serialization problem for Custom class using WSE 2.0 SP2



ravi dasari
07-09-2005, 11:54 PM
I've created class A that includes collection of another class B. I'm trying
to use class A with webservice. I've created function that returns class A.
When I try to invoke the function in browser it gives me status 500. When I
try to use that service with my application it also fails with “Server was
unable to process request. --> There was an error generating the XML
document. --> The type Namespacename.A was not expected. Use the XmlInclude
or SoapInclude attribute to specify types that are not known statically.”
error. I am getting this problem while trying to encrypt the response message
using WSE 2.0 SP2.


serialization problem for Custom class using WSE 2.0 SP2