https://issues.apache.org/jira/browse/AXIS2-2609 is the JIRA along with the samples to simulatethe issue.
> _____________________________________________ > From: Onural, Gul (CAR:QT00) > Sent: Monday, April 30, 2007 12:59 PM > To: [email protected] > Subject: Axis2 : incorrectly generated stub functions with > release 1.2 > > > 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 > { > ... > }
