The release 1.2 wsdl2 java generates incorrect stub functions for the
operations that has header part only, no payload.
This was correctly done with version axis2 1.1.1. Something changed in
between the two releases in this area is causing the problem.
For example, operation and message are defined something similar to :
<operation name="queryX">
<input message="queryXRequest"/>
<output message="queryXResponse"/>
</operation>
<message name="queryXRequest">
<part name="header" element="id"/>
</message>
The generated stubs contains the id twice :
public com.mycompany.QueryXResponseDocument queryX(
com.mycompany.IdDocument id2,
com.mycompany.IdDocument id3)
throws java.rmi.RemoteException
{
...
}