Assume there is a class shown below.
This class has a method 'appendTest()'.This method has no return value,
and appends a 'Hello',and a String received with same parameter to a
received
field of StringBuffer.
**************************************************************
public class StringBufferTest{
/** appends a 'Hello' at the head of receied String Buffer
*/
public void appendTest(StringBuffer a, String b){
a.append("Hello ");
a.append(b);
}
/**
*Main
*/
public static void main(String args[]){
StringBuffer strBuff = new StringBuffer();
StringBufferTest tes = new StringBufferTest();
tes.appendTest(strBuff, args[0]);
System.out.println(strBuff.toString());
}
}
****************************************************************
Example of a run and an output is as shown below.
****************************************************************
>java StringBufferTest World
Hello World
****************************************************************
Question:
Is it possible to register the append Test
of this cass as a Web Service, and implement this
by SOAP communication?
We tried by using Apache SOAP, but it doesn't work.
Is it impossible to implement a service by SOAP,
which 'let cliant arrange an empty parameter and
let server put a value in parameter'?
Thank you.