0
我需要一些幫助來理解如何解析j2me中的KSOAP響應。下面是 是我在製作ksoap請求後得到的實際ksoap響應。::如何解析KSOAP ARRAYTPE響應::
<AddressArray>
<AddressBin>
<UserSeqID>200</UserSeqID>
<AddressID>115</AddressID>
<ZipCode>10005</ZipCode>
<IsPrimary>false</IsPrimary>
<State>New York</State>
<StateID>37</StateID>
<StateCode>NY</StateCode>
<City>New York Mills village</City>
<CityID>11701</CityID>
<StreetAddress>90 feet rd</StreetAddress>
<NickName>Gym</NickName>
</AddressBin>
<AddressBin>
<UserSeqID>200</UserSeqID>
<AddressID>110</AddressID>
<ZipCode>10002</ZipCode>
<IsPrimary>false</IsPrimary>
<State>New York</State>
<StateID>37</StateID>
<StateCode>NY</StateCode>
<City>New York city</City>
<CityID>11700</CityID>
<StreetAddress>5th Street</StreetAddress>
<NickName>Home</NickName>
</AddressBin>
<AddressBin>
<UserSeqID>200</UserSeqID>
<AddressID>114</AddressID>
<ZipCode>10002</ZipCode>
<IsPrimary>true</IsPrimary>
<State>New York</State>
<StateID>37</StateID>
<StateCode>NY</StateCode>
<City>New York city</City>
<CityID>11700</CityID>
<StreetAddress>4th Street</StreetAddress>
<NickName>Office</NickName>
</AddressBin>
</AddressArray>
這裏是KSOAP響應模板
<AddressArray>
<AddressBin>
<UserSeqID>int</UserSeqID>
<AddressID>int</AddressID>
<ZipCode>string</ZipCode>
<IsPrimary>boolean</IsPrimary>
<State>string</State>
<StateID>int</StateID>
<StateCode>string</StateCode>
<City>string</City>
<CityID>int</CityID>
<StreetAddress>string</StreetAddress>
<NickName>string</NickName>
</AddressBin>
<AddressBin>
<UserSeqID>int</UserSeqID>
<AddressID>int</AddressID>
<ZipCode>string</ZipCode>
<IsPrimary>boolean</IsPrimary>
<State>string</State>
<StateID>int</StateID>
<StateCode>string</StateCode>
<City>string</City>
<CityID>int</CityID>
<StreetAddress>string</StreetAddress>
<NickName>string</NickName>
</AddressBin>
</AddressArray>
請讓我知道我應該如何映射SOAP XML對輸入反應定製的Java類?