![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |