1. Question: You want to create a new web service that will expose multiple methods that are meant to work with user-specific data via a transaction. You decide to use ASP.NET session state to manage the user’s context on the server between web service requests. How should you define your web service?

    A
    Define a class that inherits from WebServiceAttribute.

    B
    Define a class that inherits from WebService.

    C
    Define a class that inherits from WebMethodAttribute.

    D
    Do not inherit from a base class. Hosting the web service in ASP.NET is sufficient.

    Note: Not available
    1. Report
  2. Question: You want to consume an existing web service from your ASP.NET website. What actions should you take? (Choose all that apply.)

    A
    Use the Add Reference dialog box to set a reference to the WSDL file that contains the web service.

    B
    Use the Add Web Reference dialog box to point to the URL of the web service.

    C
    Write a method in your website that has the same function signature as your web service. Do not implement this method. Instead, mark it with the WebMethod attribute.

    D
    Call a proxy class that represents your web service.

    Note: Not available
    1. Report
  3. Question: You need to secure your web service. The service will be accessed over the Internet by multiple systems of different types. Authentication information should be secured. You want to trust only those clients who have been verified as trusted. What type of security should you consider?

    A
    Windows Basic

    B
    Windows Digest

    C
    Client certificates

    D
    Custom SOAP headers

    Note: Not available
    1. Report
  4. Question: You want to create a web service and call it from client-side script. What actions should you take? (Choose all that apply.)

    A
    Add the ScriptService attribute to the web service class.

    B
    Write client-side JavaScript to call your service through a proxy object.

    C
    Add a ScriptManager class to your webpage. Set the ServiceReference to point to the ASMX web service.

    D
    Make sure that your webpage and service are in the same domain.

    Note: Not available
    1. Report
  5. Question: You want to write a WCF service application. You intend to host the service in IIS and use ASP.NET to build the service. What type of project should you create?

    A
    A WCF Service library

    B
    A WCF service application

    C
    An ASP.NET Web Service application

    D
    A Windows Service application

    Note: Not available
    1. Report
  6. Question: You define your own custom type to be used with your WCF service. This type represents a product at your company. It contains several public properties. You want to expose this type so that it can be serialized and defined by an XML Schema Definition (XSD) schema. What actions should you take? (Choose all that apply.)

    A
    Mark your product class with the DataContract attribute.

    B
    Mark your product class with the ServiceContract attribute.

    C
    Mark the public members of your product class with the OperationContract attribute.

    D
    Mark the public members of your product class with the DataMember attribute.

    Note: Not available
    1. Report
  7. Question: You want to expose a portion of your data model as a service by using OData. Which actions should you take? (Choose all that apply.)

    A
    Create a service class that inherits from DataService

    B
    Create a service class that inherits from DataContract.

    C
    Indicate what the service should expose inside the InitializeService method.

    D
    Indicate what the service should expose inside the Init method.

    Note: Not available
    1. Report
  8. Question: You want to write a client to work with a WCF Data Service. Which actions should you take? (Choose all that apply.)

    A
    Set a web reference to the data service.

    B
    Set a service reference to the data service.

    C
    Create an instance of the data service proxy and pass a URI object to point to the data service.

    D
    Use the classes in System.Data.Services.Client to write code to access the data exposed by the service.

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd