wsdl生成的xml
- <wsdl:service name="SendFax">
- <wsdl:port name="SendFaxHttpSoap11Endpoint" binding="ns:SendFaxSoap11Binding">
  <soap:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpSoap11Endpoint/" />
  </wsdl:port>
- <wsdl:port name="SendFaxHttpSoap12Endpoint" binding="ns:SendFaxSoap12Binding">
  <soap12:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpSoap12Endpoint/" />
  </wsdl:port>
- <wsdl:port name="SendFaxHttpEndpoint" binding="ns:SendFaxHttpBinding">
  <http:address location="http://192.168.1.151:8082/axis2/services/SendFax.SendFaxHttpEndpoint/" />
  </wsdl:port>
  </wsdl:service>
这个192.168.1.151怎么换成外网对应的域名?在哪里配置呢?谢谢。

解决方案 »

  1.   

    用的axis吗?看看这两个bug:
    http://issues.apache.org/jira/browse/AXIS2-2023
    http://issues.apache.org/jira/browse/AXIS2-2122跟你这个问题应该说得一回儿事儿。
      

  2.   

    你把他部署到外网上再输入wsdl地址就域名了例如htt://www.xxxx.com/xxx/services/xxx?wsdl 这个时候就是域名了。
      

  3.   

    wsdl文件里面有配置的:
    <service name="StockQuoteService">
    <port name="StockQuoteSOAPPort" binding="tns:StockQuoteSOAPBinding">
    <soap:address location="http://localhost:8080/axis2/services/StockQuoteService" />
    </port>
    </service>
    但是我是打包成.aar文件自动生成wsdl的,找不到在哪配置。
      

  4.   

    AXIS2.xml中添加<parameter name="hostname" locked="true">myhost.com</parameter>