473,807 Members | 2,766 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2477
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.goo gle.com...
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
425
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 connecting directly with a SqlDataAdapter to the SQL Server). The WebMethod simply gives a DataSet back, and does exactly the same actions as the normal-Method does. The difference are enormous in my opinion: 1 record:
12
4138
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
5715
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 webbrowser controls on it. Besides that i'm using the firewall client for isa server 2004 and it seems that the browsers aren't able to pass thru it... if i disable the firewall the browsers work fine, if i don't, the 2 browsers just stay there...
7
2029
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
6281
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
1242
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 importing data) I want some compiled code located in client app to be *transferred* to the webservice, optionally to make some bindings to the server side and to execute that code.
2
1720
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 feeling it has something to do with security/authentication, but I don't know where to start on tackling it. Here's my scenario: I'm writing a app that will go onto Pocket PC devices (v2003 SE) that will allow members of our sales team to look...
9
1700
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
2683
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; using System.Web; using System.Web.Services; using System.Web.Services.Protocols;
4
8064
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 potentially dangerous Request.Form value was detected from the client (myparam="<root><blah...."). --- The fix used for ASPX pages is to include the @Page directive with
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10624
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10374
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5546
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.