...

Signature
Andrew Thompson
http://www.athompson.info/andrew/
> And what if someone had a link to a web page that
> had simple, but not *very* simple, code to do that?
> Should they simply not reply?
>
> <dws>Would you like us to code it for you?</dws>
I'm not a Java programmer, and I only need a "hello world" sample in
order to make a comparative table between Perl, PHP, Python and Java
with Web Services.
Thank you very much.
Ian Wilson - 31 Aug 2007 16:43 GMT
>> And what if someone had a link to a web page that had simple, but
>> not *very* simple, code to do that? Should they simply not reply?
[quoted text clipped - 4 lines]
> order to make a comparative table between Perl, PHP, Python and Java
> with Web Services.
Why Java 1.4.2[1] and not a current Java?
Are you comparing it with Perl 4 and PHP 3?
What type of XML parser are you using in Python, PHP and Perl? SAX? DOM?
other? It would be silly to compare a Perl SAX parser with a Java DOM
parser or vice versa.
[1] From original posting.
Lew - 31 Aug 2007 17:15 GMT
> Why Java 1.4.2[1]
[2]
> and not a current Java?
> Are you comparing it with Perl 4 and PHP 3?
[quoted text clipped - 4 lines]
>
> [1] From original posting.
[2] which is in its "End-of-Life" process.
<http://java.sun.com/j2se/1.4.2/>
> J2SE 1.4.2 has begun the Sun End of Life (EOL) process.
> The EOL transition period is from Dec, 11 2006,
> until the General Availability (GA) of the next Java version,
> Java SE 7, currently planned for the summer of 2008.
> With this notice, customers are strongly encouraged to migrate
> to the current release, Java SE 6.

Signature
Lew
Mark Space - 31 Aug 2007 16:56 GMT
>> And what if someone had a link to a web page that
>> had simple, but not *very* simple, code to do that?
[quoted text clipped - 5 lines]
> order to make a comparative table between Perl, PHP, Python and Java
> with Web Services.
Try starting here; this will tell you how to go from a URL to an open
file for reading:
http://java.sun.com/docs/books/tutorial/networking/urls/index.html
I'm not having a lot of luck finding "simple" programming examples of
XML parsers. Here's one that at least includes a lot of examples:
http://www.totheriver.com/learn/xml/xmltutorial.html
Try doing some Google searches for "java xml parser tutorial" you might
find some that are better for you. Good luck.
Arne Vajhøj - 30 Sep 2007 21:49 GMT
> I'm not a Java programmer, and I only need a "hello world" sample
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse((new URL(url)).openStream());
> in
> order to make a comparative table between Perl, PHP, Python and Java
> with Web Services.
You don't do web services in Java like that, so I am very skeptical
about the outcome of your "comparison".
Arne