你使用生成地址是 使用http://192.168.1.213:8080/axis2/services/AccountService?wsdl
或者修改生成的代码 
将 http://localhost:8080/axis2/services/AccountService的 地方修改为 
http://192.168.1.213:8080/axis2/services/AccountService首先在本地测试 如果成功 
在 远程测试  如果 不成功 请关闭防火墙 或打开 http 8080 端口

解决方案 »

  1.   

    to 影子:
       我在本地测试成功,在局域网的其他机器是用http://192.168.1.213:8080/axis2/services/AccountService?wsdl生成的客户端代码,调用也是用http://192.168.1.213:8080/axis2/services/AccountService,就是不行,报上面的错误。
      

  2.   

    我的windows防火墙是关闭的,杀毒软件也全部退出来了。
      

  3.   

    你先试试  http://192.168.1.213:8080/axis2/services/AccountService?wsdl 在别的电脑上能访问不?如果不能访问,就是你服务发布的问题了,如果可以访问,问题应该是出在生成的客户端代码里边了。
      

  4.   

    首先检查一下是否是网络连接的问题,如果两边的防火墙设置是否正确,另外在你的服务端加入log以检查是否你的服务被调用,用以确定是客户端还是服务端的问题。
      

  5.   

    to echomyf(ECHO):
    http://192.168.1.213:8080/axis2/services/AccountService?wsdl 当然可以访问啦,我都是通过这个在客户机生成客户端代码的。
      

  6.   

    这是在客户端输入http://192.168.1.213:8080/axis2/services/AccountService?wsdl显示的内容:
     <wsdl:definitions xmlns:axis2="http://account" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://account/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://account"><wsdl:documentation>AccountService</wsdl:documentation><wsdl:types><xs:schema xmlns:ns="http://account/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://account/xsd">
    <xs:element name="checkInput">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="money" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="checkInputResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" nillable="true" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setAccountID">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="id" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="setAccountIDResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" nillable="true" type="xs:boolean" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="deposit">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="money" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="depositResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="getAccountResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="withdraw">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="money" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="withdrawResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" nillable="true" type="xs:int" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
      

  7.   

    貌似听一个牛人说过,webservice好像不能用局域网内的Ip访问,当时没搞懂,建议你搜索下,不过不保证他讲的是对的...
      

  8.   

    一直都只在自己机器上做服务端加客户端,测试都没问题。
    将网上几个 实用的 Web Service 用eclipse axis2 插件生成stub,客户端测试也没出现过什么问题。
    可能是客户端代码没生成好导致,仔细检查一下看看
      

  9.   

    问题解决了,是防火墙的问题,建议调试时关闭杀毒软件和windows的自带防火墙。