Hi, Thanks for your answer, I had solved the problem last night. I agree with that these steps are important. But there is also two other steps on the server side that I was not aware of, I think you had them set correctly (becouse your code is working). Beside following the steps you mentioned, we also need to change the namespace of the web services, using http://tempuri.org is wrong. Also, there is an option in the IE explorer that needs to be checked. The option allow access data source accros domains" needs to be checked. Also, in order to pass data other than strings (float, integers,...), we need to implement a serliziation class for these data types and compile it with the library. Thanks for your kind reply, this was really a big headache!
On Sat, Dec 19, 2009 at 7:07 AM, android09 <[email protected]> wrote: > Hi wedyan, > > I had also the same problem but finally i got the solution. I have > some steps for you, just go through it. > 1) Remove PropertyInfo from your code and add this like: > > SoapObject request = new SoapObject(NAMESPACE,METHOD_NAME_TEMP); > // if you have 2 params in .net than add property this way. Suppose, > "sum of two integers" instead of PropertyInfo > request.addProperty("num", str1); > request.addProperty("b", str2); > > 2) Use HttpTransportSE instead of AndroidHttpTransport. and add > androidHttpTransport.setXmlVersionTag("<?xml version=\"1.0\" encoding= > \"UTF-8\"?>"); > > 3) To Display Result: > SoapPrimitive resultString = (SoapPrimitive)soapEnvelope.getResponse > (); > System.out.println(resultString); > txtView.setText("Result is : "+resultString); > > Now, go through the above steps and also compare your application. I > hope you will find the solution. Let's hope. > > Best Luck.... > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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

