Hallo! Ich habe eine Android Applikation in Android Studio 1.3 geschrieben. Nun versuche ich mittels Webservice (tempuri.org-xmlDatei), Daten aus meiner MySql Datenbank zu lesen/einzutragen. Versuche ich ein Wort in meine Datenbank zu schreiben bekomme ich immer "null" zurück. Nachdem ich "request.addProperty("Nova", null);" geschrieben habe kommt beim Debugger immer "request = null;" Bitte um Hilfe stehe total auf der Leitung.
Hier mein Code:
JavaScript-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20:
| SoapObject request = new SoapObject(NAMESPACE, METHOD_TERMIN_AUSLESEN);
request.addProperty("Nova", null); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); envelope.dotNet = true; HttpTransportSE transport = new HttpTransportSE(URL);
try { transport.call(SOAP_ACTION, envelope); SoapObject response = (SoapObject) envelope.getResponse(); m_ausgabe = response.toString(); } catch (Exception e) { Log.w(TAG, "I shouldn't be here"); m_ausgabe = "FEHLER"; } |
Durch mein Debuggen bin ich auf diese Exception gestoßen:
JavaScript-Quelltext
1:
| Fehler org.xmlpull.v1.XmlPullParserException: unexpected type (position:END_DOCUMENT null@1:1 in java.io.InputStreamReader@182c4864) |
Hänge dort schon ein paar Tage falls dieses Problem jeder kennt/oder helfen kann wär ich sehr froh.