Hallo,
ich hab in meiner Klasse, aus welcher ich einen WebService machen will, folgende Methode:
es sollte dem Client also eine List zurückgegeben werden. Da wird mir aber eine Fehlermeldung ausgegeben:
Meine Frage wäre jetzt, was man anstatt der List als Rückgabewert verwendet? Wie macht man das normalerweise?
Vielen Dank,
lg
ich hab in meiner Klasse, aus welcher ich einen WebService machen will, folgende Methode:
Java:
public List myInstances() {
...
es sollte dem Client also eine List zurückgegeben werden. Da wird mir aber eine Fehlermeldung ausgegeben:
Code:
The service class "my.company.MyController" does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly.
The method "myInstances" on the service class "my.company.MyController" uses a data type, "java.util.List", that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result.
Meine Frage wäre jetzt, was man anstatt der List als Rückgabewert verwendet? Wie macht man das normalerweise?
Vielen Dank,
lg