【问题标题】:Custom class in axis2 web serviceaxis2 Web 服务中的自定义类
【发布时间】:2011-08-25 20:34:58
【问题描述】:

我尝试为 Axis2 创建 Web 服务。 我正在使用 eclipse 和“Axis2 Service Archiver”从 java 类创建 aar 文件。 我的问题是我有返回自定义类的函数,例如:

public TestClass TestFunc(){
        return new TestClass();
    }

我的问题是我的客户如何知道什么是 TestClass? ,TestClass 不会显示在 wsdl 文件中。

感谢您的帮助

【问题讨论】:

    标签: java eclipse service axis2 web


    【解决方案1】:

    如果您可以看到操作 TestFunc() 出现在 WSDL 中 - 您应该能够看到与您的 WSDL 中的 TestClass 对应的类型。如果看不到,WSDL如何显示WSDL中TestFunc()的返回类型..?

    谢谢..

    【讨论】:

    • TestFunc 出现在 WSDL 中,但类型 TestClass 的定义如下:local/xsd">
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-23
    • 1970-01-01
    • 2012-10-22
    • 1970-01-01
    • 2012-06-09
    • 1970-01-01
    相关资源
    最近更新 更多