Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / July 2004

Tip: Looking for answers? Try searching our database.

How to do tasks before and after serialization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shrine - 16 Jul 2004 13:14 GMT
I am using serialization in my webservice. I want to do some tasks before and after serialization.
How to do that. Can anyone explain me
Signature

Bye,
Shrine

John Paul. A - 16 Jul 2004 13:35 GMT
Dear Shrine,
You can use SOAP Extensions. A beautiful concept in .NET.

SOAP extensions enable you to access and modify the SOAP messages that are exchanged between the client and the XML Web service. For example, you can use SOAP extensions to validate the SOAP message before it reaches the XML Web service and change the SOAP message after validation so that the XML Web service receives a valid SOAP request. You can also implement an encryption or compression algorithm that can be executed within an existing XML Web service by using SOAP extensions.

It is having 4 methods...

AfterDeserialize
This member represents the stage just after a SoapMessage is deserialized from a SOAP message into an object.

AfterSerialize
This member represents the stage just after a SoapMessage is serialized but before the SOAP message is sent over the wire.

BeforeDeserialize
This member represents the stage just before a SoapMessage is deserialized from the SOAP message that is sent over the network.

BeforeSerialize
This member represents the stage just before a SoapMessage is serialized.

You just dig this, you will get more and you can achieve your task shortly.

Signature

Thanks & Regards,
John Paul. A
MCP

> I am using serialization in my webservice. I want to do some tasks before and after serialization.
> How to do that. Can anyone explain me

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.