Soory, the exception I put above is wrong.
The exception I got is as follow:
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: This is a stateful web service and {
http://jax-ws.dev.java.net/xml/ns/}objectId header is required.
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:168)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:83)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:248)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:212)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy29.deposit(Unknown Source)
at com.weichen.jax.ws.stateful.client.MyJaxWsStatefulClient.main(MyJaxWsStatefulClient.java:17)
[Message sent by forum member 'thomas2004' (thomas2004)]
http://forums.java.net/jive/thread.jspa?messageID=316961