是这样的,我用axis2发布一个webserver服务,对外发布的方法很简单,比如: public Dog getDog() { return new Dog(); } 但是这个Dog类里面还有引用类型的对象,比如: public class Dog { private Cat cat; public getCat() { return this.cat; } public setCat(Cat cat) { this.cat = cat; } } 好了,我发布服务后,看到wsdl中的cat属性