[android-developers] Re: XML-RPC

2009-09-11 Thread Wouter
Hey, I get a nice solution from skink, thank you so much for it! Now i have another problem. I do a call with film.retrieveCinema (to get newest moviest in cinema). this is response: {2009-09-03=[Ljava.lang.Object;@43663720, 2009-08-27=[Ljava.lang.Object;@43599b60,

[android-developers] Re: XML-RPC

2009-09-11 Thread Wouter
Ok it get all the dates with response.keySet(); response: [2009-09-03, 2009-08-27, 2009-09-09, 2009-08-19, 2009-09-10, 2009-08-20] But how can i loop every date now to get the Objects? Wouter On 11 sep, 17:34, Wouter wouterg...@gmail.com wrote: Hey, I get a nice solution from skink, thank

[android-developers] Re: XML-RPC

2009-09-09 Thread Wouter
Nobody knows a solution for this? Wouter --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this

[android-developers] Re: XML-RPC

2009-09-09 Thread skink
On Sep 9, 6:08 pm, Wouter wouterg...@gmail.com wrote: Nobody knows a solution for this? Wouter is you svn of xmlrpc up to date? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post

[android-developers] Re: XML-RPC

2009-09-09 Thread Wouter
yes i have the latest version from the svn but it is still a known issue: http://code.google.com/p/android-xmlrpc/issues/detail?id=8 really need to get this fixed, cant do anything without this.. On 9 sep, 18:19, skink psk...@gmail.com wrote: On Sep 9, 6:08 pm, Wouter wouterg...@gmail.com

[android-developers] Re: XML RPC Parsing Error

2009-09-08 Thread skink
On Sep 7, 3:24 pm, SIDIBE Ali-Broma jahbr...@gmail.com wrote: This is one exemple whitch give me all time some error  . Also this code is simular on the codeprojet. I ast some help for to solve this problem. Problem of Firewall! or other! I dont know ...         XMLRPCClient client = new

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
yes with these tools i can see the data packages.. but thats not the solution to my problem i think? I want to parse the data in java.. On 3 sep, 00:38, skink psk...@gmail.com wrote: On Sep 3, 12:15 am, Wouter wouterg...@gmail.com wrote: I don't know.  I use the android-xmlrpc client

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
On Sep 3, 10:36 am, Wouter wouterg...@gmail.com wrote: yes with these tools i can see the data packages.. but thats not the solution to my problem i think? I want to parse the data in java.. On 3 sep, 00:38, skink psk...@gmail.com wrote: On Sep 3, 12:15 am, Wouter

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
Hmm how can i see the raw data with wireshark? On 3 sep, 11:03, skink psk...@gmail.com wrote: On Sep 3, 10:36 am, Wouter wouterg...@gmail.com wrote: yes with these tools i can see the data packages.. but thats not the solution to my problem i think? I want to parse the data in java..

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
On Sep 3, 3:38 pm, Wouter wouterg...@gmail.com wrote: Hmm how can i see the raw data with wireshark? just post xml you got from a server On 3 sep, 11:03, skink psk...@gmail.com wrote: On Sep 3, 10:36 am, Wouter wouterg...@gmail.com wrote: yes with these tools i can see the data

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
I dont see it at wireshark.. and in android i only get the response object back and not the whole xml.. On 3 sep, 15:51, skink psk...@gmail.com wrote: On Sep 3, 3:38 pm, Wouter wouterg...@gmail.com wrote: Hmm how can i see the raw data with wireshark? just post xml you got from a server

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
On Sep 3, 10:36 am, Wouter wouterg...@gmail.com wrote: yes with these tools i can see the data packages.. so what are packages you can see with these tools? it should be http xml response. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
OK finally got it, thanks for your help! This is the xml response for film.retrieveDetails ?xml version=1.0 encoding=ISO-8859-1? methodResponse params param valuestruct membernameurl/name valuestringhttp://www.moviemeter.nl/film/500//string/value /member membernamethumbnail/name

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
09-03 18:10:20.642: DEBUG/log1(746): [Ljava.lang.Object;@43598a88 09-03 18:10:20.642: DEBUG/log2(746): class [Ljava.lang.Object; And now is the question how can i get the data in that Object? :) On 3 sep, 18:06, skink psk...@gmail.com wrote: Wouter wrote: OK finally got it, thanks for your

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
Wouter wrote: OK finally got it, thanks for your help! membernamedates_video/name valuearray data valuestruct membernamedate/name valuestring2002-07-16/string/value /member /struct/value /data /array/value /member what does: Log.d(log1, response.get(dates_video)); Log.d(log2,

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
directors is also [Object that is Object array, so: Object[] directors = (Object[]) response.get(directors); for (int i=0; idirectors.length; i++) { Log.d(log, directors[i]); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
09-03 18:28:44.821: DEBUG/log(783): {date=2002-07-16} yeah we got the data :D when i try with directors i get this: 09-03 18:30:04.582: DEBUG/log(821): {name=Peter Jackson, id=10176} and my Director.java class is like this: public class Director { public String id; public String

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
what does: Object[] array = (Object[]) response.get(dates_video); Log.d(log, array[0]); print? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
Ok.. So my response is: 09-03 18:53:48.192: DEBUG/directors(859): {name=Peter Jackson, id=10176} but how can i get name and id out of this response and save it in the Directors class? On 3 sep, 18:51, skink psk...@gmail.com wrote: directors is also [Object that is Object array, so: Object[]

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
Ok.. So my response is: 09-03 18:53:48.192: DEBUG/directors(859): {name=Peter Jackson, id=10176} but how can i get name and id out of this response and save it in the Directors class? On 3 sep, 18:51, skink psk...@gmail.com wrote: directors is also [Object that is Object array, so: Object[]

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
Object[] directors = (Object[]) response.get(directors); for (int i=0; idirectors.length; i++) { Map m = (Map) directors[i]; Log.d(log, map.get(name)); Log.d(log, map.get(id)); } --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
Thank you, but i have this in my filmDetail : public void setDirectors(Director[] directors) { this.directors = directors; } so i want to do filmDetail.setDirectors(directors); and directors is then an array of Director (Director[]).. How can i do that? Thank

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
Object[] directors = (Object[]) response.get(directors); Director[] darray = new Director[directors.length]; for (int i=0; idirectors.length; i++) { darray[i] = new Director(); Map map = (Map) directors[i]; ... } --~--~-~--~~~---~--~~ You received this

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
Nice! Thank you so much! It worked like this: Object[] directors = (Object[]) response.get(directors); Director[] directorArray = new Director[directors.length]; for (int i=0; idirectors.length; i++) {

[android-developers] Re: XML-RPC

2009-09-03 Thread skink
On Sep 3, 7:40 pm, Wouter wouterg...@gmail.com wrote: Nice! Thank you so much! It worked like this:                         Object[] directors = (Object[]) response.get(directors);                         Director[] directorArray = new Director[directors.length];                    

[android-developers] Re: XML-RPC

2009-09-03 Thread Wouter
thank you! works great now.. But i think there is a problem with the xml rpc client.. I make a call film.retrieveCinemas to get a list of all the new movies in cinema but i get this error: org.xmlrpc.android.XMLRPCException: java.io.IOException: Cannot deserialize value and this is a known

[android-developers] Re: XML-RPC

2009-09-02 Thread Wouter
How can i parse this reponse? Please help.. On Sep 1, 4:58 pm, Wouter wouterg...@gmail.com wrote: Hey Mark, Thank you this worked great! Now I have another issue.. I make another request: HashMapString, Object response =  (HashMapString, Object)

[android-developers] Re: XML-RPC

2009-09-02 Thread Yusuf Saib (T-Mobile USA)
Hm, there are three ways that I can think of: 1) write code that does this one field at a time (I assume this is what you hope to avoid) 2) just keep it in the hash 3) leverage Java introspection to do #1 automatically Faced with this in the past, I've opted for #2 for simplicity's sake, but #3

[android-developers] Re: XML-RPC

2009-09-02 Thread Wouter
Hey, Thank you for your answer. I have not that much experience with xml rpc and HashMap so I don't knnow how to develop this in Java. When I iterate the whole HashMap and do it one field at a time I can see that when i get dates_video (like response.get(dates_video)) the response of this is an

[android-developers] Re: XML-RPC

2009-09-02 Thread Wouter
I don't know. I use the android-xmlrpc client (http://code.google.com/ p/android-xmlrpc/) and I only see the response like in few posts above.. Is there another way to get the data? Wouter On 3 sep, 00:00, skink psk...@gmail.com wrote: Wouter wrote: Hey, Thank you for your answer. I

[android-developers] Re: XML-RPC

2009-09-02 Thread skink
On Sep 3, 12:15 am, Wouter wouterg...@gmail.com wrote: I don't know.  I use the android-xmlrpc client (http://code.google.com/ p/android-xmlrpc/) and I only see the response like in few posts above.. Is there another way to get the data? ethereal/wireshark

[android-developers] Re: XML-RPC

2009-09-02 Thread skink
Wouter wrote: Hey, Thank you for your answer. I have not that much experience with xml rpc and HashMap so I don't knnow how to develop this in Java. When I iterate the whole HashMap and do it one field at a time I can see that when i get dates_video (like response.get(dates_video)) the

[android-developers] Re: XML-RPC

2009-09-01 Thread Wouter
Hey Mark, Thank you this worked great! Now I have another issue.. I make another request: HashMapString, Object response = (HashMapString, Object) client.call(film.retrieveDetails,sessionKey, 500); I only can save the response as an HashMap (androidxmlrpc client..) to get movie details and

[android-developers] Re: XML-RPC

2009-08-24 Thread Wouter
No one has an idea? On 22 aug, 14:00, Wouter wouterg...@gmail.com wrote: Hey, I am using the android xmlrpc client (http://code.google.com/p/android- xmlrpc/) to consume a xml-rpc webservice. I can call the webservice and get data back but I want to save the received data in own made

[android-developers] Re: XML-RPC

2009-08-24 Thread Mark Murphy
No one has an idea? score=new FilmScore(); score.votes=response.get(votes); score.total=response.get(total); score.average=response.get(average); -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html

[android-developers] Re: XML-RPC

2008-12-06 Thread skink
hi, i uploaded v0.2 of my thin XML-RPC library, hope you'll enjoy it, please remeber to register in order to download files pskink --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: XML-RPC

2008-12-02 Thread check_writer
Thanks for your post, I went to the URL and I dont see any source there. Can you please share the source code etc? I'm hesistant to change over to REST so I'd prefer to stay with XML- RPC as we have alot of code already on XML-RPC. Please post a link to where I can get the code and try it

[android-developers] Re: XML-RPC

2008-11-30 Thread skink
i implemented very thin xml-rpc, try http://www.anddev.org/slim_xml-rpc-t3800.html pskink On Nov 24, 2:01 am, check_writer [EMAIL PROTECTED] wrote: I tried implementing the ApacheXML-RPC3.1 as I normally would in a Java 1.5 app in eclipse and got exceptions. What were the

[android-developers] Re: XML-RPC

2008-11-27 Thread Mark Murphy
check_writer wrote: Thanks for the REST suggestion, are we able to accomplish the same set of functionality (i.e. custom objects being serialized) etc? XML-RPC takes data, encodes it, and sends it over HTTP. REST takes data, encodes it, and sends it over HTTP. -- Mark Murphy (a Commons Guy)

[android-developers] Re: XML-RPC

2008-11-26 Thread check_writer
Thanks for the REST suggestion, are we able to accomplish the same set of functionality (i.e. custom objects being serialized) etc? Essentially can we accomplish the same set of things with REST (binary data, Objects being passed as arguments etc) as we do with XML-RPC (from Apache 3.1) I will

[android-developers] Re: XML-RPC

2008-11-24 Thread [EMAIL PROTECTED]
See the aild documents: C:\android\docs\reference\aidl.html On Nov 24, 2:01 am, check_writer [EMAIL PROTECTED] wrote: I really apologize if this has been answered somewhere else.   But I've searched all over for how to implement XML-RPC in Android with no luck real luck but dead urls.

[android-developers] Re: XML-RPC

2008-11-24 Thread [EMAIL PROTECTED]
Sorry bad link, see: http://code.google.com/android/reference/aidl.html Mark On Nov 24, 10:20 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:    See the aild documents: C:\android\docs\reference\aidl.html On Nov 24, 2:01 am, check_writer [EMAIL PROTECTED] wrote: I really

[android-developers] Re: XML-RPC

2008-11-24 Thread Mark Murphy
[EMAIL PROTECTED] wrote: See the aild documents: C:\android\docs\reference\aidl.html AIDL is for cross-component communication (Activity to Service) inside Android. AFAIK, it is not designed for use outside of Android, such as in a client/server environment. On Nov 24, 2:01 am,