I have a WebMethod that is returning a custom class, but am having a
problem with the SOAP serialization. Everything actually works fine, except
the root node of the serialized class gets changed to match the WebMethod.
So, where I have my class...
Public Class MyCustomClass
....in normal serialization, it all comes out the way I want,...
..........(xml serialized properties)
But my WebMethod...
<WebMethod(Description:="Returns a custom class")> _
Public Function MyMethod() As MyCustomClass
...(perform object instantiation and set properties)
gives me in the SOAP body...
........(xml serialized properties)
I'm trying to apply various XmlRoot and SoapElement attributes to the
WebMethod, but VS keeps telling me that those attributes are not valid on
this declaration type. What am I missing??
|All times are GMT. The time now is 12:37 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.