1

I have a SVC web service located at

http://localhost/myProjects/WebServices/Retriever.svc

Let's say Retriever.svc.cs has a method

[WebGet]
[OperationContract]
public string[] CoolMethod(string prefixText, int count)
{
.....
return some string[];
}

How could I form a URL in my browser to see what the output of it would be?

Can I do something along the lines of

http://localhost/myProjects/WebServices/Retriever.svc/CoolMethod?arg1?arg2

carlosfigueira
  • 85,035
  • 14
  • 131
  • 171
Matt
  • 25,943
  • 66
  • 198
  • 303

1 Answers1

2

Turns out you can do

http://localhost/myProjects/WebServices/Retriever.svc/CoolMethod?prefixText=box&count=5

Should have tried it before asking, but leaving it here for others to reference.

carlosfigueira
  • 85,035
  • 14
  • 131
  • 171
Matt
  • 25,943
  • 66
  • 198
  • 303
  • i agree with the last part of your answer: "should be here for others to reference". That's the whole point of this site. – euther Jun 22 '11 at 21:40
  • 2
    It should be .../Retriever.svc/CoolMethod?prefixText=box&count=5 (you need the method name in the URI, and the separator for the parameters should be '&' instead of '#' – carlosfigueira Jun 22 '11 at 21:57