引数の1つに配列が含まれていることを期待する.NETWebサービスにintの配列を送信しようとすると問題が発生します。これは、少なくとも私がWebサービスのAPIの説明から理解していることです。
<dataIndexIDs>
<int>int</int>
<int>int</int> </dataIndexIDs>
したがって、以下のように単一のintを送信しても、エラーは発生せず、正常に機能すると思います。
request.addProperty("dataIndexIDs", 63);
しかし、intの配列を送信しようとすると:
request.addProperty("dataIndexIDs", new int[] {63, 62}); // array of ints
または整数のArrayList:
ArrayList<Integer> indexes = new ArrayList<Integer>();
indexes.add(63);
indexes.add(62);
request.addProperty("dataIndexIDs", indexes); // ArrayList of Integers
「java.lang.RuntimeException:シリアル化できません」という例外がスローされます。何か助けてください?私は何が間違っているのですか?ありがとう!