Take the 2-minute tour ×

In a textbook exercise, we make 3 Java classes and an XML file.

My questions are:

  1. Where should I save these .java files? I'm using NetBeans 6.5 so the default is My Documents.
  2. What should I name the XML file?

I am using XAMPP so the file WSDL.xml I put in xampp/httdocs but when I open[/]ts?wsdl it says page not found.

Note: I do not need to know how to create a Java class. I need to know where to put the file in which the class is defined.

share|improve this question
Why is this downvoted? It's pretty clear that the person asking the question doesn't know much about Java and might have started learning the basics first, but downvoting it? Come on... –  Simon Lehmann May 20 '09 at 19:06

3 Answers 3

Subjective opinion:
If you don't know such basic things such as placing java files into right directories, perhaps, you should first try a few much simpler examples, than creating a web service.

In Netbeans, you can create a Java project, than add Java classes by doing
File -> New... -> Java -> Java Class

To learn how to use Netbeans, visit:

Especially "NetBeans IDE Java Quick Start Tutorial" might be helpful to start.

Furthermore, you don't run Java webapps with some kind of XAMP, but with Java web servers such as Glassfish or Apache Tomcat.
Both these servers are bundled with Netbeans when you use Netbeans Java profile (see table at Netbeans download page)

share|improve this answer
Yea, i know how to make that. But WHERE should i save that file?? because when i try[/]ts?wsdl it says page not found. –  Tralala001 May 20 '09 at 19:02

I think you should follow ivan_ivanovich_ivanoff's adive and start with the basics.

When you have done that, you might want to come back here and read my answer to the question Stack Overflow: Simple Java web services. It assumes you know how to compile a Java class and how to package it into a JAR, but since these are pretty basic tasks you have to learn anyhow, it might help you getting your web service up and running.

share|improve this answer

Look at the example code provided with the book.

share|improve this answer

Your Answer


