| Author: Gaurav Arora 04 Jul 2009 | Member Level: Diamond | Rating:    Points: 6 |
Hi Shiby,
Well I am giving answers as follows:
Ans-1:In steady way, yes WCF method can return collections, check the following example:
[OperationContract] [WebGet] List<int> UpdateDesignation(Designation desItem);
public List<int> UpdateDesignation(PLO.Web.Classes.Designation desItem) { List<int> result = new List<int>(); SqlCommand cmd = new SqlCommand("UpdateDesignation", new SqlConnection(GetConnectionString())); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("did", desItem.ID)); cmd.Parameters.Add(new SqlParameter("des", desItem.DesignationName)); cmd.Connection.Open(); int i = cmd.ExecuteNonQuery(); cmd.Connection.Close(); result.Add(i); return result; }
Ans-2: The answer is in your first question itself check above example, I have supplied 'desItem' an object of 'Designation' class as parameter.
Ans-3:Sure we can. But while using thrid party controls we need to check the availability for the same.
Ans-4:In simple way, we can't use Response.Redirect() in services. But if you want you can customize services accordingly
Please visist this link:http://forums.asp.net/t/1275870
Ans-5: You can use
document.url=getUrl(call webservice)
This is a tricky one. Its because you cant use Response.Redirect in services. You need to customize.
Now suppose a scenario in WCF services your client send you a SOAP with UID/PWD and you need to login to another site then you can use this by creating a get Url method ok.
Hope above answers give you idea.
Thanks & regards, Gaurav Arora - Sr. Editor Me in My Own Style
|
| Author: Shuby Arora 04 Jul 2009 | Member Level: Gold | Rating:  Points: 2 |
Thanks a lot Gaurav for answering.
My quest is solved
Regards, Shuby Check your feet while you are ranning, Check your hand while you are writting..... But never check your swept while you are struggling Lets Share Knowledge...
|
| Author: Miss Meetu Choudhary 04 Jul 2009 | Member Level: Diamond | Rating:  Points: 2 |
Gaurav, You have given really nice answer. I quite for answering this question just rating yours.
Thanks and Regards Miss Meetu Choudhary (Site Coordinator) Go Green Save Green My Profile on Google
|