Subscribe to Subscribers

Forums » .NET » ASP.Net MVC »

About Microsoft Exam Clarifications


Posted Date: 11 Jul 2012      Posted By:: Sriram     Member Level: Bronze    Member Rank: 4925     Points: 5   Responses: 1



What is the Exact answer for it?
You are developing an ASP.NET Web service. The following code segment implements the service. (Line numbers are included for reference only.)

[WebServiceBinding(ConformsTo =WsiProfiles.BasicProfile1_1)]
public class ProductService :System.Web.Services.WebService
{
[WebMethod]
public Product GetProduct(string name)
{
&
}

[WebMethod]
public Product GetProduct(int id)
{
&
}
}
You need to ensure that both GetProduct methods can be called from a Web client. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Remove line 01.
B. Add the static modifier on lines 05 and 11.
C. Add the following attribute before line 10.
D. [SoapDocumentMethod(Action="GetProductById")]
E. Modify the attribute on line 10 as follows.
F. [WebMethod(MessageName="GetProductById")]




Responses

#680249    Author: Abhishek Arya      Member Level: Gold      Member Rank: 19     Date: 13/Jul/2012   Rating: 2 out of 52 out of 5     Points: 1

My answer will be F. SO that webclient know which function to call.

 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Oxytoxin Best Anti Aging Cream For all type Wrinkles
Previous : How to maintain login sessions.
Return to Discussion Forum
Post New Message
Category:

Related Messages

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2013 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.