I am using MSSOAP 3.0 to use web services to talk to SharePoint 2010. But on my Windows 2008 server 32 bit machine my pConnector->EndMessage() call is failing. The same code is working fine on my XP machine. The problem seems to be with MSSOAP, because when i tried using GSOAP i didnt face this issue.
Below mentioned is the failing code snippet:
pConnector->Property["SoapAction"] = "http://schemas.microsoft.com/sharepoint/soap/GetWeb";
pConnector->BeginMessage();
pSerializer->Reset();
hr = pSerializer->Init(_variant_t((IUnknown*)pConnector->InputStream));
hr =pSerializer->StartEnvelope("","","");
hr =pSerializer->SoapNamespace(_bstr_t(L"ns1"), _bstr_t("http://schemas.microsoft.com/sharepoint/soap/"));
hr =pSerializer->StartBody("");
hr =pSerializer->StartElement(_bstr_t(L"GetWeb"),"","",_bstr_t(L"ns1"));
hr =pSerializer->StartElement(_bstr_t(L"webUrl"),"","",_bstr_t(L"ns1"));
hr =pSerializer->WriteString(_bstr_t(L"."));
hr =pSerializer->EndElement();
hr =pSerializer->EndElement();
hr =pSerializer->EndBody();
hr =pSerializer->EndEnvelope();
hr = pConnector->EndMessage();
I am getting the following error message: "Attachment:Maximum retry on the connection exceeded. HRESULT=0x80004005: Unspecified error - Connector:Unspecified HTTP error. HRESULT=0x800A1518"
Is there any other way to make MSSOAP work on Windows 2008 server. I am using MSSOAP 3.0 tool-kit at the moment.
Thanks and Regards, Aakanksha