try {
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty(“user_id”, str_user_id);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet=true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapPrimitive result = (SoapPrimitive)envelope.getResponse();
String strRes = result.toString();
str_user = strRes.substring(7);
str_user_id= strRes.substring(0,6);
ET02.setText(str_user);
dialog.setMessage(str_user_id);
dialog.show();
Intent myIntent = new Intent(audit_qualityV1.this, c_menu.class);
startActivityForResult(myIntent, 0);
} catch (Exception e) {
dialog.setMessage(e.getMessage());
dialog.show();
}
try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("user_id", str_user_id); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet=true; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION, envelope); SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); String strRes = result.toString(); str_user = strRes.substring(7); str_user_id= strRes.substring(0,6); ET02.setText(str_user); dialog.setMessage(str_user_id); dialog.show(); Intent myIntent = new Intent(audit_qualityV1.this, c_menu.class); startActivityForResult(myIntent, 0); } catch (Exception e) { dialog.setMessage(e.getMessage()); dialog.show(); }
Advertisements
Leave a Reply