开发者

Using Rest based serives in WCF with POST method

开发者 https://www.devze.com 2023-02-19 09:21 出处:网络
I have create a Rest based WCF service and it used in a java mobile app is there a way to post values from the java mobile app to my service a开发者_如何学运维nd i can use it in my application Yes, tr

I have create a Rest based WCF service and it used in a java mobile app is there a way to post values from the java mobile app to my service a开发者_如何学运维nd i can use it in my application


Yes, try setting the method for your function to POST:

[WebInvoke(UriTemplate = "MyFunction", Method = "POST")]
public string MyFunction() 
{
//implementation
}
0

精彩评论

暂无评论...
验证码 换一张
取 消