I cleaned up the code a bit and put it in a function. I'm not sure if something else, but this code works. Thanks for answers.
public SoapObject soap () throws IOException, XmlPullParserException {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("name", "myname"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE conn = new HttpTransportSE(URL); conn.call(SOAP_ACTION, envelope);
source share