Be aware that there is a lot more needed to be learned in order to use Axis and SOAP effectively than the listing above.
SOAP is a mechanism for inter-application communication between systems written in arbitrary languages, across the Internet.
SOAP usually exchanges messages over HTTP: the client POSTs a SOAP request, and receives either an HTTP success code and a SOAP response or an HTTP error code.
You can use these to write better programs, but these will only work with the Axis implementation.
But since Axis is free and you get the source, that should not matter.
Note also that Axis client and server requires Java 1.3 or later.
For more details on using Axis, please see the user guide.
It is also useful to have written a simple web application, as this will give you some knowledge of how HTTP works, and how Java application servers integrate with HTTP.
You may find the course notes from Mastering the World Wide Web useful in this regard, even though Axis is only introduced in lecture 28.
Things you need to know before writing a Web Service: Axis and SOAP depends on all these details.