调用Web服务。 [英] Calling of Webservice.

查看:63
本文介绍了调用Web服务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我通过get方法从webservice调用任何webmethod,那么可以更改服务器上的数据吗?

或者我只能通过Post方法调用webmethod。



任何人都可以给我一个在互联网上提供的正确例子。

If I call any webmethod from webservice by get method then it is possible to change the data on server?
Or I have to call webmethod only via Post method.

Can anyone give me a proper example which is available on internet.

推荐答案

GET命令被重试多次。因此,如果您正在更新/插入数据,可能会产生问题。

POST不会重试,因此如果您发送一次请求,它只会在服务器上执行一次。



因此,虽然您可以使用GET更新记录,但这不是一个好主意。
A GET command is retried a number of times. So in case you are updating / inserting data it could create a problem.
POST is not retried and hence if you send a request once, it will only be executed once on the server.

So while you could use GET to update records, its not a good idea.


这篇关于调用Web服务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆