我尝试为 Axis2 创建 Web 服务。 我使用 eclipse 和“Axis2 Service Archiver”从 java 类创建 aar 文件。 我的问题是我有返回自定义类的函数,例如:
public TestClass TestFunc(){
return new TestClass();
}
我的问题是我的客户如何知道什么是 TestClass? ,TestClass 不显示在 wsdl 文件中。
感谢您的帮助
最佳答案
如果您可以看到操作 TestFunc() 出现在 WSDL 中 - 您应该能够看到与 WSDL 中的 TestClass 相对应的类型。如果您看不到,WSDL 如何显示 WSDL 中 TestFunc() 的返回类型..?
谢谢..
关于java - axis2 Web服务中的自定义类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7196843/