(1)Web Service is working or not. (2)Have u written the iternet permission in ur android manifest file.
On Mar 31, 10:24 pm, Akshay Dave <[email protected]> wrote: > Hello, > I am trying to access webservice using KSOAP 2 ... I am having problem > with accessing webservice...Below are my parameters > > private static final String SOAP_ACTION = > "http://schemas.kickapps.com/services/soap/signInRegisterUser"; > private static final String METHOD_NAME= "signInRegisterUser"; > private static final String NAMESPACE = > "http://schemas.kickapps.com/services/soap/"; > private static final String URL = > "http://affiliate.kickapps.com/soap/KaSoapSvc"; > > SoapSerializationEnvelope soapEnvelope = new > SoapSerializationEnvelope(SoapEnvelope.VER11); > > SoapObject Request = new SoapObject(NAMESPACE,METHOD_NAME); > Request.addProperty("affiliateUserName","xxxxx"); > Request.addProperty("affiliateEmail","[email protected]"); > Request.addProperty("affiliateSiteName","xxxxxx"); > Request.addProperty("userName","avdTest"); > Request.addProperty("email","[email protected]"); > Request.addProperty("firstName","Aks"); > Request.addProperty("LastName","Test"); > Request.addProperty("LastName","Test"); > Request.addProperty("adminTags","1234565"); > Request.addProperty("gender","M"); > Request.addProperty("birthday","1960-01-01"); > Request.addProperty("password","testapps10"); > Request.addProperty("key","68fbdfd1"); > Request.addProperty("aboutMe","Hey"); > Request.addProperty("postalCode","12345"); > Request.addProperty("genRestApiToken","T"); > //soapEnvelope.dotNet = true; > //soapEnvelope.bodyOut = Request; > soapEnvelope.setOutputSoapObject(Request); > > //@SuppressWarnings("deprecation") > HttpTransportSE transport = new HttpTransportSE(URL); > //AndroidHttpTransport aht= new AndroidHttpTransport(URL); > > try{ > > transport.call(SOAP_ACTION, soapEnvelope); > SoapPrimitive resultSOAP = > (SoapPrimitive)((SoapObject)soapEnvelope.bodyIn).getProperty(0); > Toast.makeText(ULocalInput.this,"Hi",Toast.LENGTH_LONG).show(); > //SoapPrimitive resultString = > (SoapPrimitive)soapEnvelope.getResponse(); > tv.setText("Status:" + resultSOAP.toString()); > } catch (IOException e) { > e.printStackTrace(); > System.out.println("SOAP Error : " + e.getMessage()); > System.out.println("SOAP Response : " + transport.responseDump); > tv.setText("Status1:" + e.getMessage()); > } catch (XmlPullParserException e) { > e.printStackTrace(); > System.out.println("SOAP Error : " + e.getMessage()); > System.out.println("SOAP Response : " + transport.responseDump); > > tv.setText("Status2:" + e.getMessage()); > } > > I don't know wht's going wrong here but I am getting error as > expected:END_TAG{http://schemas.xmlsoap.org/soap/envelope/}Body(position:END_TAG{http://schemas.xmlsoap.org/soap/envelope/}soap:Fault>@1:354 > in java.io.InputStreamReader@43e52820) > > I would appreciate if anyone can suggest me what am I doing wrong.. > > Many Thanks > Akshay -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

