Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Complexity:Intermediate
-
Testcase included:yes
-
Number of attachments :
Description
When specifying a <urls><url/></urls> block, the WSDL file gets downloaded as expected into the urlDownloadDirectory. DefaultWSDL2JavaPlugin.computeStaleWSDLs() method then scans this urlDownloadDirectory for files to process. If the filename doesn't end with the suffix ".wsdl" then the scanner doesn't pick up the file for processing. A real-world example is the web service http://ws.chss.homeport.info/ChssAdvWS.asmx?WSDL
FIX: The scanner should look for every file in the download directory, not just ones ending in .wsdl.
Here's a Pom which should work, but doesn't with the current plugin:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>info.homeport</groupId> <artifactId>homeport-soap</artifactId> <packaging>jar</packaging> <version>1.0</version> <name>info.homeport.chssadv Web Service</name> <url>http://www.homeport.info</url> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>axistools-maven-plugin</artifactId> <configuration> <urls> <url>http://ws.chss.homeport.info/ChssAdvWS.asmx?WSDL</url> </urls> </configuration> <executions> <execution> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>
The workaround that I'm using is to keep a copy of the file in src/main/wsdl which I've renamed to homeport.wsdl.
Duplicate of MOJO-335