求助:调用MSSoapInit接口总是失败
求助:调用MSSoapInit接口总是失败
代码如下:
CoInitialize(FALSE);
ISoapClient * soapClient30;
HRESULT hr;
hr=CoCreateInstance(CLSID_SoapClient30,NULL,CLSCTX_INPROC_SERVER,IID_ISoapClient,(void**)&soapClient30);
hr = soapClient30-> MSSoapInit(_com_util::ConvertStringToBSTR( "http://wypeng/webservice1/service1.asmx?wsdl "));
在调用CoInitialize(FALSE);
ISoapClient * soapClient30;
HRESULT hr;
hr=CoCreateInstance(CLSID_SoapClient30,NULL,CLSCTX_INPROC_SERVER,IID_ISoapClient,(void**)&soapClient30);
hr = soapClient30-> MSSoapInit(_com_util::ConvertStringToBSTR( "http://wypeng/webservice1/service1.asmx?wsdl "));
将wsdl文件存放到本地,也不成功
调试过程有异常:
The program 'E:\work\codes\SoapTest\Debug\SoapTest.exe ' has exited with code 0 (0x0).
[解决办法]
顶
[解决办法]
帮顶接分,HOHOHO
[解决办法]
不懂啊
[解决办法]
我也碰到这个问题,没有msxml4.看看有没有msxml4.dll和msxml4r.dll。
[解决办法]
没有更进一步的错误提示吗?
[解决办法]
看看msdn里面文档是怎么写的吧。。。
[解决办法]