473,322 Members | 1,496 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,322 software developers and data experts.

Web services

Hello!

Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.

//Tony

Oct 11 '07 #1
12 2189
On 2007-10-11 13:05, to************@uht.se wrote:
Hello!

Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.
Of course it is, the easiest way to do that would probably be to use a
library for that specific purpose (just like you would in Java or .Net)
but if you are really hardcore you can probably do if using just low
level APIs provided by your platform. Unfortunately none of those things
are on-topic in this group and I do not know of any good resources about
it either, but some googling should give you something.

--
Erik Wikström
Oct 11 '07 #2
On 2007-10-11 13:05, tony.johans...@uht.se wrote:
>
Hello!

Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.
Typically when I read such questions on this forum, I always wonder -
what would be the reason for somebody to insist on C++ for doing
things like web-services / web-application, where (IMHO) there are
plenty of easy-to-use langauges and tools available? Are there any
technical reasons for doing so? Would somebody (in the real world)
really use C++ for writing, say a web application?

-Neelesh
Oct 11 '07 #3
Neelesh Bodas <ne***********@gmail.comschrieb:
Typically when I read such questions on this forum, I always wonder
- what would be the reason for somebody to insist on C++ for doing
things like web-services / web-application, where (IMHO) there are
plenty of easy-to-use langauges and tools available? Are there any
technical reasons for doing so? Would somebody (in the real world)
really use C++ for writing, say a web application?
A web service must not be a web application. It can be a component in
a larger software system, perhaps an interface between operating
systems and machines. Sometimes you cannot run a virtual machine on a
given machine because of several reasons. A web service can also be a
part of a larger developement project with own guidelines and
technology policies. And it can happen that you just have no people
familiar with such newer technologies. It can make sense to write a
web service in C++ as well.

T.M.
Oct 11 '07 #4
On Oct 11, 9:01 am, Neelesh Bodas <neelesh.bo...@gmail.comwrote:
On 2007-10-11 13:05, tony.johans...@uht.se wrote:
Hello!
Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.

Typically when I read such questions on this forum, I always wonder -
what would be the reason for somebody to insist on C++ for doing
things like web-services / web-application, where (IMHO) there are
plenty of easy-to-use langauges and tools available? Are there any
technical reasons for doing so? Would somebody (in the real world)
really use C++ for writing, say a web application?

-Neelesh
C++ is used for writing Web applications. In fact the Google Web based
newgroup reader I am using is likely written in C++, or some C++/
Python combination.

However there are few hosting companies that will allow you to deploy
a C++ web application onto their servers, mostly because of security
reasons and because novice app writers can easily crash the process
hosting your service. Imagine what would happen if any of the beans
deployed to JBoss could crash a JBoss instance, or one of those beans
leaked memory, or had a bounds overwrite.

That is why about the only companies writing standard C++ web apps are
doing their own hosting as well. (I'm not sure about the C++/CLI
language, but it is pretty hard to write idiomatic C++ and use
the .NET feature simultaneously)

There no open source C++ Web Service platforms I know of, but here is
a proprietary one http://www.roguewave.com/hydra/hydraexpress.cfm

Lance

Oct 11 '07 #5
On Oct 11, 7:31 am, Lance Diduck <lancedid...@nyc.rr.comwrote:
>
There no open source C++ Web Service platforms I know of, but here is
a proprietary onehttp://www.roguewave.com/hydra/hydraexpress.cfm
Boost has started working on something in this area, but I
don't think it is close to being available. There is also
http://www.micronovae.com/

I'm looking for articles/sites that feature the development
of C++ based web services.

Brian Wood
Ebenezer Enterprises
www.webebenezer.net

Oct 11 '07 #6
On 11 oct, 09:31, Lance Diduck <lancedid...@nyc.rr.comwrote:
On 2007-10-11 13:05, tony.johans...@uht.se wrote:
Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.
There no open source C++ Web Service platforms I know of, but here is
a proprietary onehttp://www.roguewave.com/hydra/hydraexpress.cfm
A little googleing returned:

Systinet: http://www.systinet.com/products/ssc/overview
gSOAP: http://gsoap2.sourceforge.net/
Apache Axis: http://ws.apache.org/axis/cpp/index.html
Apache Axis2: http://ws.apache.org/axis2/c/

It seems that gSOAP and Axis are open source.

Anyone has experience to share about these toolkits?

Oct 11 '07 #7
Er************@gmail.com wrote:
On 11 oct, 09:31, Lance Diduck <lancedid...@nyc.rr.comwrote:
There no open source C++ Web Service platforms I know of, but here
is a proprietary onehttp://www.roguewave.com/hydra/hydraexpress.cfm

A little googleing returned:

Systinet: http://www.systinet.com/products/ssc/overview
gSOAP: http://gsoap2.sourceforge.net/
Apache Axis: http://ws.apache.org/axis/cpp/index.html
Apache Axis2: http://ws.apache.org/axis2/c/

It seems that gSOAP and Axis are open source.

Anyone has experience to share about these toolkits?
<OT>
I've used gSoap, it's very good.
</OT>

Brian
Oct 11 '07 #8
On Oct 11, 3:01 pm, Neelesh Bodas <neelesh.bo...@gmail.comwrote:
On 2007-10-11 13:05, tony.johans...@uht.se wrote:
Typically when I read such questions on this forum, I always wonder -
what would be the reason for somebody to insist on C++ for doing
things like web-services / web-application, where (IMHO) there are
plenty of easy-to-use langauges and tools available? Are there any
technical reasons for doing so? Would somebody (in the real world)
really use C++ for writing, say a web application?
At the lowest level, the question would really be the reverse:
would somebody really use any other language for writing
something like Apache, or Firefox? Or any of the other tools
which offer the higher levels of abstraction.

For a web site based on such tools, I imagine C++ still finds
use as a calculation engine, although I don't quite see it being
used to interface directly with the engine; the necessary
infrastructure is missing.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 11 '07 #9
On Oct 11, 3:31 pm, Lance Diduck <lancedid...@nyc.rr.comwrote:
On Oct 11, 9:01 am, Neelesh Bodas <neelesh.bo...@gmail.comwrote:
On 2007-10-11 13:05, tony.johans...@uht.se wrote:
Is it possible to create and use web services in the C++ language?
I know it's quite easy in Java and .NET.
Typically when I read such questions on this forum, I always wonder -
what would be the reason for somebody to insist on C++ for doing
things like web-services / web-application, where (IMHO) there are
plenty of easy-to-use langauges and tools available? Are there any
technical reasons for doing so? Would somebody (in the real world)
really use C++ for writing, say a web application?
C++ is used for writing Web applications. In fact the Google Web based
newgroup reader I am using is likely written in C++, or some C++/
Python combination.
However there are few hosting companies that will allow you to
deploy a C++ web application onto their servers, mostly
because of security reasons and because novice app writers can
easily crash the process hosting your service. Imagine what
would happen if any of the beans deployed to JBoss could crash
a JBoss instance, or one of those beans leaked memory, or had
a bounds overwrite.
I'm not sure that's the reason; they'd obviously require your
C++ to run in a separate process. In fact, I think the real
problem is that the executable wouldn't be portable, and they
don't want to guarantee the specific hardware. Upgrade from a
Windows PC with an Intel processor to a Sparc under Solaris, and
all of your Python, Perl, Java, etc. still works (in theory, at
least, and a lot of the time in practice). Where as the .exe
that you generated from C++...
That is why about the only companies writing standard C++ web
apps are doing their own hosting as well. (I'm not sure about
the C++/CLI language, but it is pretty hard to write idiomatic
C++ and use the .NET feature simultaneously)
I'm not sure what qualifies as a "Web" application, and what
doesn't, but we use C++ for all of our back-end transaction
processing. Some of the information is available on the Web,
but we do a lot more than just present information on the Web.
>From what little I've seen, most of the so-called Web
applications are mostly really just glue, attaching different
components together. And those components are often written in
C++.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 11 '07 #10
On Oct 11, 4:07 pm, James Kanze <james.ka...@gmail.comwrote:
On Oct 11, 3:31 pm, Lance Diduck <lancedid...@nyc.rr.comwrote:
C++ is used for writing Web applications. In fact the Google Web based
newgroup reader I am using is likely written in C++, or some C++/
Python combination.
However there are few hosting companies that will allow you to
deploy a C++ web application onto their servers, mostly
because of security reasons and because novice app writers can
easily crash the process hosting your service. Imagine what
would happen if any of the beans deployed to JBoss could crash
a JBoss instance, or one of those beans leaked memory, or had
a bounds overwrite.

I'm not sure that's the reason; they'd obviously require your
C++ to run in a separate process. In fact, I think the real
problem is that the executable wouldn't be portable, and they
don't want to guarantee the specific hardware. Upgrade from a
Windows PC with an Intel processor to a Sparc under Solaris, and
all of your Python, Perl, Java, etc. still works (in theory, at
least, and a lot of the time in practice). Where as the .exe
that you generated from C++...
I think that is right, but if a hosting company has multiple exes
running they will be interested in maintaining those customers
through a switch to new hardware or OS. If they already have some
exes running it isn't usually a problem to keep one old machine
around and switch the rest of their machines. That at least buys
you time to find a different hosting company if their new
direction is not of interest to you. This is birds of a
feather winding up together and some hosting companies "deciding"
to support a specific market.
That is why about the only companies writing standard C++ web
apps are doing their own hosting as well. (I'm not sure about
the C++/CLI language, but it is pretty hard to write idiomatic
C++ and use the .NET feature simultaneously)

I'm not sure what qualifies as a "Web" application, and what
doesn't, but we use C++ for all of our back-end transaction
processing. Some of the information is available on the Web,
but we do a lot more than just present information on the Web.>From what little I've seen, most of the so-called Web

applications are mostly really just glue, attaching different
components together. And those components are often written in
C++.
I wouldn't say, "just glue." It is super glue.

Brian Wood
Ebenezer Enterprises

Oct 11 '07 #11
On Oct 12, 12:33 am, c...@mailvault.com wrote:
On Oct 11, 4:07 pm, James Kanze <james.ka...@gmail.comwrote:
On Oct 11, 3:31 pm, Lance Diduck <lancedid...@nyc.rr.comwrote:
C++ is used for writing Web applications. In fact the Google Web based
newgroup reader I am using is likely written in C++, or some C++/
Python combination.
However there are few hosting companies that will allow you to
deploy a C++ web application onto their servers, mostly
because of security reasons and because novice app writers can
easily crash the process hosting your service. Imagine what
would happen if any of the beans deployed to JBoss could crash
a JBoss instance, or one of those beans leaked memory, or had
a bounds overwrite.
I'm not sure that's the reason; they'd obviously require your
C++ to run in a separate process. In fact, I think the real
problem is that the executable wouldn't be portable, and they
don't want to guarantee the specific hardware. Upgrade from a
Windows PC with an Intel processor to a Sparc under Solaris, and
all of your Python, Perl, Java, etc. still works (in theory, at
least, and a lot of the time in practice). Where as the .exe
that you generated from C++...
I think that is right, but if a hosting company has multiple exes
running they will be interested in maintaining those customers
through a switch to new hardware or OS.
And the reason they don't allow .exe files is to avoid ending up
in this situation.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 12 '07 #12
On Oct 12, 2:19 am, James Kanze <james.ka...@gmail.comwrote:
On Oct 12, 12:33 am, c...@mailvault.com wrote:
On Oct 11, 4:07 pm, James Kanze <james.ka...@gmail.comwrote:
On Oct 11, 3:31 pm, Lance Diduck <lancedid...@nyc.rr.comwrote:
C++ is used for writing Web applications. In fact the Google Web based
newgroup reader I am using is likely written in C++, or some C++/
Python combination.
However there are few hosting companies that will allow you to
deploy a C++ web application onto their servers, mostly
because of security reasons and because novice app writers can
easily crash the process hosting your service. Imagine what
would happen if any of the beans deployed to JBoss could crash
a JBoss instance, or one of those beans leaked memory, or had
a bounds overwrite.
I'm not sure that's the reason; they'd obviously require your
C++ to run in a separate process. In fact, I think the real
problem is that the executable wouldn't be portable, and they
don't want to guarantee the specific hardware. Upgrade from a
Windows PC with an Intel processor to a Sparc under Solaris, and
all of your Python, Perl, Java, etc. still works (in theory, at
least, and a lot of the time in practice). Where as the .exe
that you generated from C++...
I think that is right, but if a hosting company has multiple exes
running they will be interested in maintaining those customers
through a switch to new hardware or OS.

And the reason they don't allow .exe files is to avoid ending up
in this situation.
Most don't, but some do:

http://www.wergittep.com/hosting/features.html
http://www.lfchosting.com/scripts/fr...packages.shtml

I've seen a few others in the past. A lot of companies seem
to go along with the restrictions and wind up using PERL, PHP,
etc. This is a mistake, in my opinion if they hope to grow
via good customer service. They will eventually either not
make it or wind up switching to another language. It is better
to get started on the right track. It may mean paying a little more
for hosting, and development may take longer as well
(especially when the size of the project is small), but in the long
term they will at least give themselves a shot at having a stable and
efficient website.

I think the situation is similar to supporting multiple client
versions in distributed systems. It isn't ideal, but reality
imposes itself. It is reasonable to expect a certain amount
of continuity from a web host. I don't know of any that have totally
dropped one vendor and started using a new one. And
if they just move to new systems from the same vendor, your company is
probably heading in the same direction. If your
host isn't flexible about maintaining an older system, you
might have to buy a newer system a little sooner than you
thought.

Brian Wood
Ebenezer Enterprises
Oct 12 '07 #13

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

Similar topics

4
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
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
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
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
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
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
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
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
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
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.