How to call methods from a web service?

by dilu » Tue, 03 Feb 2009 17:04:11 GMT


Sponsored Links
 I am having a webservice at particularURL:-
 http://192.168.1.10/abcd/Service_MobClients.asmx" ;.
Under that webservice we are having different methods like
1.authenticate client

2.contacts to sync
3.inbox to sync
etc.
now I want to call these methods with parameters.
So,please tell me how to call these methods .
Thanks
dileep
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Doc to PDF

Hi,
 Apologies for a total unrelated topic. But I am writing my docs in .doc
(msword) and I dont have a PDF converter. If anyone has it and is kind
enough for converting my docs to pdf, please reply me personally.

Thanks a lot,
Harsh

--~--~---------~--~----~------------~-------~--~----~

2. Confusing Problem about MediaPlayer

In Sample given by google There is a button to invoke a file.
    private void playVideo(Integer Media) {
        try {
            // If the path has not changed, just start the media
player
            path = "/data/room.mp4";

            // Create a new media player and set the listeners
            mp = new MediaPlayer();
            mp.setDataSource(path);
            mp.setDisplay(holder.getSurface());
            mp.prepare();
            mp.setOnBufferingUpdateListener(this);
            mp.setOnCompletionListener(this);
            mp.setOnPreparedListener(this);
            mp.setAudioStreamType(AudioSystem.STREAM_MUSIC);
            Log.d("\n\nCREATE", "mediaplayer");
            mp.start();
        } catch (Exception e) {
            Log.e(TAG, "error: " + e.getMessage(), e);
        }
    }

    private OnClickListener mPlayListener = new OnClickListener() {
        public void onClick(View v) {
            playVideo(extras.getInt(MEDIA));

        }
    };


When I copy the code directly to onCreate like the following program
creshed...:

    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.mediaplayer);
        mPreview = (SurfaceView) findViewById(R.id.surface);

        // Set the transparency
        getWindow().setFormat(PixelFormat.TRANSPARENT);
        // Set a size for the video screen
        holder = mPreview.getHolder();
        holder.addCallback(this);
        try {
            // If the path has not changed, just start the media
player
            path = "/data/room.mp4";

            // Create a new media player and set the listeners
            mp = new MediaPlayer();
            mp.setDataSource(path);
            mp.setDisplay(holder.getSurface());
            mp.prepare();
            mp.setOnBufferingUpdateListener(this);

            mp.setOnCompletionListener(this);
            mp.setOnPreparedListener(this);
            mp.setAudioStreamType(AudioSystem.STREAM_MUSIC);
            Log.d("\n\nCREATE", "mediaplayer");
            mp.start();
        } catch (Exception e) {
            Log.e(TAG, "error: " + e.getMessage(), e);
        }
}

There is no error information for debug.
Anyone have the same problem?
Thanks in advance.




--~--~---------~--~----~------------~-------~--~----~

3. Cursor c = this.getContentResolver().query( gets nullpointer exception when code is moved

4. Webpage Interaction - File Uploads

5. Adding file to emulator

6. Spell checking support/dictionary plugin for EditText widget?

7. Next Release of Android SDK