How do I make wsimport generate constructors?
问题 wsimport generates source code without parameterized constructors. Therefore, if the bean has many properties, one needs to invoke all the setters manually: Person person = new Person(); person.setName("Alex"); Address address = new Address(); address.setCity("Rome"); person.setAddress(address); It's much more readable and convenient to just write the code like this: Person person = new Person("Alex", new Address("Rome")) So, is there any way to make wsimport do this job? (I'm using maven