473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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/de...us/vsent7/html
/vbwlkwalkthroughusingwebservicewithunmanagedcode.a sp

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?

Nov 16 '05 #1
2 3123
Sam
I don't know specifically, but often the trace window will display more
detailed error messages. Check there for more hints.

Sam

"Michael Bachar" <mi****@relegence.co.il> wrote in message
news:eP****************@TK2MSFTNGP10.phx.gbl...
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/de...us/vsent7/html /vbwlkwalkthroughusingwebservicewithunmanagedcode.a sp

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?

Nov 16 '05 #2
I followed the trace window, it shows the following message:
ATLSOAP: CSoapRootHandler::GetElementEntry -- element not found:
connectResult.

"Sam" <ransbotham@dropspam_pointe.com> wrote in message
news:vo************@corp.supernews.com...
I don't know specifically, but often the trace window will display more
detailed error messages. Check there for more hints.

Sam

"Michael Bachar" <mi****@relegence.co.il> wrote in message
news:eP****************@TK2MSFTNGP10.phx.gbl...
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/de...us/vsent7/html
/vbwlkwalkthroughusingwebservicewithunmanagedcode.a sp

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?


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Greg B | last post by:
Created a simple Win32 application (using Visual Studio wizard)... Am using Visual Studio (Enterprise Edition) 6.0, as well as Service Pack 5. At the start of 'WinMain' function, added the...
10
by: Clint | last post by:
Hey all - I'm having a really confusing problem concerning a web service. Right now, I have an application that needs to call a web service that does nothing but return "true" (this will...
2
by: Roberto Rocco | last post by:
Whenever I try to create a new ASP Web Page I get this message : "Visual Studio cannot create or open the application because the Web server on this computer is not running. Start the Web server...
6
by: JonSteng | last post by:
..Net Visual Studio Professional 2003 Version 7.1.3088 ..Net Framework 1.1 SP1 Version 1.1.4322 IIS 5.1 Windows XP Professional SP2 Micron T3000 Laptop (1.5 GHz; 1GB RAM; 40GB HD with 17GB Free)...
7
by: George Jordanov Ivanov | last post by:
Folks, I have to design the WSDL files of a bunch of XML Web Services. But, unfortunately, I am not very keen on writing the WSDL file line by line, and moreover be aware of the whole standard...
0
by: Doctor Who | last post by:
I am using C# with Visual Studio 2005 and have created a Windows Service. This service can be installed using the command line utility 'installutil' and the service appears and runs correctly in...
1
by: Saravana Raj | last post by:
I am using C# with Visual Studio 2005 and have created a Windows Service. This service can be installed using the command line utility 'installutil' and the service appears and runs correctly in...
10
by: dermot | last post by:
I have wrriten a small windows service application in visual studio ..net 2003 which listens for incoming FTP files. These files would overwrite over time due to duplicate file names. However any...
10
by: Andy Kendall | last post by:
I have a problem accessing my custom SoapHeader from a SoapExtension. My extension has no compile time reference to the class derived from SoapHeader, so how can cast it into a SoapHeader of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.