What should you do to use a custom service host to host the WCF service in Windows Activation Services ?
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5
You need to use a custom service host to host the WCF service in Windows Activation Services (WAS).
What should you do?
What should you do to programmatically add the base address to the service?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service will be hosted in a managed Console application.
The service endpoint has an address that is relative to the base address of the service.
You need to programmatically add the base address to the service.
What should you do?
What should you do to successfully enable message logging.?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You want to enable message logging.
You add the following code fragment to the service configuration file.
<System.diagnostics>
<sources>
<source name="System.ServiceModel.MessageLogging">
<listeners>
<add name="messages" Type="System.Diagnostics.XmlWriterTraceListener" />
</listeners>
</source>
</sources>
</System.diagnostics>
You receive an exception.
You need to successfully enable message logging. What should you do?
What should you do to meet the following criteria can access the RemoveOrder method?
You are creating a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service will validate certificates to authorize client applications.
You write the following code segment.
class Store: IStore
{
public void RemoveOrder(int ordered){ }
}
You need to ensure that only those client applications that meet the following
criteria can access the RemoveOrder method:
"AdminUser" is the subject in the client certificate.
"1bf47e90fD0acf4c0009cda65eDaadcf1cedd592" is the thumbprint in the client certificate.
What should you do?
What should you do to generate the required proxy?
You create a Windows Communication Foundation (WCF) application by using Microsoft .NET Framework 3.5.
The desktop client calls the WCF service to query its status. The call can take up to 10 seconds to complete.
The client application must remain responsive when querying the service.
You need to generate the required proxy. What should you do?
What should you do to ensure that when the server starts, the service starts and continues to run?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service uses the net.tcp transport.
You need to ensure that when the server starts, the service starts and continues to run.
What should you do?
What should you do to ensure that clients authenticate by using a token?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The client applications are unable to use SSL.
You need to ensure that clients authenticate by using a token provided by a Security Token service (STS).
What should you do?
What should you do toaccomplish this goal without interrupting the service?
You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
The WCF service accepts service requests from different partner applications.
One of the partner applications occasionally receives faults.
You need to identify why the service is generating faults.
You must accomplish this goal without interrupting the service.
What should you do?
Which configuration setting should you use?
You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You need to configure a single service endpoint with the following logical and physical addresses:
Logical: http://localhost:8080/internal
Physical: http://localhost:8080/examservice
Which configuration setting should you use?
Which structure will the data contract produce?
You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You define the following data contract.
[DataContract(Namespace="urn:Company.Project")]
public class Person {
[DataMember]
public string FirstName;
[DataMember]
public string LastName;
[DataMember]
public IList<Person> Children;
[DataMember(Name="DateOfBirth")]
public DateTime Birthday;
}
You need to identify the structure of the resulting XML instance document.
Which structure will the data contract produce?