修改wsdl
方法一:只用改一次配置,以后都不用管wsdl了,修改axis2.xml
<parameter name="httpFrontendHostUrl">http://xxx.xxx.xxx.xxx:10018/productServer</parameter>
方法二:(不好)
a:获取localhost:8080/productServer/services/productService?wsdl 内容
b:把在最下面的ip地址替换成你要发布的
<wsdl:service name="productService">
<wsdl:port name="productServiceHttpSoap11Endpoint" binding="ns:productServiceSoap11Binding">
<soap:address location=">
</wsdl:port>
<wsdl:port name="productServiceHttpSoap12Endpoint" binding="ns:productServiceSoap12Binding">
<soap12:address location="xx...//productServer/services/productService.productServiceHttpSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="productServiceHttpEndpoint" binding="ns:productServiceHttpBinding">
<http:address location="xx...//productServer/services/productService.productServiceHttpEndpoint/"/>
</wsdl:port>
</wsdl:service>
c:把新保存的wsdl放到跟services.xml1个目录下(/WebRoot/WEB-INF/services/service/META-INF/services.xml)
d:把services.xml的<parameter name="modifyUserWSDLPortAddress">false</parameter> 设置不自动发布,用自己定义的wsdl