i have done the java class for android and .net, but seems like got a minor problem with the layout
i got this result
i want the data only, i dun want those 'anyType' 'id' 'name' ...etc text
i want to have a data something like this:
Code:
package com.webservice.test;
import android.app.Activity;
import android.os.Bundle;
import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapPrimitive;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.AndroidHttpTransport;
import android.widget.TextView;
public class mainScreen extends Activity {
private static final String SOAP_ACTION = "http://tempuri.org/GetAllEmployees";
private static final String METHOD_NAME = "GetAllEmployees";
private static final String NAMESPACE = "http://tempuri.org/";
private static final String URL = "http://max-5.com.my/EmployeeWebService.asmx";
TextView tv;
TextView tvValue;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
tv = (TextView)findViewById(R.id.textView1);
SoapObject Request = new SoapObject (NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
soapEnvelope.dotNet = true;
soapEnvelope.setOutputSoapObject(Request);
AndroidHttpTransport aht = new AndroidHttpTransport(URL);
try
{
aht.call(SOAP_ACTION, soapEnvelope);
SoapObject resultString = (SoapObject) soapEnvelope.getResponse();
tv.setText(resultString.toString());
}
catch(Exception e)
{
tv.setText(e.toString());
}
}
}
i got this result
Code:
anyType{Employee=anyType{Id=1;Name=Peter;Salary=22000;};Employee=anyType{Id=2;Name=Marcu........
i want to have a data something like this:
Code:
1
Peter
22000
2
Marcu
24000
.... continues...