Web services 在wsdl2java中获取localhost:8080而不是我的ip地址:8080
我正在使用axistools maven插件 这是我的xml内容Web services 在wsdl2java中获取localhost:8080而不是我的ip地址:8080,web-services,maven-plugin,axis,wsdl2java,Web Services,Maven Plugin,Axis,Wsdl2java,我正在使用axistools maven插件 这是我的xml内容 <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>axistools-maven-plugin</artifactId> <version>1.4</version> <configuration> <urls>
<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>
I希望生成的输出为:
http://localhost:8080/link/to/webservice
OR
http://127.0.0.1:8080/link/to/webservice
因为http://my_ip_address:8080/link/to/webservice(我认为)将尝试从网络获取连接。我想在本地连接
请帮忙
更新:
它可以在Windows XP中工作,但不能在Linux(CentOS)中工作。很抱歉没有提到这一点。嗯,既然我没有得到答案,我想我找到了自己的答案 我不得不在这方面做些工作。以下是过程
<service name="serviceName">
<port name="servicePort" binding="tns:soapBinding">
<soap:address location="http://localhost:8080/link/to/webservice"/>
</port>
</service>
<service name="serviceName">
<port name="servicePort" binding="tns:soapBinding">
<soap:address location="http://localhost:8080/link/to/webservice"/>
</port>
</service>