I have authored a web service using ASP 2.0. The web services return objects
that use generics and that also contain circular references.
Programmaticall y, 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
XmlSerializatio n 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.
~!#@~ 2 2825
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: I have authored a web service using ASP 2.0. The web services return objects that use generics and that also contain circular references.
Programmaticall y, 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 XmlSerializatio n 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. ~!#@~
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: 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: I have authored a web service using ASP 2.0. The web services return objects that use generics and that also contain circular references.
Programmaticall y, 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 XmlSerializatio n 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. ~!#@~
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven Bethard |
last post by:
I promised I'd put together a PEP for a 'generic object' data type for
Python 2.5 that allows one to replace __getitem__ style access with
dotted-attribute style access (without declaring another class). Any
comments would be appreciated!
Thanks!
Steve
----------------------------------------------------------------------
|
by: Ivo Bronsveld |
last post by:
All,
I have quite a challenging task ahead of me. I need to write an object model
(for code access) based on a schema, which cannot be made into a dataset
because of it's complexity.
So I created a couple of objects and serializing it into XML based upon the
schema works perfectly.
The XML / Schema looks something like this:
|
by: Jon Davis |
last post by:
The garbage handler in the .NET framework is handy. When objects fall out of
scope, they are automatically destroyed, and the programmer doesn't have to
worry about deallocating the memory space for those objects. In fact, all
the programmer has to worry about is the total sum of objects loaded into
RAM at any known point. Memory leaks are not a problem.
.... So one would like to think. The reality is that delegates and event...
|
by: Tobias Zimmergren |
last post by:
Hi, just wondering what serializing really is, and howto use it?
Thanks.
Tobias
__________________________________________________________________ Tobias
ICQ#: 55986339 Current ICQ status: + More ways to contact me
__________________________________________________________________
|
by: Frank Rizzo |
last post by:
I have a circular reference between 2 classes in the same project (i.e.
each class refers to the other). The app runs fine and I am seeing no
issues, which kind of surprised me.
Are there any issues that I am not seeing (performance wise or garbage
collection wise) with circular references?
Thanks.
| |
by: danny.dion |
last post by:
Hi ! I have a question about JScript :
I have an object class wich dynamically creates a control in the page.
Then it binds an event to that control, pointing on one of its methods
(the object's). This method, in turn, calls other of its own
methods...
The binding seems ok and the change() method does get called. But I
get an error message (This object does not support this property or
method) when I call other methods on the...
|
by: Nemisis |
last post by:
Hi everyone, sorry if this post gets really long, i just wanna make
sure i fully explain what i am trying to do. I am new to OOP and .net
2.0, so if this is obvious, i am sorry.
I have wrote a data access layer, which contists of separate
servicebases for each object within my database.
CompanyDataService (contains CRUD methods)
ContactDataService (contains CRUD methods)
|
by: =?ISO-8859-1?Q?=22Andr=E9s_G=2E_Aragoneses_=5B_kno |
last post by:
Hello. I have this kind of object:
class classA
{
int x;
classA z;
public int X
{
get { return this.x; }
|
by: =?Utf-8?B?UGF1bCBIYWxl?= |
last post by:
Moving all User Controls to a single directory has solved my problem - Thanks
Eliyahu.
That said, I still got one Circular ref error yesterday, rebuilt again and
the build was fine? Far far better than the amount of errors I was originally
getting on builds before I consilidated by UC's though :-)
"Paul Hale" wrote:
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |