Intercepting and Modifying SOAP Packets

As it happens, you can. The proxy source code that WSDL.exe or Visual Studio .NET provides is nothing more than that—source code. As with any source code that you write, you are free to make modifications.

NOTE

That doesn't mean that the modifications you make are safe from automated revision. Because a tool created the proxy source code, the same tool can overwrite any by-hand changes that you make if you regenerate the proxy source file for some reason. Be sure to save a copy of the edited/modified file if you need to re-create the proxy source code. You'll certainly lose your edits if you don't. But, as mentioned, do you change proxy source code that often?

Listing 7.8 shows you the C# source code created ...

Get Applied SOAP: Implementing .NET XML Web Services now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.