[ http://jira.codehaus.org/browse/MOJO-371?page=all ]
     
David Boden closed MOJO-371:
----------------------------

    Resolution: Duplicate

Duplicate of MOJO-335

> Downloaded URL in <url/> tag doesn't work if the filename doesn't end with 
> ".wsdl" e.g. http://ws.chss.homeport.info/ChssAdvWS.asmx?WSDL
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>          Key: MOJO-371
>          URL: http://jira.codehaus.org/browse/MOJO-371
>      Project: Mojo
>         Type: Bug

>     Reporter: David Boden
>     Priority: Critical

>
>
> 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:
> {code:xml}
> <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>
> {code}
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to