I am trying to connect to the web service using ksoap2. For some reason I am getting this XMLPullParserException.
any Idea what that could be about. My code is as below:
PHP Code:
SoapObject request = new SoapObject(NAMESPACE, "AuthenticateUser");
SoapObject inAddIntegers = new SoapObject(NAMESPACE,"AuthenticateUser");
inAddIntegers.addProperty("Username", "bkhan@gmail.com");
inAddIntegers.addProperty("Password", "astegic");
request.addProperty("AuthenticateUser", inAddIntegers);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet=true;
tv.setText("baran khan");
try {
//edit.setText("mfine");
AndroidHttpTransport transport = new AndroidHttpTransport(URL);
transport.call("http://tempuri.org"+SOAP_ACTION, envelope);
Object result = envelope.getResponse();
tv.setText(result.toString());