1.首先安装soapsdk.exe(可以去我的博客资源里下载免费)
或者按顺序注册msxml4.dll
MSSOAPR3.dll
WISC30.dll
SOAPIS30.dll
WHSC30.dll
MSSOAP30.dll必须在最后注册(可以去我的博客资源里下载免费)
2.接口代码
try
{if(this->m_ServiceIP==""||this->m_ServicePort=="")
{
return true;
}
HRESULT hr = CoInitialize(NULL);//初始化com环境
if(FAILED(hr))
{
return true;
//出错了
}
ISoapSerializerPtr Serializer;
ISoapReaderPtr Reader;
ISoapConnectorPtr C