vendredi 18 avril 2014

Can WCF Restfull service allow same method expose as WebGet and WebInvoke?


Vote count:

0




Can WCF Restfull service allow same method expose as WebGet and WebInvoke like method overloading? Both method shoud be accessible from same URL.


For Ex.



[ServiceContract]
public interface IWeChatBOService
{

[WebGet(UriTemplate = "WeChatService/{username}")]
[OperationContract]
string ProcessRequest(string MsgBody);

[WebInvoke(Method = "POST", UriTemplate = "WeChatService/{username}")]
[OperationContract]
string ProcessRequest(string MsgBody);


Is it possible to do with WCF Restfull Service?



asked 3 mins ago






Aucun commentaire:

Enregistrer un commentaire