2014-09-04 56 views
0

我是JBoss Web服務的新手。我想知道如何在Web服務中返回一個函數的對象數組。在Web服務中返回{對象數組}

例如:

它絃樂是比較容易:

@webmethod 
public String func_name() {return null; } 

但我想返回對象的數組,這樣我就可以生成WSDL文件:

@webmethod 
    public Person[] func_name() {return null; } 

每當我使用上述webmethod時都會出現錯誤。

請幫忙。

回答

0

找到解決方案。我不得不在自定義類中添加getter和setter。在這種情況下,人。

相關問題