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

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.python but I'd love to hear anyone's
thoughts on Perl/Python/Jython interfacing with C# or Java.
Jul 18 '05 #1
1 2998
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.python 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
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...
699
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...
19
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...
68
by: Lad | last post by:
Is anyone capable of providing Python advantages over PHP if there are any? Cheers, L.
2
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...
2
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...
30
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...
118
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...
27
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...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.