先把wsdl文件贴出来。<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://localhost:8080/axis/services/AddressManager"
xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/axis/services/AddressManager"
xmlns:intf="http://localhost:8080/axis/services/AddressManager"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 
PDT) -->
<wsdl:types>
<schema targetNamespace="http://localhost:8080/axis/services/AddressManager"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://xml.apache.org/xml-soap" />
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="ArrayOf_xsd_anyType">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" />
</restriction>
</complexContent>
</complexType>
</schema>
<schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://localhost:8080/axis/services/AddressManager" />
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="Vector">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item"
type="xsd:anyType" />
</sequence>
</complexType>
</schema>
</wsdl:types> <wsdl:message name="getAddressListRequest"> </wsdl:message> <wsdl:message name="setAddressListResponse"> <wsdl:part name="setAddressListReturn" type="impl:ArrayOf_xsd_anyType" /> </wsdl:message> <wsdl:message name="setAddressListRequest"> <wsdl:part name="list" type="impl:ArrayOf_xsd_anyType" /> </wsdl:message> <wsdl:message name="getAddressListResponse"> <wsdl:part name="getAddressListReturn" type="impl:ArrayOf_xsd_anyType" /> </wsdl:message> <wsdl:portType name="AddressManager"> <wsdl:operation name="getAddressList"> <wsdl:input message="impl:getAddressListRequest" name="getAddressListRequest" /> <wsdl:output message="impl:getAddressListResponse" name="getAddressListResponse" /> </wsdl:operation> <wsdl:operation name="setAddressList" parameterOrder="list"> <wsdl:input message="impl:setAddressListRequest" name="setAddressListRequest" /> <wsdl:output message="impl:setAddressListResponse" name="setAddressListResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="AddressManagerSoapBinding" type="impl:AddressManager"> <wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="getAddressList"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="getAddressListRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://service.axis.ws.com" use="encoded" /> </wsdl:input> <wsdl:output name="getAddressListResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/AddressManager" use="encoded" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="setAddressList"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="setAddressListRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://service.axis.ws.com" use="encoded" /> </wsdl:input> <wsdl:output name="setAddressListResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://localhost:8080/axis/services/AddressManager" use="encoded" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="AddressManagerService"> <wsdl:port binding="impl:AddressManagerSoapBinding" name="AddressManager"> <wsdlsoap:address
location="http://localhost:8080/axis/services/AddressManager" /> </wsdl:port> </wsdl:service></wsdl:definitions>用eclipseEE 和 soapUI生成java代码
运行测试,报错为:
- Exception:
org.xml.sax.SAXException: No deserializer for {urn:AddressManager}Address在生成的代码里没有看到任何服务端Address Bean 的影子。问题在什么地方了呢。