//开始创建webservice的请求Soap包
Connector->BeginMessage();
hr = Serializer.CreateInstance(__uuidof(SoapSerializer30));
if(FAILED(hr))
{
   //创建com对象出错,一般是因为没有安装com
}
Serializer->Init(_variant_t((IUnknown*)Connector->InputStream));
Serializer->StartEnvelope("SOAP", "http://schemas.xmlsoap.org/soap/envelope/", "");
Serializer->SoapAttribute("xsi", "", "http://www.w3.org/2001/XMLSchema-instance", "xmlns");
Serializer->SoapAttribute("xsd", "", "http://www.w3.org/2001/XMLSchema", "xmlns");Serializer->StartBody(L"NONE");
Serializer->StartElement(_wsMethodName.c_str(), _wsNameSapce.c_str(), "NONE", "");
Serializer->StartElement(L"strName", "", "NONE", "");
Serializer->SoapAttribute("xsi:type", "", "xsd:string", "");
Serializer->WriteString(strName.c_str());
Serializer->EndElement();
Serializer->EndElement();
Serializer->EndBody();
Serializer->EndEnvelope();Connector->EndMessage();StartEnvelope开始到WriteString这段代码一点也看不懂!http://schemas.xmlsoap.org/soap/envelope/...这些域名URL是用来干什么的?连接服务器的URL在Connector->Property["EndPointURL"] = _wsURL.c_str();不是已经指定了吗?
StartEnvelope、SoapAttribute、StartElement这些属性函数具体是用来干什么的?函数的各个参数是什么含义呢?
WWW上搜了一下,结果千篇一律,在MSDN上也没有找到这些方法几参数的具体解释!
请高手帮忙!多谢!