0
我使用axistools - Maven的插件获取本地主机:8080,而不是MY_IP_ADDRESS的:8080 WSDL2Java的
这是我的XML内容。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.4</version>
<configuration>
<urls>
<url>http://localhost:8080/link/to/webservice?wsdl</url>
</urls>
<packageSpace>my.package</packageSpace>
<serverSide>true</serverSide>
<outputDirectory>src/main/java</outputDirectory>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
我得到生成的输出为:
http://my_ip_address:8080/link/to/webservice
我想生成的输出为:
http://localhost:8080/link/to/webservice
OR
http://127.0.0.1:8080/link/to/webservice
因为的http:// MY_IP_ADDRESS :8 080/link/to/webservice(我认为)会尝试从网络获得连接。我想在本地连接。
请帮助..
UPDATE:
它可以在Windows XP,但不是在Linux的版本(CentOS)。对不起,没有提到。