user1108948
user1108948

Reputation:

About WebGet(UriTemplate=

I have a piece of code.

 [OperationContract]
    [WebGet(UriTemplate = "/Intest/GeneratePINs/{ID}/{count}/{SameID}", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Json)]
    public void GeneratePINs(string ID, string count, string SameID)
    {

I am new to WCF and json, can you advise me what is that? I guess that is to retrieve values from UI and pass them to service??

Upvotes: 1

Views: 1382

Answers (1)

Chris
Chris

Reputation: 2481

Its a method in a WCF service that is accessible through a HTTP Get call.

The Get call must follow the outline given by the UriTemplate parameter.

The URI Template also says how parameters for the WCF Service Method need to be passed in the query string.

It gives a response in JSON (that said, its void so doesnt really do anything).

Upvotes: 1

Related Questions