SOAP on Android

by Sobert » Tue, 03 Nov 2009 06:26:02 GMT

Sponsored Links

I work on an app, and I need to insert new lines on a remote database,
and getting an int from the server.

After a few research, I've found out that it won't be a good thing to
directly connect to the remote database, and I've find that it would
be better to use SOAP or REST.

For my needs (insert in a two-column table, and retrieving a count),
SOAP seems the more accurate choice.

I've then looked forward to script an SOAP web-service in php, and
wrote it. Now I try to access it via android.

I've find this : 

Other Threads

1. Spannable confusion

I might be misunderstanding some restrictions or subtlety about the
use of Spannables in a TextView.

It seems that whenever I apply an identical combination of display
enhancements to two separate and non-overlapping ranges of text, the
first set (earlier in the string) does not take effect in the actual

For example, if I make characters 0-3 foreground blue, and also
characters 12-14 foreground blue, then only characters 12-14 appear
blue.  But if I use a different combination of enhancements for the
second range, say, blue foreground with white background, the all of
the enhancements appear in both ranges as expected.

I hope the problem is in my own code, but I'm not seeing it, and I'm
suspecting that there is some consolidation at a lower level occurring
that is going awry.  Here is a class I use to apply this stuff:

class EnhTextBuilder {
    public static final String TAG = "ETB";
    StringBuilder sbb;
    Vector<Enote> enhVec; // hold enhancements

    EnhTextBuilder () {
        sbb = new StringBuilder();
        enhVec = new Vector<Enote>(); // hold enhancements
    private class Enote {
        int pos, len;
        Object enh;
        Enote (int p, int l, Object e) {
            pos = p; len = l; enh = e;
    void append (String s) {
        Log.d(TAG,"ETB text:"+s);
    void append (String s, Object e) {
        Log.d(TAG,"ETB E:"+e);
        enhVec.add(new Enote(sbb.length(),s.length(),e));
    void append (String s, Object[] e) {
        for (int i = 0; i < e.length; i++) {
            Log.d(TAG,"ETB E:"+e[i]);
            enhVec.add(new Enote(sbb.length(),s.length(),e[i]));
    public String toString () { return sbb.toString(); }

    // Put text into TextView and apply accumulated span
    public void setText (TextView tv) {
        Spannable sText = (Spannable)tv.getText();
        //Log.d(TAG,"Spannable len:"+sText.length());
        for (Iterator ei = enhVec.iterator(); ei.hasNext(); ) {
            Enote e = (Enote);
            //Log.d(TAG,"Enh P: "+e.pos+" for "+e.len);


2. How to run unit test under 'tests' directory


In android source, it has unit tests under 'tests' directory.
Can you please tell me how can I run those unit tests?

Thank you.


3. How to drag and drop items of ListView?

4. converting ycbcr 420 to rgb

5. Getting a TextView to span the length of the screen

6. Customised grid

7. Need help for a proper way of using Listview paired with a background process