<?xml version="1.0" encoding="UTF-8"?> -<ArrayOfString xmlns="http://tempuri.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <string>RE</string> <string>Wazir Muhammad</string> <string>Logistics</string> <string>AlReem Water Purification</string> <string>1234567890</string> <string>3000</string> <string>Dummy</string> </ArrayOfString>
private class getUser extends AsyncTask<String,Void,String> { String result; TextView tv=(TextView) findViewById(R.id.tvEName); @Override protected String doInBackground(String... params) { //String value = params[0].toString(); SoapObject Request=new SoapObject(NAMESPACE,METHOD_NAME); Request.addProperty("value","RE"); 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(); result=resultString.toString(); } catch (Exception ex){ result=ex.toString(); } return result; } @Override protected void onPostExecute(String result) { super.onPostExecute(result); tv.setText(result); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)