Connecting Tech Pros Worldwide Forums | Help | Site Map

Serializing generic objects with circular references

Lapu-Lapu
Guest
 
Posts: n/a
#1: Jun 13 '06
I have authored a web service using ASP 2.0. The web services return objects
that use generics and that also contain circular references.

Programmatically, everything works well, as long as you use the web service
proxy client generated by visual studio. However, the default test harness
provided by the .asmx file errors out because it seems to use
XmlSerialization and cannot handle circular references.

I understand that the XmlSerializer cannot handle circular references, while
the SoapFormatter cannot handle generics. How does the asmx framework
serialize and deserialize such objects?

Thanks in advance.
~!#@~


Josh Twist
Guest
 
Posts: n/a
#2: Jun 13 '06

re: Serializing generic objects with circular references


The asmx framework uses the XmlSerializer, here are some pointers:

http://msdn.microsoft.com/msdnmag/is...rv/?frame=true
http://msdn.microsoft.com/library/en...howwebmeth.asp

Josh
http://www.thejoyofcode.com/


Lapu-Lapu wrote:[color=blue]
> I have authored a web service using ASP 2.0. The web services return objects
> that use generics and that also contain circular references.
>
> Programmatically, everything works well, as long as you use the web service
> proxy client generated by visual studio. However, the default test harness
> provided by the .asmx file errors out because it seems to use
> XmlSerialization and cannot handle circular references.
>
> I understand that the XmlSerializer cannot handle circular references, while
> the SoapFormatter cannot handle generics. How does the asmx framework
> serialize and deserialize such objects?
>
> Thanks in advance.
> ~!#@~[/color]

Lapu-Lapu
Guest
 
Posts: n/a
#3: Jun 13 '06

re: Serializing generic objects with circular references


I made a mistake, I wrote ASP 2.0, I meant ASP.NET 2.0. The articles below
are great but they don't help me figure out how asmx framework handles object
graphs/messages that contain CIRCULAR REFERENCES combined with GENERICS. Thx.

"Josh Twist" wrote:
[color=blue]
> The asmx framework uses the XmlSerializer, here are some pointers:
>
> http://msdn.microsoft.com/msdnmag/is...rv/?frame=true
> http://msdn.microsoft.com/library/en...howwebmeth.asp
>
> Josh
> http://www.thejoyofcode.com/
>
>
> Lapu-Lapu wrote:[color=green]
> > I have authored a web service using ASP 2.0. The web services return objects
> > that use generics and that also contain circular references.
> >
> > Programmatically, everything works well, as long as you use the web service
> > proxy client generated by visual studio. However, the default test harness
> > provided by the .asmx file errors out because it seems to use
> > XmlSerialization and cannot handle circular references.
> >
> > I understand that the XmlSerializer cannot handle circular references, while
> > the SoapFormatter cannot handle generics. How does the asmx framework
> > serialize and deserialize such objects?
> >
> > Thanks in advance.
> > ~!#@~[/color]
>
>[/color]
Closed Thread


Similar .NET Framework bytes