简体   繁体   English

如何转换使用行为的WebService调用?

[英]How to transform a WebService call that is using behaviours?

We have some really old code that calls WebServices using behaviours (webservice.htc), and we are having some strange problems... since they've been deprecated a long time ago, I want to change the call. 我们有一些非常古老的代码使用行为调用WebServices(webservice.htc),我们遇到了一些奇怪的问题......因为很久以前他们已经被弃用了,我想改变调用。

What's the correct way of doing it? 这样做的正确方法是什么? It's ASP.NET 1.1 这是ASP.NET 1.1

You should be able to generate a proxy class using wsdl.exe. 您应该能够使用wsdl.exe生成代理类。 Then just use the web service as you normally would. 然后像往常一样使用Web服务。

While I'm not 100% sure what the Web Service behavior does, I recall it allows client-side script to call Web Services, which would make AJAX it's contemporary replacement. 虽然我不是100%确定Web服务行为的作用,但我记得它允许客户端脚本调用Web服务,这将使AJAX成为当代的替代品。

Since you're using .NET 1.1 how about using Ajax.NET Professional to connect to the web services? 既然您正在使用.NET 1.1如何使用Ajax.NET Professional连接到Web服务?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM