you need to tweak the performance of PassGuideService so it allows the maximum number calls the methods
DRAG DROP
Exhibit:
[ServiceContract]
[ServiceBehavior(ConcurrencyMode =
ConcurrencyMode.Multiple)]
public class DataAccessService
{
[OperationContract]
public void PutMessage(string message)
{
MessageDatabase.PutMessage(message);
}
[OperationContract]
public string SeachMessages(string search)
{
return MessageDatabase.SearchMessages(search);
}
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService is specified in the exhibit.
PassGuideService is used over a TCP binding.
At the moment MessageDatabase only support a small finite number of concurrent executions of
the methods belonging to it.
While not preventing users to connecting to PassGuideService you need to tweak the
performance of PassGuideService so it allows the maximum number calls the methods.
What should be done?
Which code should be used?
DRAG DROP
Exhibit:
[ServiceContract]
public interface ITeamMessageService
{
[OperationContract]
string GetMessage0;
[OperationContract]
void PutMessage(string message);
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService uses the contract being displayed in the exhibit.
PassGuideService is used to share messages between the clients.
You need to ensure that all the clients receive the same message from the GetMessage method,
even if the PutMessage method is used by another client.
Which code should be used?
How can this be achieved?
DRAG DROP
Data contract Exhibit:
[DataContract]
public class Employee
{
[DataMember]
public string Name,
[DataMember]
public string City:
[DataMember]
public mnt Wage;
[DataMember]
public int EMPLOYEEID;
}
XML exhibit:
<Employee>
<Name xsi:nil”true”/>
<City xsi:nil “true”/>
< EMPLOYEEID >123456789 </ EMPLOYEEID >
</Employee>
There is WCF (Windows Communication Foundation) application PassGuideApp.
PassGuideApp uses the data contract being displayed data contract exhibit.
The XML code in the XML exhibit must be produces with the data contract is serialized.
How can this be achieved?
How can this be achieved?
DRAG DROP
There is a WCF (Windows Communication Foundation) service IPassGuideService in class
PassGuideService.
PassGuideService intermittently throws an exception and then fails.
Now you need to handle the unhandled exceptions to clients by sending the stack trace of these to
the clients as a fault message.
How can this be achieved?
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?
Which code should you use?
DRAG DROP
PassGuideService exhibit:
[OperationContract]
void PassGuideService(Order data);
There is a client PassGuideClient.
PassGuideClient sends multiple SOAP message to a WCF (Windows Communication Foundation)
service method PassGuideService.
PassGuideService must be tweaked so that any SOAP message can be received.
Which code should you use?
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.
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?