开发者

RESTService response

I want my service method to response a string. For example: I want the service method to insert a item on the table, if it got inserted the se开发者_如何学Gorvice method should response a string "True" otherweise "False". How should the method look like?


Take a look at this example. It shows how to return an image from the service, but since it returns binary data, you can also return your text in this way. Hope this helps.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜