Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,
I have below service i want to call this service using .net it returns string can u guide me or send snippets using rest service

[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "/?Username={Username}&Password={Password}")]
String LoginUers(String Username, String Password);
Posted
Updated 18-Sep-13 19:20pm
v2

1 solution

Hi ,
Add a service reference to the solution and name it (eg-SvcRef)
SvcRef.Service1Client client= = new SvcRef.Service1Client();
client.LoginUsers(userName,password)

I think it may help you

Regards
Ravi
 
Share this answer
 
Comments
kingsa 19-Sep-13 1:19am    
i want in rest service

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900