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 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 be used?

DRAG DROP
Exhibit:
public class Machine {
public int Multiply(int x, nty) {
}
}
There is WCF (Windows Communication Foundation) service which is being implemented.
You use the class displayed in the exhibit.
The class must be exposed as a service named PassGuideA and operation OperationX.
The internal implementation at the service layer should not be exposed.
Which code should be used?

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.

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 7 of 15« First...56789...Last »