473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ABout overloading Deserialize method

Hello,

I would like to know if one can overload
System.Xml.Serialization.XmlSerializer.Deserialize (XmlReader xmlReader)
method?

Thanks,
Parag.
Nov 23 '05 #1
3 1390
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.Serialization.XmlSerializer.Deserialize (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*******@NOSPAM.geniant.com> wrote in message
news:14**********************@msnews.microsoft.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.Serialization.XmlSerializer.Deserialize (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*******@NOSPAM.geniant.com> wrote in message
news:14**********************@msnews.microsoft.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.Serialization.XmlSerializer.Deserialize (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
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...
2
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>...
4
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.