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.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class SOAP2 extends Activity {



    private static String SOAP_ACTION = "http://session/
getAllPositions";
    private static String METHOD_NAME = "getAllPositions";
    private static String NAMESPACE = "http://session/";
    private static String URL =" http://192.41.218.56 :8080/WSGeoEAR-
WSGeoServer/NavFinderBean?WSDL";

   TextView tv;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        tv=(TextView)findViewById(R.id.result);
        try {

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

        Log.i("PROPERTYINFO","2");
     PropertyInfo propertyInfo=new PropertyInfo();
          propertyInfo.name = "arg0";
          propertyInfo.setValue(1);
          propertyInfo.type = propertyInfo.INTEGER_CLASS;
          request.addProperty(propertyInfo);

          /*propertyInfo.setName("idUtente");
          propertyInfo.setValue(1);
          propertyInfo.setNamespace(NAMESPACE);

          request.addProperty(propertyInfo);
      */

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

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

        HttpTransportSE androidHttpTransport = new
HttpTransportSE(URL);
        Log.i("TRasport url","5");
        androidHttpTransport.call(SOAP_ACTION, 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");
  ((TextView)findViewById(R.id.lblStatus)).setText(res.toString()
                );

 
((TextView)findViewById(R.id.lblStatus)).setText(resultsRequestSOAP.toString());


  Log.i("STAMPO A VIDEO","9");
           }catch(Exception E) {
        ((TextView)findViewById(R.id.lblStatus)).setText("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
Monitor??

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 http://www.eclipse.org/forums/

On Mar 16, 4:13am, DoM <daume...@gmail.com> wrote:

--


Sponsored Links


Other Threads

1. How to license Google Closed Source Apps for device

I found in HTC Magic, Settings-> About Phone -> Legal Information-> Google
Legal.
I found somethings looks like license.



On Sun, Sep 6, 2009 at 8:29 PM, Eric Wong (hdmp4.com)







-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

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

2. buttons hidden

I'm trying to show a simple layout where I can call this activity and
fill in some values, then hit the save or cancel button. Unfortunately
the save and cancel buttons never appear. Can someone help please?


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="8dp"
        android:paddingRight="8dp"
        android:paddingTop="8dp">

        <TableLayout
                android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content">

                <TableRow>

                        <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/band"
                                android:textStyle="bold"
                                android:textSize="16px"
                                android:paddingRight="5dp" />

                        <EditText
                                android:id="@+id/band"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_weight="1"/>

                </TableRow>

                <TableRow>

                        <TextView
                                android:layout_width="wrap_content"
                                android:layout_height="wrap_content"
                                android:text="@string/members"
                                android:textStyle="bold"
                                android:textSize="16px"
                                android:paddingRight="5dp" />

                        <EditText
                                android:id="@+id/members"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_weight="1"/>

                </TableRow>


        </TableLayout>

        <TableLayout
                android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent">

                <TableRow>

                        <Button
                                android:id="@+id/save"
                                android:text="@string/save"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_weight="1" />

                        <Button
                                android:id="@+id/cancel"
                                android:text="@string/cancel"
                                android:layout_width="fill_parent"
                                android:layout_height="wrap_content"
                                android:layout_weight="1" />

                </TableRow>

        </TableLayout>

</LinearLayout>
--~--~---------~--~----~------------~-------~--~----~

3. Is there a way to install LiveAndroid to PC permanently?

4. CTS question: about wifi and navigation keys

5. Ruby / furigana in WebView

6. Can't get query string from google search widget in some cases.

7. Android project