这是否可能,如果可以,有人可以为我指明正确的方向。
谢谢
最佳答案
您需要解释调用 是什么意思,但您可以明确地使用 web client向远程 url 发送 HTTP 请求并获取结果:
using (var client = new WebClient())
{
string result = client.DownloadString("http://example.com/yoursevletaddress");
// TODO: do something with the returned content from the servlet
}
关于c# - 从 C# 调用 Java Servlet,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4510202/