PrepAway - Latest Free Exam Questions & Answers

Category: 70-513 (v.1)

Exam 70-513: TS: Windows Communication Foundation Development with Microsoft .NET Framework 4 (update June 30th, 2014)

How can this be achieved?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is configured to accept messages that are encrypted and signed.
There is a client PassGuideClient that is using PassGuideService.
PassGuideClient is not working well. It is not receiving proper responses from PassGuideService.
To troubleshoot this problem you need to verify that the messages from PassGuideClient are
encrypted and signed. You would need to enable logging.
Furthermore, you need to check the content of each message body before it is deserialized to a
.NET object.
How can this be achieved?

DRAG DROP
Exhibit:
Opening System.ServiceModel.ServiceHost/8423414
Get configuration section.
Get configuration section.
MSMQ detected successfully.
Throwing an exception. Error.
Failed to open System.ServiceModel.ServiceHost Warning
Faulted to System.ServiceModel.ServiceHost Warning
ServiceHost faulted
Message: Binding validation failed because the binding’s MsmqAuthenticationMode property is set
to WindowsDomain but MSMQ is installed with Active Directory integration disabled.
The channel factory or service host cannot be opened.
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService has some run-time problems.
SvcTraceviewer.exe is used to retrieve tracing information. Parts of this information is being
displayed in the exhibit.
You are required to determine where the determine where the error occurred.
You must also recommend what is the best action to take.

Which code should you use?

DRAG DROP
Contract exhibit:
[ServiceContract]
public interface IHelloService
[OperationContract]
[WebGet(UriTemplate =“helloname={name}”)]
string PassGuideHello(string name);
}
Class exhibit:
public class HelloService: IHelloService
{
public string PassGuideHello(string name)
{ return “Hi there “ + name;

}
}
Hosting code exhibit:
WebServiceHost svcHost = CreateHost();
svcHost.Open();
Console.ReadLine();
SrvHost.Close();
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract of PassGuideService, the implementation, and self-hosted service hosting code are
displayed in separate exhibits.
A single endpoint, at http://PassGuide:7500/HelloService, is used for the implementation of CreateHost.
Which code should you use?

Which code should be used?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is selfed-hosted within a console application.
PassGuideService is implementing the DataAccess contract.
The PassGuideApplication namespace includes a definition of the DataAccess contract.
A ServiceHost instance must first be created and then be assigned to a host variable.
The service host must be intantiated.
Which code should be used?

Which attribute should be added to the class implementation?

DRAG DROP
There is a WCF (Windows Communication Foundation) service application PassGuideApp.
PassGuideApp is required to provide service to a heavy client request load, even simulatanous
requests. Stateful conversation must be provided for each ensure subsequent individual client
request.
Which attribute should be added to the class implementation?

How should the ServiceContract be tweaked to achieve is?

ServiceContract Exhibit:
Your service has the rollowing service contract.
[ServiceContract]
public class PassGuideService {
[OperationContract]
public Boolean PassGuideConfirm(string PhoneNumber, double wage, integer EmployeeNumber)
{ }
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise.
The serviceContact of PassGuideService is displayed in the exhibit.
Method PassGuideConfirm, when executed, must be participate transperentally in existing
transactions.Furthermore, when there is no existing transaction, a new transaction must be
created.
How should the ServiceContract be tweaked to achieve is?

Which contract should PassGuideService have?

DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
The clients and the service that uses PassGuideService use NetTcpBinding (transaction flow
enabled).
Assuming that the operations PassGuideOP1 and PassGuideOP2 are called within the same
client session, you need to enforce that they are executed within the same transaction context.
Which contract should PassGuideService have?

You need to tweak the code in order to make it work

Contract exhibit:
[ServiceContract(CallbackContract typeof(INameService))]
public interface IGreetingSennce
{
[OperationContract]
string GetMessage0,
}

[ServiceContract]
public interface INameService
{
[OperationContract]
string GetName();
}
IGreetingService interface exhibit:
public class GreetingService IGreetingService
{
public string GetMessage()
{
INameService clientChannel OperationContext Current.GetCallbac kChannel
<INameService>;
using clientName = clientChanne[GetName()];
return String.Format(“Hi there {0}, clientName);
}}
Hosting code exhibit:
ServiceHost host = new ServiceHost(typeof(GreetingService));
NetTcpBinding binding = new NetTcpBinding(SecurityMode.None);
host Add ServiceEndpoint(PassGuideAppIGreetingService”,
binding, net.tcp:localhost = “96374″);
host Open();
INameService interface exhibit:
class NameService INameService
{

string name;
public NameService(string name)
{
this.name = name;
}
public string GetName()
{
return name;
}}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is self-hosted.
The implementations of contracts, the IGreetingService interface, the hosting code, and the
INameService interface are all being displayed in the exhibits.
At the moment the above code fails at line “return String.Format(“Hi there {0}, clientName);”.
You need to tweak the code in order to make it work.
What should you do? (select three)
Use code…


Page 5 of 15« First...34567...10...Last »