c# - JsonServiceClient adding path to url -


i'm using jsonserviceclient, initialized url parameter like:

  jsonserviceclient client = new jsonserviceclient("http://dis.dat/whatever/coolservice");    client.post(new myrequest{ foo = "bar"}); 

but when check output url, can see service used different url, more precisely

    http://dis.dat/whatever/coolservice/json/reply/myrequest 

the request type simple as

    public class myrequest     {         public string foo {get; set;}     } 

of course, prevent behaviour.

thanks

it seems should use custom routes:

[route("/")] public class myrequest {     public string foo {get; set;} } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -