473,734 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ABout overloading Deserialize method

Hello,

I would like to know if one can overload
System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader xmlReader)
method?

Thanks,
Parag.
Nov 23 '05 #1
3 1405
Hello Parag,
Yes you can create a custom serializer and *override* the Deserialize
method. Also note it wouldnt plug into the .net framework, you'd have to
manually instantiate and use the custom serializer to use it.

[0] - http://primates.ximian.com/~lluis/bl...entry.php?id=6

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello,

I would like to know if one can overload
System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader) method?

Thanks,
Parag.

Nov 23 '05 #2
Hello Dilip,

The reason I wanted to overload the Deserialize method is because, my .Net
client consuming Axis web service, is not able to deserialize some
complexType response objects. I can see the response on the wire is sent
properly.

But I get error like this:
There is an error in XML document (3, 82).

And the position in the SOAP response suggests that the error comes at the
starting of second desired response node.

Let me know, if anyone's had such issue.
Thanks,
Parag.

"Dilip Krishnan" <dk*******@NOSP AM.geniant.com> wrote in message
news:14******** **************@ msnews.microsof t.com...
Hello Parag,
Yes you can create a custom serializer and *override* the Deserialize
method. Also note it wouldnt plug into the .net framework, you'd have to
manually instantiate and use the custom serializer to use it.

[0] - http://primates.ximian.com/~lluis/bl...entry.php?id=6

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello,

I would like to know if one can overload
System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader) method?

Thanks,
Parag.


Nov 23 '05 #3
Hello Parag,
You need to check if that conforms the schema and if yr response doesnt
contain invalid characters. Also there could be potential problems if the
msg is rpc/encoded
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello Dilip,

The reason I wanted to overload the Deserialize method is because, my
.Net client consuming Axis web service, is not able to deserialize
some complexType response objects. I can see the response on the wire
is sent properly.

But I get error like this:
There is an error in XML document (3, 82).
And the position in the SOAP response suggests that the error comes at
the starting of second desired response node.

Let me know, if anyone's had such issue.
Thanks,
Parag.
"Dilip Krishnan" <dk*******@NOSP AM.geniant.com> wrote in message
news:14******** **************@ msnews.microsof t.com...
Hello Parag,
Yes you can create a custom serializer and *override* the Deserialize
method. Also note it wouldnt plug into the .net framework, you'd have
to
manually instantiate and use the custom serializer to use it.
[0] - http://primates.ximian.com/~lluis/bl...entry.php?id=6

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hello,

I would like to know if one can overload
System.Xml.Seri alization.XmlSe rializer.Deseri alize(XmlReader
xmlReader) method?

Thanks,
Parag.

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1825
by: Bob Rock | last post by:
Hello, I've got an xml stream that I'd need to deserialize into an instance of a given class A. I'd like to create an instance method on class A (method Deserialize) that takes this XML stream as input and deserializes it "into itself" ... in other words I'd like it to "fill" the instance of class A on which the method has been called instead of returning another instance of class A. The code below gives a good idea of what I'd like:
2
9539
by: Greg | last post by:
I'm writing a class in C# .... I have a collection calls Reports made up of Report objects. I'm trying to deserialize an XML file that looks like : <Reports> <Report> <Title>some title</Title> <Notes> some notes </Notes> </Report> <Report> blah blah blah </Report>
4
1591
by: Bob Rock | last post by:
Hello, I've got an xml stream that I'd need to deserialize into an instance of a given class A. I'd like to create an instance method on class A (method Deserialize) that takes this XML stream as input and deserializes it "into itself" ... in other words I'd like it to "fill" the instance of class A on which the method has been called instead of returning another instance of class A. The code below gives a good idea of what I'd like:
4
328
by: Bob Rock | last post by:
Hello, I've got an xml stream that I'd need to deserialize into an instance of a given class A. I'd like to create an instance method on class A (method Deserialize) that takes this XML stream as input and deserializes it "into itself" ... in other words I'd like it to "fill" the instance of class A on which the method has been called instead of returning another instance of class A. The code below gives a good idea of what I'd like:
0
8946
marktang
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...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
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...
1
6735
isladogs
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...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3261
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
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.