Work in progress:
Aims:
- Mark out a trail to get a new user to develop a simple web service that returns a string.
- show users how develop a web service from an interface
interface -> wsdl -> generated code -> modify code -> deploy -> test and get result.
leverage stuff inUsing Command Line Tools.
- explain things very clearly and try not to get sidetracked.
feel free to contribute
you should have setup your command line tools before you continue with this seeUsing Command Line Tools.
Starting With An Interface
We need an interface to define our service. My interface will retrieve pictures of students from a database. Here it is
public interface StudentPhotoService {
{{{ public abstract byte[] getImage(String id); }
- }}}
Compiling this interface will produce a .class file. To generate a .wsdl we need to point java2wsdl to this file. We also need to set another couple of parameters
further stuff when we get a wiki that supports tables
<table> <tr> <th> Heading</th> </tr> </table>