473,748 Members | 11,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python or Perl with C# or Java

At my work we are in the process of building a tool to test an XML based
API. Basically, XML in and XML out over http. Currently, there are two
engines that do all of the schema validations, xml diffs, sending/receiving,
etc. One of these engines in implemented in C# and the other in Java.

Now the choice comes down to which scripting language we choose (Perl,
Python or Jython) to tie into one of these engines. The scripting language
is where we will actually write the tests which consists of manipulating
xml, checking values, etc. The C# and Java engines are simply tools to
report, schema validate, etc.

It's a snap to use the C# modules with the Win32 libraries in Python and
Perl, Jython could handle the Java and I've seen JPE
(http://www.arakne.com/jpe/faq.htm) if we want to use Python and Java.
Personally, I like Python and C#. Unfortunately, my company leans towards
Perl and Java.

Given, I'm posting on comp.lang.pytho n but I'd love to hear anyone's
thoughts on Perl/Python/Jython interfacing with C# or Java.
Jul 18 '05 #1
1 3030
bezeee wrote:
At my work we are in the process of building a tool to test an XML based
API. Basically, XML in and XML out over http.
Presumably you mean WebServices/WSDL/etc when you say "an XML based
API .. over HTTP"?

If yes, you should check out TestMaker, an open source web-services
testing framework. This might have solved all your problems already.

http://www.pushtotest.com/

Look under "Free Tools".
Currently, there are two
engines that do all of the schema validations, xml diffs, > sending/receiving,
etc. One of these engines in implemented in C# and the other in Java.
I think you'll find oodles of support for all things XML in both Java
and C#. Probably more support than you need for any givan task.
Now the choice comes down to which scripting language we choose (Perl,
Python or Jython) to tie into one of these engines. The scripting language
is where we will actually write the tests which consists of manipulating
xml, checking values, etc. The C# and Java engines are simply tools to
report, schema validate, etc.

It's a snap to use the C# modules with the Win32 libraries in Python and
Perl, Jython could handle the Java I've seen JPE
(http://www.arakne.com/jpe/faq.htm) if we want to use Python and Java.
Hmm, my understanding is that JPE is a dead project: no release of
code for quite a while, no new features (Check out the date of
copyright, August 2000). And being honest, I always thought it is a
bad idea and a waste of effort anyway.

If you want to glue python and jython together, far better to use some
remote-object-call facility like Pyro, or CORBA.

http://pyro.sourceforge.net/
http://omniorb.sourceforge.net/
Personally, I like Python and C#. Unfortunately, my company leans towards
Perl and Java.
I think you'll find that all of Python/COM, Python/C# and Jython/Java
are excellent choices.

My personal opinion is that Java can't be beaten for choice for
third-party libraries, particularly for XML, which is fantastically
well supported in the Java world. I make that assertion based on the
fact that there are oodles of free Java + XML software available from
third parties. Although I'm fairly sure that C# will get there
eventually in terms of being well supported by the free software
community, I don't believe that support is there right now: at least
in comparison to Java.
Given, I'm posting on comp.lang.pytho n but I'd love to hear anyone's
thoughts on Perl/Python/Jython interfacing with C# or Java.


Summarising my knowledge

1. I know nothing about perl+java+c#

2. CPython supports MS platforms (COM, C#) extremely well. Pretty much
guaranteed to support all facilities that you need.

3. Jython integration with Java is so good that it is completely
seamless. Coding in jython and then dropping down to Java when you
need more speed is a dream combination, IMHO.

Given that Java and C# are essentially different flavours of the same
language (Alan dons asbestos suit ;-), it seems to me that your real
choice is based on how quickly you can write your apps in Perl vs.
Python, and how correct and maintainable will the final result be.
Assuming that Perl integrates with Java or C# as well as (C|J)Python
does.

HTH,

--
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan: http://xhaus.com/mailto/alan
Jul 18 '05 #2

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

Similar topics

33
3980
by: Joe Cheng | last post by:
I'm curious about something... many Artima.com members who have a Java background and learned Python have come to the conclusion that Java and Python are highly complimentary languages. They would never consider filling the place Java has in their toolbox with Python, but recognize there are many tasks where it really pays to add Python to the mix. I want to ask you hard-core c.l.p Pythonistas: Do you use Python for everything? (and...
699
34064
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
19
4125
by: KefX | last post by:
I've been following the group a bit (somewhat loosely; discussions involving other languages or advanced concepts kind of lose me), and I see all this negativity (OMG Python's lambda is borken roflol, use teh othar langauge). I as a relative newcomer to Python pay little heed to the criticism, though. A few things in Python are counterintuitive, yes, but what language doesn't have such things? And I feel that one can master the syntax of...
68
5879
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
2
1811
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part because I feel like whenever I want to do something in Java, I have to create an object, do a few preperatory things, then do what I need, but in Perl, I just call the routine. Java, however, does much better at cross platform apps, especially if...
2
1807
by: beliavsky | last post by:
Linux Journal annually polls its readers on questions such as their favorite programming language. In the 2005 poll, Python is 2nd, its highest ranking ever. Below are the results by year. I wish that rankings beyond the first 3 were available and that the number of votes were shown. Nerds like numbers, not journalist blather :). I found this data for earlier years by Googling "linux journal <yyyy> readers choice awards". 2005
30
2786
by: Stuart Turner | last post by:
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered if anyone from the group could give me some advice on how to respond / if they had been in a similar position. Any help appreciated, Thanks in advance,
118
6728
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
27
2227
by: scott | last post by:
Hi all, I have been looking at the various programming languages available. I have programed in Basic since I was a teenager and I also have a basic understanding of C, but I want something better. Can anybody tell me the benefits and weaknesses of using Python? -- Your friend,
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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...
1
9319
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,...
0
8241
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
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
6073
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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 we have to send another system
2
2780
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.