Implementing Web services enhancements (WSE) 3.0

These questions are based on Cert-70-554VB – MSCert: UPGRADE – MCSD Microsoft .NET Skills to MCPD Enterprise Application Developer Using the Microsoft .NET Framework: Part 2 – Section 1 Microsoft Developer Self-Test Software Practice Test.


Objective: Implementing Web services enhancements (WSE) 3.0
SubObjective: Enable WSE in client and server applications


Single Answer, Multiple Choice


As an enterprise application developer, you want to enable WSE 3.0 on an existing Web service. This Web service has never been WSE enabled.


What should you do?



  1. Add a reference to the Microsoft.Web.Services3 assembly and the following to the web.config:
    <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>


  2. Add a reference to the Microsoft.Web.Services3 assembly and the following to the web.config:
    <system.web>
      <webServices>
                    <soapServerProtocolFactory               type=”Microsoft.Web.Services3.WseProtocolFactory,
                      Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
                      PublicKeyToken=31bf3856ad364e35″ />
      </webService>
    </system.web>


  3. Add a reference to the Microsoft.Web.Services3 assembly and the following to the web.config:
    <soapExtensionTypes>
                    <add type=”Microsoft.Web.Services3.WebServicesExtension,
                      Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
                      PublicKeyToken=31bf3856ad364e35″ priority=”1″ group=”0″ />
    </soapExtensionTypes>


  4. Add a reference to the Microsoft.Web.Services3 assembly and have the Web service inherit from the WebServicesProtocol class.

Answer:
B. Add a reference to the Microsoft.Web.Services3 assembly and the following to the web.config:
<system.web>
  <webServices>
                <soapServerProtocolFactory               type=”Microsoft.Web.Services3.WseProtocolFactory,
                  Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral,
                  PublicKeyToken=31bf3856ad364e35″ />
  </webService>
</system.web>


Tutorial:
To enable WSE 3.0 for a Web service, you should add a reference to the Microsoft.Web.Services3 assembly and the following to the web.config:


<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…


cmadmin

ABOUT THE AUTHOR

Posted in Uncategorized|

Comment:

Powered by WebDesk