1.3 Sending Messages

In the code example at the end of the previous section, these are the two lines that are responsible for sending the message to the server:

call.setOperationName(new QName(operation));
    .
    .
    .
Object result = call.invoke(args);

The operation parameter maps to the names of the messages documented in the alphabetical reference in this manual (Section 2.0, Web Services Message Reference), addFolderEntry, uploadCalendarEntries, and so on. The args parameter maps to the message parameters documented in the reference section.

Using Apache Axis, hard coded calls that send messages from the client to the server appear as follows:

call.setOperationName(new QName("AddFolder");
Object result = call.invoke(new Object[] {new Long(21), new Long(146), new String("My new folder")});