![webservices调用](https://img-blog.csdnimg.cn/img_convert/9afeb52b2a54ab990dff5f01f91c10ba.png)
webservices调用
If you've ever had to call a VB6 Component from an ASP.NET (ASMX) XML Web Service, you may (most probably) get threading errors. In ASP.NET Apps you can mark
the Page directive with "ASPCompat='true'" but there is not a equivalent tag for Web Services. So, there's a few things you can do:
如果您曾经不得不从ASP.NET(ASMX)XML Web Service调用VB6组件,则可能(很可能)遇到线程错误。
在ASP.NET Apps中,您可以
将Page指令
标记
为“ ASPCompat ='true'”,但Web Services没有等效的标记。
因此,您可以做一些事情:
Put the VB Component in COM+ (Preferred if the COM Object is part of a larger interaction, and you want fine control over your SOAP)
将VB组件放在COM +中(如果COM对象是较大的交互的一部分,并且您希望对SOAP进行更好的控制,则首选)
Figure out a different way to expose the COM Object as a Web Service, perhaps with Classic ASP and SOAP Toolkit 3.0 (Quick if you just want to get your component, but has larger design ramifications for big systems)
找出另一种将COM对象作为Web服务公开的方法,也许可以使用Classic ASP和SOAP Toolkit 3.0 (如果只想获取组件,但是对大型系统有更大的设计分支,则可以快速获得)
翻译自: https://www.hanselman.com/blog/aspnet-webservices-calling-apartmentthreaded-com-components
webservices调用