こんにちは、私はしばらくグーグルを検索してきましたが、これについての確かな例がないようです。私はこの数日間、AndroidでWebサービスを使用してきましたが、Androidからパラメーターを正常に渡し、ksoapで問題なく使用することができます。しかし今、配列を Web サービスに渡す必要があります。私のサンプルWebサービスは次のとおりです。
[WebMethod]
public string Sample(string[] logs)
{
return array[0];
}
これは、生成する必要がある XML です。
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Sample xmlns="http://MTKAndroidService.org/">
<array>
<string>string</string>
<string>string</string>
</array>
</Sample>
</soap:Body>
</soap:Envelope>
私はしばらくこれで立ち往生しており、誰かが私を助けてくれることを願っています.