Advertisement
kusha45

webservice

Dec 15th, 2011
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.69 KB | None | 0 0
  1. private static final String SoapLogin = "http://tempuri.org/Login";
  2.     private static final String MethodLogin = "Login";
  3.  
  4. private static final String NAMESPACE = "http://tempuri.org/";
  5.    
  6.     private static final String URL = "http://192.168.75.227:41/Service1.asmx";
  7.  
  8.     request = new SoapObject(NAMESPACE, MethodLogin);
  9.             request.addProperty("userName", Uname);
  10.             request.addProperty("password", pas);
  11.             envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
  12.             envelope.dotNet = true;
  13.             envelope.setOutputSoapObject(request);
  14.  
  15.             aht = new AndroidHttpTransport(URL);
  16.             aht.call(SoapLogin, envelope);
  17.             result = envelope.getResponse();
  18.             flag = Boolean.valueOf(result.toString());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement