错误:WSDLReader:WSDL文件的加载失败. HRESULT = 0x80040154:类未注册. [英] Error : WSDLReader:Loading of the WSDL file failed. HRESULT=0x80040154: Class not registered.

查看:548
本文介绍了错误:WSDLReader:WSDL文件的加载失败. HRESULT = 0x80040154:类未注册.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我正在尝试使用vbscript调用网络服务.但是在某些机器上,我会出现以下错误.
我试图运行 Windows2000Professional等各种操作系统上的脚本, Windows2000Server,WindowsXPProfessional.完全一样 配置,在某些机器上,它绝对可以正常工作,在某些机器上,它也可以正常工作 给出以下错误.

错误:WSDLReader:WSDL文件的加载失败. HRESULT = 0x80040154:类未注册.
代码:80020009
来源:WSDLReader

代码段如下:
(声明所有变量,并注册所有必需的dll)

SET soapclient = CreateObject("MSSOAP.SoapClient30")
SET document = CreateObject("MSXML2.DomDocument.3.0")
设置objWMIService = GetObject(" winmgmts:root \ cimv2")
rem/*在这里我遇到错误*/
致电 soapclient.mssoapinit("http://"& wHost&"::& wPort& "/csp/" & wClientName& (/service.System.cls?WSDL),"AKWHService","AKWHServiceSoap")

响应= soapclient.AKWHLogin(wUserName,wPassword)
document.LoadXml响应
我的结论 就是说,如果底层操作系统或其某些组件 没有正确安装或配置,则可能会发生这种情况.但我是 不太确定是由于哪个组件引起的. 您可以指导我这个话题吗?

Hello,
    I'm trying to call web-service using vbscript. But on some machines I am getting following error.
    I tried to run the script on various Operating Systems like Windows2000Professional, Windows2000Server, WindowsXPProfessional. Having exactly the same configuration, on some machines it works absolutely fine and on some it gives following error.

Error : WSDLReader:Loading of the WSDL file failed. HRESULT=0x80040154: Class not registered.
Code : 80020009
Source : WSDLReader

Code snippet is as below :
(All variables are declared and all required dlls are registered)

SET soapclient = CreateObject("MSSOAP.SoapClient30")
SET document = CreateObject("MSXML2.DomDocument.3.0")
Set objWMIService = GetObject("winmgmts:root\cimv2")

rem /* HERE I AM GETTING ERROR*/
Call soapclient.mssoapinit("http://" & wHost & ":" & wPort & "/csp/" & wClientName & "/service.System.cls?WSDL","AKWHService","AKWHServiceSoap")

response = soapclient.AKWHLogin(wUserName,wPassword)

document.LoadXml response


My Conclusion is that, if the underlying operating system or some of its components are not properly installed or configured then this may happen. But I am not very sure due to which components it may happen. Can you guide me in this topic?

推荐答案

您能帮忙吗


这篇关于错误:WSDLReader:WSDL文件的加载失败. HRESULT = 0x80040154:类未注册.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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