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)

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?

How should the client channed be implemented?

DRAG DROP
Exhibit:
[ServiceContract(CallbackContract = typeof(INameService))]
public interface IGreetingService
{
[OperationContract]
string PassGuideMessage();
}
[ServiceContract]
public intetface INameService
{
[OperationContract]
string PassGuideName();
}

There is a WCF (Windows Communication Foundation) solution PassGuideSol, which is using
some contracts being displayed in the exhibit.
Whenever the client uses PassGuideMessage on the service interface, the service uses the client
callback to call PassGuideName. Within the client the callback contract is implemented by the
NameService class.
The service callback must processed by an instance of NameService.
How should the client channed be implemented?

How can this be achieved?

DRAG DROP
Exhibit:
[ServiceContract]
public interface IDataService
[OperationContract]
string PassGuideData();
There is a WCF (Windows Communication Foundation) solution PassGuideSol, which is exposing
the contract being displayed in the exhibit.
At the moment calls to PassGuideData has a 10 seconds completion time.
Current client calls makes blocking calls to PassGuideData.
New clients must be allowed to make non-blocking calls to obtain data from PassGuideData.
At the same time the existing clients must not break.
How can this be achieved?

How can this be achieved?

DRAG DROP
Exhibit:
[ServiceContract]
public interface IDataAccessService
{
[OperationContract]
void PassGuidePut(string message)
[OperationContract]
[FaultContract(typeof(TimeoutFaultException))
[FaultContract(typeof(FaultException))]
string PassGuideSearch(string search);
}
There is a WCF (Windows Communication Foundation) service.
The service implements the contract being displayed in the exhibit.
Database timeouts causes PassGuideSearch to throw TimeoutFaultException exceptions.
Other issues that causes problems for PassGuideSearch thows Exceptions.
The clients receives the exceptions as generic FaultException exceptions.
A new channel must be created on the client. New error handling code for PassGuideSearch must
be created. This code should only handle errors on the new channel.
How can this be achieved?

How can this be achieved?

DRAG DROP
Exhibit:
[ServiceContract]
public interface ICatalog
{
[OperationContract] [WebGet(UriTemplate = “/Catalog/Items/{id}”,
ResponseFormat = WebMessageFormatJson)]
string PassGuideRetrieve(int id);
}
There is a WCF (Windows Communication Foundation) service.
The service is consumed by an ASP. NET Web application PassGuideApp.

/Catalogsvc is used to host the service.
The definition of the service is displayed in the exhibit.
JQuery, with variable EmployeeID, must be used to call the service to obtain data of an item
indicated by EmployeeID.
How can this be achieved?

How can this be achieved?

DRAG DROP
Exhibit:
[DataContract(Namespace)]
public class Item {

[ServiceContract(Namespace)]
public interface Catalog
{
[OperationContract]
[WebInvoke(Method = “POST”, UriTemplate = “Item”)]
Item UpdateItem(Item item);
}
}
There is a WCF (Windows Communication Foundation) service that is being consumed.
The interface of the service is displayed in the exhibit.
There is a WebResponse with the name of PassGuideResponse that the client application
receives from the service.
PassGuideResponse must be deserialized into a strongly typed object.
This object represents value that is returned by the method.
How can this be achieved?


Page 8 of 15« First...678910...Last »