开发者

RESTService response

开发者 https://www.devze.com 2023-01-26 08:36 出处:网络
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 \"Tru

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

精彩评论

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