Which code should be used?
There is a WCF (Windows Communication Foundation) client application PassGuideApp.
PassGuideApp is consuming an syndication RSS feed from librivox.org.
PassGuideApp uses a SyndicaionFeed variable PassGuideFeed.
For each syndication item PassGuideApp needs to show the content type and body on the display.
Which code should be used?
How can this be ensured?
How should the router be implemented?
DRAG DROP
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is implementing a contract through one-way and request reply operations.
PassGuideService is exposed over a TCP transport.
End users use a router to access PassGuideService.
How should the router be implemented?
How can this be ensured?
DRAG DROP
Exhibit:
You are modifying an existing Windows Communication Foundation (WCF) service that is defined
as follows
[ServiceContract]
public interface MessageProcessor {
[OperationContract]
void PassGuideProcess ()
public class MessageProcessor: IMessageProcessor {
public void ProcessMessage()
PassGuideSubmit();
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
It is defined in the exhibit.
PassGuideSubmit uses another service not defined above.
There is performance problem with the PassGuideProcess method when it is run in heavy load.
Processing of multiple messages must be supported.
Additionaly you must make sure that new messages is only processed when PassGuideProcess is
not waiting for request and there is no waiting for PassGuideSubmit processes to finish.
How can this be ensured?
Which class should be used when you want to create a proxy to consume this service?
Which code should be used?
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?