Digvijay Singh

Digvijay Singh

  • NA
  • 1
  • 752

access web service method with parameter using desktop app

Feb 24 2015 2:28 AM
I want my function in web service should return xml data and it should take a parameter also.
 
[OperationContract]
[WebInvoke(Method = "GET",
RequestFormat=WebMessageFormat.Xml,
ResponseFormat = WebMessageFormat.Xml,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "xmlData{id}")]
 
string xmlData(string id);
 
in class I just returned the value:
 
string xmlData(string id){
return "id is:"+id;
 
Its working in my web browser but i want it to be called by a simple desktop application but that application is giving me an exception that not endpoint found
 
Help me so that I can get an answer 
 
 

Answers (1)