简体   繁体   English

在64位元上使用带VBS的肥皂

[英]using soap with vbs on 64 bit

Following code is not able to create instance on windows 2012 R2 64 bit to make soap call via vbs 以下代码无法在Windows 2012 R2 64位上创建实例以通过VBS进行Soap调用

Dim obj
Set obj = CreateObject("MSSOAP.SoapClient30")

Few articles mentioned that, SOAP Toolkits have been replaced by the Microsoft .NET Framework. 很少有文章提到,SOAP工具包已被Microsoft .NET Framework取代。 What shall I do to so that it may call web service & can run as scheduled job on win 2012 R2 64 bit environment? 我应该怎么做才能使其可以调用Web服务并可以在Win 2012 R2 64位环境中按计划运行?

I would suggest creating a windows service using .NET in order to execute a task periodically. 我建议使用.NET创建Windows服务 ,以便定期执行任务。 Then you could follow this tutorial to make the web service call using .NET. 然后,您可以按照本教程使用.NET进行Web服务调用。

If you are not familiar with .NET and you insist on VB Script, you could follow this tutorial which handles the SOAP requests in a very structured way, wrapping the whole functionality in classes. 如果您不熟悉.NET并坚持使用VB Script,则可以按照本教程以非常结构化的方式处理SOAP请求,并将整个功能包装在类中。

Hope I helped! 希望我能帮上忙!

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

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