Eu faço esta comunicação sempre atravez de json, Acho mais simples
2013/6/29 Diogo Henrique <diogjp10@gmail.com>
--Olá pessoal, tenho um web service com seguinte método...@WebMethodpublic List<Lojista> listaLojista(){LojistaRN lojistaRN = new LojistaRN();return lojistaRN.listar();}Eu testei com o SoapUI e está retornando toda a minha lista, mas quando vou para o Android só retorna a primeira linha. Segue meu código abaixo....SoapObject soap = new SoapObject(NAMESPACE, METHOD_NAME);SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);envelope.setOutputSoapObject(soap);HttpTransportSE transport = new HttpTransportSE(URL);transport.call(NAMESPACE, envelope);Log.i("testee", "res = " + envelope.getResponse().toString());No logcat sai apenas uma linhaSe eu fizer issosa = (SoapObject) envelope.getResponse();Vem apenas um objeto mesmo.... como eu posso pegar a lista toda ?
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comentários:
Postar um comentário