axis2 Web服务中的自定义类 [英] Custom class in axis2 web service

查看:69
本文介绍了axis2 Web服务中的自定义类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试为Axis2创建Web服务. 我使用eclipse和"Axis2 Service Archiver"从Java类创建aar文件. 我的问题是我有返回自定义类的函数,

I try to create web service to Axis2. I am use eclipse and the "Axis2 Service Archiver" to create aar file from java class. My problem is that I have function that return custom class like:

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

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

My question is how my client know what is TestClass? , the TestClass don't show in the wsdl file.

感谢您的帮助

推荐答案

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

If you can see the operation TestFunc() appears in the WSDL - you should be able to see type corresponding to the TestClass in your WSDL. If you cant see, how does the WSDL show the return type of the TestFunc() in the WSDL..?

谢谢..

这篇关于axis2 Web服务中的自定义类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆