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?
Which code should you use?
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 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?