I dette særtema om aspekter af AI ser vi på skiftet fra sprogmodeller til AI-agenter, og hvordan virksomheder kan navigere i spændet mellem teknologisk hastighed og behovet for menneskelig kontrol.
If your homemade class has proper getters and setters, then you can send an array of that class without problems.
And you can easily convert an ArrayList to an array. Axis2 may actually convert the ArrayList to an array itself, but I would prefer to do it explicit.
Just make a little wrapper that converts the ArrayList to an array and expose that as a web service.
You can obviously not expose a java.util.ArrayList an expect .NET, PHP and Python code to be able to consume that.
As I said then it is possible that if you expose your existing method it will be converted to returning an array by your web service toolkit. But I prefer the explicit conversion anyway.
I was assuming that all elements in the ArrayList were the same type so you could return X[].
If it contains different types, then we have a problem.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.