PrepAway - Latest Free Exam Questions & Answers

Category: 70-503

Exam 70-503: TS: Microsoft .NET Framework 3.5 – Windows Communication Foundation Application Development

Which code fragment should you use?

You create a Windows Communication Foundation (WCF) service by using Microsoft .NET Framework 3.5.
Client applications that run on different platforms access the WCF service.
These applications transmit confidential data to the WCF service.
You write the following binding configuration ….

<binding name="TransportSecurity" >
<Security mode="Transport" />
</binding>

You need to configure the service for optimum interoperability and optimum Security.
Which code fragment should you use?

Which combination of bindings should you use?

You are creating a distributed application by using Microsoft NET Framework 3.5.
You use Windows Communication Foundation (WCF) to create the application.
The client application is used in Company A, and the service application is used in Company B.
Company A and company B have security token services named STS A and STS B respectively.
You need to authenticate the client application by using federated security.
Which combination of bindings should you use?

Which code segment should you use?

You are creating a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
The service will be hosted on a Web server. You add the following code fragment to the .svc file.

<% @ServiceHost factory="ExamServicefactory" Service="ExamService" %>

You need to create the instances of the services by using the custom ExamServicefactory class.
Which code segment should you use?

Which client application settings should you use?

You are creating a distributed application by using Microsoft .NET Framework 3.5.
You use Windows Communication Foundation (WCF) to create the application.
The operations provided by the WCF server use the remote resources of other computers.
These methods use the credentials provided by the client applications.
You need to ensure that the WCF server can impersonate the client applications to access the remote resources.
Which client application settings should you use?

Which configuration settings should you insert at line 03?

You are creating a client application by using Microsoft NET Framework 3.5 The client application uses a Windows Communication Foundation service.
To log the called service proxy methods and thBr parameters you implement custom endpoint behavior in the following class
class ParametersLoggerBehavior2 IEndpointBehavior{ }
You also create the following class for the custom behavior
class LoggerElement : BehaviorExtensionElement{ }
You add the following configuration code fragment to the application configuration file
(Line numbers are included for reference only)

01 <behaviors>
02 <endpointBehaviors>
03
04 </endpointBehaviors>
05 </behaviors>
06 <extensions>
07 <behaviorExtensions>
06 <add name="debugBehavior"type="Client.LoggerElement ClientApp, Version=1.0.0.0, Culture=neutral, 10 PublicKeyToken=null" />
09 </behaviorExtensions>
10 </extensions>

You need to ensure that the endpoint uses the custom behavior.
Which configuration settings should you insert at line 03?

Which code segment should you insert at the line 02?

You are creating a Windows Communication Foundation application by using Microsoft .NET Framework 3.5.
The application must consume an ATOM 1.0 feed published at http://localhost:8000/Blogservice/GetBlog.
You write the following code segment.
(Line numbers are included for reference only.)

01 Uri address = new Uri("http://localhost:8000/Blogservice/GetBlog");
02
03 Console.WriteLine(feed.Title.Text);

You need to ensure that the application prints the title of the feed. Which code segment should you insert at the line 02?

Which code segment should you use?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment.

[ServiceContract]
public interface IMathservice
{
[OperationContract]
int AddNumbers(int a, int b);
double AddNumbers(double a, double b);
}

You have not deployed the IMathservice service.
You need to expose the AddNumbers (double a, double b) operation to the IMathservice service contract.
Which code segment should you use?

Which code fragment should you use?

You are creating a client application by using Microsoft .NET Framework 3.5.
The client application will consume a COM+ application by using the Windows Communication Foundation service.
You write the following code segment to implement the COM+ application.

[Guid("InterfaceGuidsHere")]
public interface IDocumentStore
{
bool lsDocumentExist(long id);
}
[Guid("ClassGuidsHere")]
public class DocumentStore: servicedComponent, IDocumentStore
{
public bool IsDocumentExist(long id)
{
//This code checks if document exists.
}
}

The application ID of the COM+ application is {AppGuidsHere}.
You need to configure the WCF service to access the COM+ application from the WCF client application.
Which code fragment should you use?


Page 7 of 11« First...56789...Last »