RE: [android-developers] Re: Calling Tomcat server API's from Android app

2010-09-04 Thread Ted Neward
What you need (it sounds like) is the Spring Remoting client and whatever
other Spring bits it uses to compile  run successfully on the Android
platform. It should work, in that I don't think there's anything in there
that they need that isn't provided on Android, but

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com

 -Original Message-
 From: android-developers@googlegroups.com [mailto:android-
 develop...@googlegroups.com] On Behalf Of CasaDelGato
 Sent: Friday, September 03, 2010 8:45 AM
 To: Android Developers
 Subject: [android-developers] Re: Calling Tomcat server API's from Android
 app
 
 On Sep 3, 8:35 am, Frank Weiss fewe...@gmail.com wrote:
  I wonder if we are on the same page with client-server. Anyway, maybe
  an example of an API you want to use would help clear things up.
 
 Yeah, terminology problems can be fun.  (NOT!)
 
 We have Tomcat running on a server machine at the office.
 It has a .war file generated that uses the Spring Framework.
 One of the API's this app provides is something like:
public List getCurrentData( DataSpecifier params);
 
 In our Java Desktop app, I just ask the Spring framework for the service
 object, and then I can do:
List data = service.getCurrentData( whatdatatoget); That makes the call
to
 the server, and marshals the resulting data back into the appropriate
objects
 in my application.
 
 I'm trying to figure out how to do the equivalent from the Android app
 - since it is NOT running the Spring framework.
 
 --
 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 group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Calling Tomcat server API's from Android app

2010-09-03 Thread Frank Weiss
I wonder if we are on the same page with client-server. Anyway, maybe
an example of an API you want to use would help clear things up.

-- 
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Calling Tomcat server API's from Android app

2010-09-03 Thread Frank Weiss
That makes more sense. What is the class of the service object? I'd
like to look at what Spring packages you are using.

There are a few solutions that come to mind.

1) Find a Dalvik JAR of the client library for that Spring service package.
2) Add the necessary Spring client source code to your Android client project.
3) Use the more loosely coupled XML/JSON/REST client-server architecture.

Perhaps someone who has used Spring with Android can pipe in. However
most of the client-server code I've run across for Android used option
3) and some use SOAP or XMLRPC.

-- 
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 group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en