473,503 Members | 9,887 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Services in C++

Dan
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?
Nov 17 '05 #1
5 1107
=?Utf-8?B?RGFu?= <Da*@discussions.microsoft.com> wrote in
news:B2**********************************@microsof t.com:
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/de...l=/library/en-
us/vsent7/html/vbwlkwalkthroughbuildingusingwebservices.asp

--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 17 '05 #2
Dan
Tarek Madkour [MSFT] wrote:
=?Utf-8?B?RGFu?= <Da*@discussions.microsoft.com> wrote in
news:B2**********************************@microsof t.com:

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/de...l=/library/en-
us/vsent7/html/vbwlkwalkthroughbuildingusingwebservices.asp


Thanks, I'm using .NET by the way. I could only find walkthroughs for C#
and VB, I did search before posting.
Nov 17 '05 #3
Dan <an**@anon.com> wrote in
news:Bt********************@comcast.com:
Thanks, I'm using .NET by the way. I could only find
walkthroughs for C# and VB, I did search before posting.


No problem :) The C++ walkthrough is here:
http://msdn.microsoft.com/library/de...l=/library/en-
us/vsent7/html/vbwlkwalkthroughcreatingwebservicesusingmanagedext ensi
onsforc.asp

Thanks,
--
Tarek Madkour, Visual C++ Team
This posting is provided "AS IS" with no warranties, and confers
no rights.
Nov 17 '05 #4
Dan
Tarek Madkour [MSFT] wrote:
Dan <an**@anon.com> wrote in
news:Bt********************@comcast.com:

Thanks, I'm using .NET by the way. I could only find
walkthroughs for C# and VB, I did search before posting.

No problem :) The C++ walkthrough is here:
http://msdn.microsoft.com/library/de...l=/library/en-
us/vsent7/html/vbwlkwalkthroughcreatingwebservicesusingmanagedext ensi
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.
Nov 17 '05 #5
> 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
Nov 17 '05 #6

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

Similar topics

4
2225
by: rbt | last post by:
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python...
6
2539
by: cs | last post by:
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on...
0
2136
by: Diego F. | last post by:
I've been days with that. I'm trying to work with web services sending and returning objects, and the web service must store some objects. - My first try (the most obvious in my opinion) was to use...
26
1860
by: Mr Newbie | last post by:
What do I need to run a web service on my PC ? I know I need the .NET Framework, but do I need IIS Running ?
3
6470
by: Matt D | last post by:
I've got two web services that use the same data types and that clients will have to consume. I read the msdn article on sharing types...
7
6003
by: Stu | last post by:
Hi, I have a web service which returns a record set and works well integrated with an asp dot net page. However if I decided to develop a unix app will i be able to read the dataset as it is...
3
4969
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
2054
by: sdstraub | last post by:
I have created 5 services in my project, in the 1st service I set servicestorun = array of all 5 services, I have a project installer with 5 service installers, one for each service. I have code...
0
1787
by: krishnaraju | last post by:
HI to all, please help me.its urgent requirement. my question is this is the wsdl file i got from our client.please see at bottom. when iam trying to access that webmethods iam getting...
1
2173
by: Data Entry Outsourcing | last post by:
Data Entry plays vital role in every business area. Data Entry is one such aspects of any business that needs to be handled properly for expanding your business. Data Entry is one of the leading...
0
7294
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,...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
5026
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4693
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.