在android中解析soap消息

在android中解析soap消息,android,soap,Android,Soap,我有这个soap消息 <?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Header/> <S:Body> <ns2:getClienteRes

我有这个soap消息

<?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<S:Body>
    <ns2:getClienteResponse xmlns:ns2="http://EntityPackage/">
        <return>
            <cognome>Neri</cognome>
            <email>franco.neri@libero.it</email>
            <idCliente>1</idCliente>
            <indirizzo>via monfalcone 12</indirizzo>
            <nome>Franco</nome>
            <password>ciao</password>
            <telefono>0115700654</telefono>
            <username>franco.neri</username>
        </return>
    </ns2:getClienteResponse>
</S:Body>
</S:Envelope>
我正在使用以下代码:

int i = 0;
while (i < propertiesNumber) {
    result.getProperty(i).toString();
    i++;
}
inti=0;
而(i<属性编号){
result.getProperty(i).toString();
i++;
}
int i = 0;
while (i < propertiesNumber) {
    result.getProperty(i).toString();
    i++;
}