Web Services in C++

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to use the Google Web APIs from a VC++ DLL, I've added a web ref,
etc, etc, I just don't know how to reference the class. I have included the
appropriate headers and added a "using namespace" at the top for the
namespace contained in a generated header. The class is
"CGoogleSearchServiceT". I've made an attempt to port some C# Code but with
no luck. Any ideas?
 
I'm trying to use the Google Web APIs from a VC++ DLL, I've
added a web ref, etc, etc, I just don't know how to reference
the class. I have included the appropriate headers and added a
"using namespace" at the top for the namespace contained in a
generated header. The class is "CGoogleSearchServiceT". I've
made an attempt to port some C# Code but with no luck. Any
ideas?

It will depend on whether you want to use ATL or .NET to access
these web services.

Either way, the following MSDN walkthroughs will tell you how to
do it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/vsent7/html/vbwlkwalkthroughbuildingusingwebservices.asp
 
Tarek said:
No problem :) The C++ walkthrough is here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/vsent7/html/vbwlkwalkthroughcreatingwebservicesusingmanagedextensi
onsforc.asp

Thanks,

More issues:

error C2955: 'GoogleSearchService::CGoogleSearchServiceT' : use of class
template requires template argument list
error C2512: 'GoogleSearchService::CGoogleSearchServiceT' : no
appropriate default constructor available
error C2228: left of '.doGoogleSearch' must have
class/struct/union/generic type

Could anyone experienced with the Google APIs help out? Thanks in advance.
 
Could anyone experienced with the Google APIs help out? Thanks in
advance.

While I haven't tried utilizing google web service api via managed c++, one
very good implementation of it is through the open source gSoap toolkit,
written in a very lean and mean unmanged C/C++. Chick it out here:

http://www.cs.fsu.edu/~engelen/soap.html

Download the project source, and look at how the google api sample is
implemented. There are also .net wrapper examples as well. It should be
easy to create a wrapper for asp.net to link to the gsoap code.

- Don Kim
 
Back
Top