Cannot access XML Web Service using C++ in Visual Studio.NET

  • Thread starter Thread starter Michael Bachar
  • Start date Start date
M

Michael Bachar

Hi,

I'm trying to access a Web Service using C++ in Visual Stodio.NET. I follow
the Walkthrough in Microsoft MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html
/vbwlkwalkthroughusingwebservicewithunmanagedcode.asp

It fail to access the Web Service, When I follow the code I see it fail on
parsing the XML returning from the Web Service. The BeginParse function in
the TClient class failed, it failed in the following code:
HRESULT hr = m_spReader->parse(varStream); (hr returns as E_FAIL)
m_spReader declared as: CComPtr<ISAXXMLReader> m_spReader;

When trying to access the same Web Service with VB.NET and C# it works
perfectly.

Any ideas?
 
I don't know specifically, but often the trace window will display more
detailed error messages. Check there for more hints.

Sam
 
I followed the trace window, it shows the following message:
ATLSOAP: CSoapRootHandler::GetElementEntry -- element not found:
connectResult.
 
Back
Top