googlebot
Buy Differin Gel Online
ADVERTISEMENT

Learn About MCSD Microsoft .NET Skills

  By Certification Magazine —

1 | 2 | 3 | 4 | 5 |

<system.web>
  <webServices>
    <soapServerProtocolFactory       type="Microsoft.Web.Services3.WseProtocolFactory,
      Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
      PublicKeyToken=31bf3856ad364e35" />
  </webService>
</system.web>

This configures the WseProtocolFactory class to intercept SOAP messages to process the Web-service specifications that WSE 3.0 supports. The WseProtocolFactory class is located within the Microsoft.Web.Services3 assembly, so you must also add a reference to that assembly. Also, if you need to configure WSE 3.0 through configuration elements, you should also add the following to the web.config file:

<configSections>
    <section name="microsoft.web.services3"
      type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration,
      Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
      PublicKeyToken=31bf3856ad364e35" />
</configSections>

The WSE Settings 3.0 Tool will automatically add this section and the library reference when enabling WSE 3.0. To add the soapServerProtocolFactory element automatically, you can check the Enable WSE 3.0 Soap Protocol Factory checkbox.

You should not add the section element to the configSections section of the web.config because this will only enable WSE 3.0 configuration elements in the web.config. This will not enable the Web service to intercept SOAP messages to process the Web-service specifications that WSE 3.0 supports. The soapServerProtocolFactory element should be added to the webService section to enable WSE 3.0 for the Web service.

You should not add the soapExtensionTypes element to the web.config because this is how WSE 2.0 is configured, not WSE 3.0. Unlike WSE 2.0 that was implemented as a SOAP extension, WSE 3.0 uses a custom SOAP protocol rather than the default SOAP protocol normally used in ASP.NET 2.0.

The soapServerProtocolFactory element enables a developer to override the default SOAP protocol with a custom implementation. The WseProtocolFactory class provides manages the custom WseProtocol object in WSE 3.0. Although WSE 3.0 still uses a SOAP extension for some functionality, the WseProtocol injects the WseProtocolExtension SOAP extension dynamically at startup.

Thus, no soapExentsionsTypes section is necessary when using WSE 3.0 because the soapServerProtocolFactory element and specified WseProtocolFactory class configure all of the required settings at runtime.

You should not have the Web service inherit from the WebServicesProtocol class because there is no such class in the .NET Framework. The WebServicesClientProtocol is required by the Web client proxy to enabled WSE 3.0, not the Web service. You should add the soapServerProtocalFactory element to the web.config file instead.

Reference:
MSDN Library > .NET Development > Web Services > Programming with WSE > Creating a WSE-enabled Web Service > Web Services Enhancements 3.0 > How to: Configure a Web Service to Use WSE

1 | 2 | 3 | 4 | 5 |
Viewed 8817 times.
SPONSORED LINKS
gps systems used