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 remedied?

DRAG DROP
ContractExhibit:
Interface
[ServiceContract]
public interface IPassGuideService
{
[OperationContract]
void SaveEmployee(Employee person);
}
Binding exhibit:
NetTcpBinding binding new NetTcpBinding { TransactionFlow = true };
Client Call exhibit:
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{ IPassGuideService client = factoryCreateChannel();

client SaveEmployee(employee);
ConsoleWriteLine(
TransactionCurrentTransactionlnformation.
DistributedIdentifier);
tsComplete();
}
SaveEmployee Exhibit:
public void IPassGuideService SaveEmployee(Employee employee)
{ employee.Save();
ConsoleWriteLine(TransactionCurrentTransactionlnformation.
Distributedidentifier);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
The service and the client has the service contract displayed in the contract exhibit.
The binding of the service and the client is displayed in the binding exhibit.
The client call exhibit displays how the client calls PassGuideService.
The implementation of the PassGuideService SaveEmployee method is displayed in the
SaveEmployee Exhibit.
However, there is a problem. There is distributed identifier mismatch between the client and
PassGuideService.
How can this be remedied?

Which contract should be used?

DRAG DROP
There is a WCF (Windows Communication Foundation) solution for PassGuide.
You need to specify the contract complying to the following requirements:
PassGuideInitialize can always be called before PassGuideTerminate is called.
PassGuideSomething can only be called after PassGuideInitialize has been called.
PassGuideSomething cannot be called after PassGuideTerminate has been called.
PassGuideTerminate can only be called after PassGuideInitialize has been called.
Which contract should be used?

How should bind2 be defined and configured?

DRAG DROP
Hosting Code Exhibit:
ServiceHost host = new ServiceHost(typeof(CounterService));
NetTcpBinding bind1 =
new NetTcpBinding(SecurityMode None);
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind1, “net.tcp://localhost: 98765”);
host.Open0;
Bind2 exhibit:
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind2, “http:Illocalhost: 98765”);

There is a WCF (Windows Communication Foundation) self-hosted service PassGuideService.
PassGuideService provides a session-based counter.
PassGuideService is exposed over TCP.
The PassGuideService hosting code is being displayed in the exhibit.
PassGuideService must also be exposed over HTTP for external clients.
The session-counter must be able to perform over HTTP at it does over TCP.
How should bind2 be defined and configured?

How should this be achieved?

DRAG DROP
Soap envelope exhibit:
<s:Envelope xmlns:se’http://schemas.xmlsoporg/soap/enveloper’>
<s: Header>
<h:PassGuideID xmlns = “http:/www.PassGuide.com”>
9283
</h: PassGuideID>
</s:Header>
<s:Body>
<PassGuideStock xmlns=http://www.PassGuide.com”>
<ParticularID>1234 </ ParticularID >
</PassGuideStock>
</s: Body>
</s: Envelope>

The SOAP envelope in the exhibit must be generated.
How should this be achieved?

How can this be achieved?

DRAG DROP
PassGuideService Exhibit:
[ServiceContract]
public interface PassGuideService
{
[OperationContract]
DateTime GetPassGuideServiceTime;
}
There is a class PassGuideService.
PassGuideService is hosted within an ASP.NET application PassGuideApp.
PassGuideService implements the interface being displayed in the exhibit.
PassGuideApp must be tweaked so that the GetPassGuideServiceTime method returns the result
formatted as JSON when request url ends in /PassGuide.
How can this be achieved?

How can this be achieved?

Exhibit:
string void PassGuideDelete(string PassGuideId);
There is a WCF service PassGuideService.
PassGuideService implements restful manner operations.
The PassGuideDelete method is implemented as displayed in the exhibit.
When a client calls PassGuideService with the HTTP DELETE operation PassGuideService must
use this method.
How can this be achieved? Select two or three.

Which code should be used for the channel factory?

DRAG DROP
Exhibit:
<client>
<endpoint address=”nettcp://server/PassGuideService”
Binding=”netTcpBinding”
Contracts ” PassGuide.IPassGuideService”
name=”netTcp” />
<endpoint address=”net.pipe://localhost/PassGuideService”
Binding=”netNamedPipeBinding”
Contracts ” PassGuide.IPassGuideService”
Name=”netPipe” />
</client>

There is a WCF (Windows Communication Foundation) service client PassGuideServiceClient.
The system ServiceModel element of PassGuideServiceClient includes the XML element that is
being displayed in the exhibit.
There is a need of channel factory.
The channel factory should send messages to endpoint listening at
net.pipe://localhost/PassGuideService.
Which code should be used for the channel factory?


Page 7 of 15« First...56789...Last »