Thursday 15 January 2015

Wcf rest service - how to use service contract namespace -



Wcf rest service - how to use service contract namespace -

i have wcf service, made restfull, editing intereface , webconfig. in interface, have following:

[servicecontract] public interface itsmapi { [operationcontract] [webinvoke(uritemplate = "/getorganizationno", requestformat = webmessageformat.json, responseformat = webmessageformat.xml, method = "post")] string getorganizationno(customernoinput input); }

i if possible phone call webservice function in manner:

http://foo.example/api/v1/accounts/3

i url link functions don't this:

http://servername.com/myapi/myapi.svc/addperson - meaning not have svc extension. possible @ all?

i have suspicion have utilize service contract namespace, can't find procedure is?

wcf rest servicecontract

No comments:

Post a Comment