Individual Configuration Options


Beyond configuring the client and server to actually use WSE, you might also need to configure some aspects of the behavior of the filters in the configuration files beyond what you can do with SoapContext objects.

All of the configuration details for the filters are required to be in a <microsoft.web.services> configuration element, and any configuration options you specify will apply equally to both input and output filters. This is not a standard section in the configuration files, so you must add details of the section to the configuration file (either web.config or an application configuration file) before you can use it:

<configuration>   <configSections>     <!-- the TYPE attribute must be on one line  -->     <section name="microsoft.web.services"      type="Microsoft.Web.Services.Configuration.WebServicesConfiguration,Π     Microsoft.Web.Services, Version=1.0.0.0, Culture=neutral,Π     PublicKeyToken=31bf3856ad364e35" />   </configSections> </configuration>

Now you can add the <microsoft.web.services> element to the configuration file and populate this with the details required by the individual filters. We’ll cover these details shortly, when we look at the specifics of the filters.




Programming Microsoft. NET XML Web Services
Programming MicrosoftВ® .NET XML Web Services (Pro-Developer)
ISBN: 0735619123
EAN: 2147483647
Year: 2005
Pages: 172

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net