What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 27717 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > WCF Interview Questions

Now you don't need go anywhere to get the best interview questions on Microsoft technology. We are trying to gather all real interview questions asked from MNCs and put them here. You can also assist us in doing so by submitting .net interview questions. These questions are generally different from certification questions however it may help you in that too.



Page copy protected against web site content infringement by Copyscape
Yes, a struct can be used as a DataContract. For example :-

[DataContract]

struct EmployeeInfo
{
[DataMember]
public int id;

[DataMember]
public string name;

[DataMember]
public DateTime joining_date;
}



Thanks and Regards
Akiii

NOTE: This is objective type question, Please click question title for correct answer.

No, SOAP envelope is not created in WebHttpBinding . The information is trasmitted through HTTP or HTTPS.



Thanks and Regards
Akiii

NOTE: This is objective type question, Please click question title for correct answer.

NOTE: This is objective type question, Please click question title for correct answer.

NetNamedPipesBinding binding is used.



Thanks and Regards
Akiii

ServiceHost s = new ServiceHost(typeof(EmployeeReservations));

s.AddEndpoint(typeof(EmployeeReservations), new BasicHttpBinding(),
"http://www.google.com/employee/emp.svc");


EmployeeReservations is the name of the contract.
http://www.google.com/employee/emp.svc is the address of the web service.



Thanks and Regards
Akiii

Even though defining endpoints programmatically is possible, the most common approach
today is to use a configuration file associated with the service. Endpoint definitions embedded in code are difficult to change when a service is deployed, yet some endpoint characteristics, such as the address, are very likely to differ in different deployments. Defining endpoints in config files makes them easier to change, since changes don?t require modifying and recompiling the source code for the service class.



Thanks an Regards
Akiii

Configuration information for all services implemented by a WCF-based application is
contained within the system.serviceModel element. This element contains a services element that can itself contain one or more service elements.



Thanks and Regards
Akiii

To encrypt sensitive data in WCF configuration file, use aspnet_regiis.exe tool.

Example: If you want to encrypt Connection String section of WCF config file, use -pe that means provider encryption .

aspnet_regiis -pe "connectionStrings" -app "/MachineDPAPI" 

-prov "DataProtectionConfigurationProvider"


-pe means provider encryption of configuration section.
-app means your application's virtual path.
-prov means provider name

For more info: http://msdn.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

NOTE: This is objective type question, Please click question title for correct answer.

NOTE: This is objective type question, Please click question title for correct answer.

WCF Data Services are used when you want to expose your data model and associated logic through a RESTful interface. It includes a full implementation of the Open Data (OData) Protocol for .NET to make this process very easy.

WCF Data Services was originally released as ‘ADO.NET Data Services’ with the release of .NET Framework 3.5.



Thanks and Regards
Akiii

WCF One Way Contract are methods/operations which are invoked on the service by the client or the server in which either of them do not expect a reply back. For example :-

If a client invokes a method on the service then it will not expect a reply back from the service.



Thanks and Regards
Akiii

One way contract is used to ensure that the WCF client does not go in a blocking mode . If your WCF operation contracts are returning nothing and they are doing some heavy process then it is better to use one way contract.




Thanks and Regards
Akiii

Found this useful, bookmark this page link to the blog or social networking websites. Page copy protected against web site content infringement by Copyscape
Navigate to Page: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |

 More Exclusive WCF Interview Questions and Answers here


Found interesting? Add this to:


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 4:19:02 AM