Hi, I'm just starting with android development, and I'm trying to access a .NET web service from a android app, here's a piece of my code,
private static final String SOAP_ACTION = "http://tempuri.org/getHostName"; private static final String METHOD_NAME = "getHostName"; private static final String NAMESPACE = "http://tempuri.org/"; private static final String URL = "http:// http://creativebizz.blocs.com.br/NotificationService.asmx"; public String getHost(){ SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); try{ HttpTransport androidHttpTransport = new HttpTransport(URL); androidHttpTransport.call(SOAP_ACTION, envelope); SoapPrimitive result = (SoapPrimitive)envelope.getResponse(); return result.toString(); }catch(Exception e){ return e.getMessage(); } } but it just doesn't works! Any help would be great! Thanks, Phyllipy -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting