How to configure TCP/IP MONITOR

by DoM » Fri, 18 Mar 2011 19:21:07 GMT

Sponsored Links
 Can anyone help me to configure Tcp/ip monitor on eclipse.
I'm writing a client for a Web Server running on remote machine.This
is my code:

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.PropertyInfo;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import org.ksoap2.transport.HttpTransportSE;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class SOAP2 extends Activity {

    private static String SOAP_ACTION = "http://session/
    private static String METHOD_NAME = "getAllPositions";
    private static String NAMESPACE = "http://session/";
    private static String URL =" :8080/WSGeoEAR-

   TextView tv;
    /** Called when the activity is first created. */
    public void onCreate(Bundle icicle) {
        try {

       Log.i("Invio request","1");
      //Chiamo il Metodo del WebServer
       SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

     PropertyInfo propertyInfo=new PropertyInfo();
 = "arg0";
          propertyInfo.type = propertyInfo.INTEGER_CLASS;



          Log.i("Aggiunte le propriet alla request","3");
                SoapSerializationEnvelope envelope = new
        envelope.dotNet = true;

        Log.i("ENVELOPE SETTATA","4");

        HttpTransportSE androidHttpTransport = new
        Log.i("TRasport url","5");, envelope);
         Log.i("Envelope inviata","6");
        //Prende la risposta SOAP e ne estrae il corpo

     SoapObject resultsRequestSOAP =  (SoapObject) envelope.bodyIn;
            Log.i("Ricevuta risposta","7");

 String res = resultsRequestSOAP.toString();
  Log.i("Metto la risposta nella var res","8");


  Log.i("STAMPO A VIDEO","9");
           }catch(Exception E) {
        ((TextView)findViewById("ERROR:" +
E.getClass().getName() + ": " + E.getMessage());
            Log.i("Stampo errore","9");
I've Tomcat ho run on localhost:8080,How can I configure Tcp/ip

Thanks in advance


Re: How to configure TCP/IP MONITOR

by Indicator Veritatis » Sat, 19 Mar 2011 09:33:47 GMT

 his is an Eclipse question, not an Android question. This is not a
good place to get an answer for it.

Try one of the forums at

On Mar 16, 4:13am, DoM <> wrote:


Sponsored Links

Other Threads

1. ID Handling between activities


I have two activities. Activity1 displays a list with different items,
Activity2 is a timer.
Each item (in Activity1) has a name, and a special time saved in the
Based on the time of each item the timer in Activity2 has to be set.

For example when I select item4 in Activity1 which has a time of 2
min, the timer in Activity2 should be initialized with 2 minutes.

So I need the ID form the element I selected (in Activity1) in
Activity2, because ID is my key element in the database and the query
to get the minutes of the element takes place in Activity2.

Can anybody tell me how I get the ID from the element which I selected
in Activity1 to Activity2 that I can use this ID in Activity2?

I hope that everybody can understand my question, it is hard for me to

Here is the call of Activity2 (onCreate) taken place in Activity1.

private void runTheTimer() {
        Intent i = new Intent(this, TeaTimer.class);
        startSubActivity(i, ACTIVITY_CREATE);


2. I need the sample files for MOCK LOCATION PROVIDER

Can anybody who has made a mock location provider for use, post the
contents of each required file here? I need to prepare a mock location
provider, sample files would be helpful.

3. Location Manager Questions w.r.t Evaluation

4. Tip for understanding the builtin databases

5. is there any conversation capabilities?

6. EJB 3.0

7. Cant pass Arbitrary Objects as Message.obj field