HighTechTalks DotNet Forums  

Serialization-deserialization

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Serialization-deserialization in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default Serialization-deserialization - 04-16-2005 , 06:32 AM






Hi.

As you know, when a Webmethod is executed the framework make a
serialization of the class to be returned and at the client-end there
is a deserialization that recreate the class there.

My question is:

It's is possible to get (in a webclient application) the file received
before it is deserialized?. In other word I am interested to get the
XML file that contains the informations answered from the webservice
(the same file that the webservice show me when I invoke the test of
the webservice with a browser)

How I can solve this need? Eventually, if it's impossible to get that
file, how I can serialize again and build the XML file with the
contents of the object I will create with the informations received?

Thank you and greetings from Italy. Franco.

Reply With Quote
  #2  
Old   
Brock Allen
 
Posts: n/a

Default Re: Serialization-deserialization - 04-16-2005 , 07:51 AM






Yes you can. Look into the SoapExtension class -- you need to derive from
this to build preprocessing and postprocessing to the SOAP message as it
travels in and out of the WebMethod. Here's an article on it:

http://msdn.microsoft.com/msdnmag/is...n/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen



Quote:
Hi.

As you know, when a Webmethod is executed the framework make a
serialization of the class to be returned and at the client-end there
is a deserialization that recreate the class there.

My question is:

It's is possible to get (in a webclient application) the file received
before it is deserialized?. In other word I am interested to get the
XML file that contains the informations answered from the webservice
(the same file that the webservice show me when I invoke the test of
the webservice with a browser)

How I can solve this need? Eventually, if it's impossible to get that
file, how I can serialize again and build the XML file with the
contents of the object I will create with the informations received?

Thank you and greetings from Italy. Franco.





Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: Serialization-deserialization - 04-17-2005 , 01:39 AM



I will look there, but reading the article I think that I will be not
able to realize my need soon; unfortunately my know-how is not yet
ready to understand that. I must study a lot of things first! Anyway
many thanks for help, Brock. Greetings from Franco.



Brock Allen <ballen (AT) NOSPAMdevelop (DOT) com> wrote

Quote:
Yes you can. Look into the SoapExtension class -- you need to derive from
this to build preprocessing and postprocessing to the SOAP message as it
travels in and out of the WebMethod. Here's an article on it:

http://msdn.microsoft.com/msdnmag/is...n/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen



Hi.

As you know, when a Webmethod is executed the framework make a
serialization of the class to be returned and at the client-end there
is a deserialization that recreate the class there.

My question is:

It's is possible to get (in a webclient application) the file received
before it is deserialized?. In other word I am interested to get the
XML file that contains the informations answered from the webservice
(the same file that the webservice show me when I invoke the test of
the webservice with a browser)

How I can solve this need? Eventually, if it's impossible to get that
file, how I can serialize again and build the XML file with the
contents of the object I will create with the informations received?

Thank you and greetings from Italy. Franco.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.