473,406 Members | 2,378 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,406 software developers and data experts.

C++ code in a webservice.

I have an application, which needs to be rewritten into a webservice.

The application is in C++, and my background is writing stuff for IIS
in C++ and microsoft's javascript, but my intended customers are not
going to pay for IIS, and many of them would not know how to manage
IIS, though it is a lot easier than managing apache.

So I guess I should write the logon and user interface in JSP under
Tomcat/Jakarta, (which I have never used before) but I need to
interface this to the C++ code which manages the business objects,
much of the database work, and does the heavy bit bashing.

Trouble is, real Java, unlike Microsoft's Java, does not play well
with others.

I could perhaps make the C++ code a service, that accepts XML
requests, and makes XML replies, and have the java figure out the XML,
and I could also have them communicate in part through the database.

What would be the best way to mix java code and C code in a web
service?

Using mod_jk2, one can have some web pages served up by Java, and some
web pages served up by whatever one pleases, but trouble is what I
want is to have some web pages served up partly by java and partly by
C++

I notice no one ever writes a web service in C++, as an apache module,
though some people, myself among them, have written web services
largely as IIS Isapi modules. Why this non use of C++?

Or I could perhaps write the web service in Perl, using mod_perl,
which does play well with C++
Jul 17 '05 #1
1 2456
JNI (Java Native Interface) is standard part of Java to talk with C/C++.
It works and you just need to writwe a wrapper.

Thomas

"James A. Donald" <ja****@echeque.com> wrote in message
news:96**************************@posting.google.c om...
I have an application, which needs to be rewritten into a webservice.

The application is in C++, and my background is writing stuff for IIS
in C++ and microsoft's javascript, but my intended customers are not
going to pay for IIS, and many of them would not know how to manage
IIS, though it is a lot easier than managing apache.

So I guess I should write the logon and user interface in JSP under
Tomcat/Jakarta, (which I have never used before) but I need to
interface this to the C++ code which manages the business objects,
much of the database work, and does the heavy bit bashing.

Trouble is, real Java, unlike Microsoft's Java, does not play well
with others.

I could perhaps make the C++ code a service, that accepts XML
requests, and makes XML replies, and have the java figure out the XML,
and I could also have them communicate in part through the database.

What would be the best way to mix java code and C code in a web
service?

Using mod_jk2, one can have some web pages served up by Java, and some
web pages served up by whatever one pleases, but trouble is what I
want is to have some web pages served up partly by java and partly by
C++

I notice no one ever writes a web service in C++, as an apache module,
though some people, myself among them, have written web services
largely as IIS Isapi modules. Why this non use of C++?

Or I could perhaps write the web service in Perl, using mod_perl,
which does play well with C++

Jul 17 '05 #2

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

Similar topics

8
by: DraguVaso | last post by:
Hi, I'm new to WebServices, and I'm doing some tests (with a small VB.NET-application) to know the performance-difference between a WebService and the 'normal'-way of getting data (just...
12
by: Jose Fernandez | last post by:
Hello. I'm building a web service and I get this error. NEWS.News.CoverNews(string)': not all code paths return a value This is the WebMethod public SqlDataReader CoverNews(string Sport)...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
5
by: | last post by:
Hi, How long do webservice objects live for? In particular, if i have static variables filled with data from a static constructor in a webservice, how long will that data persist? thxs
0
by: nano2k | last post by:
Hi I develop a client/server application using webservices. So, I have a client app and a webservice that responds to client app requests - nothin' new. In certain circumstances (namely, when...
2
by: Robert Iver | last post by:
Hello fellow developers, I'm hoping someone out there can steer me down the right path with this little conundrum I have, because I am getting frustrated more and more by the minute. I have a...
9
by: Jens Jensen | last post by:
Hello all, I need some design advice for my web service. I' have written a web service that exposes a function that takes some parameters and return an xml.
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
4
by: =?Utf-8?B?QmlsbEF0V29yaw==?= | last post by:
Hi, We recently converted a 1.1 project to 2.0 and this included a webservice which accepted XML for one of the parameters. Since converting to 2.0 I am getting the following message: --- A...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.