metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

jaxws-maven-plugin - wsimport: wrong wsdlLocation generated and ObjectFactory with missing methods

Open CarstenFfm opened this issue 9 months ago • 0 comments

Plugin version 4.0.3 Using following configuration for execution (snippet) true <packageName>org.mypackage</packageName> <sourceDestDir>${src.generated.java}</sourceDestDir> <wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory> <wsdlLocation>/wsdl/*</wsdlLocation> <wsdlFiles> <wsdlFile>.....wsdl</wsdlFile> <wsdlFile>.....wsdl</wsdlFile> <wsdlFile>.....wsdl</wsdlFile> ........ <wsdlFile>OBJEKT_LESENws.wsdl</wsdlFile> <wsdlFile>OBJEKTE_ZU_OE_OBJEKT_LESENws.wsdl</wsdlFile> <wsdlFile>.....wsdl</wsdlFile> ....... If there are many wsdlFile entries and 2 have similar name, wsdlLocation is mixed. First generated service class is correct. In the second service class it is @WebServiceClient(name = "OBJEKTE_ZU_OE_OBJEKT_LESENService", targetNamespace = "http://dyns", wsdlLocation = "/wsdl/OBJEKT_LESENws.wsdl") and in the static block OBJEKTEZUOEOBJEKTLESENService.class.getResource("/wsdl/OBJEKT_LESENws.wsdl") Workaround here is to split execution but that causes duplication...

The ObjectFactory generated for all the wsdl files contains methods for the last wsdlFile in the list only.

Best regards.

CarstenFfm avatar Jan 30 '25 17:01 CarstenFfm