private static final String SOAP_ACTION = "salvaUtente";
private static final String METHOD_NAME = "salvaUtente";
private static final String NAMESPACE = "urn:Registrazione";
private static final String URL = "http://192.168.0.8:8080/axis/services/Registrazione?wsdl";
public void invocaWebService(){
LinkedList<String> ll = new LinkedList<String>();
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("nome","antonino");
request.addProperty("cognome","antonino");
request.addProperty("via","antonino");
request.addProperty("username","antonino");
request.addProperty("password","antonino");
request.addProperty("sesso",new Boolean(true));
request.addProperty("interessi",ll);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
Object resultsRequestSOAP = envelope.getResponse();
String[] results = (String[]) resultsRequestSOAP;