Click here to Skip to main content
13,093,720 members (60,312 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi guys i am new at android development but i could not get my web service working help is much appreciated. I have no idea what should i do from now on i have been goggling fro days. Thanks
The problem what am i suppose to do next and i am not sure am i connected to the web service.

public class FirstScreen extends Activity {
    /** Called when the activity is first created. */
	private static final String SOAP_ACTION= "StockQuoteService";
	private static final String URL = "";	
	private static final String NAMESPACE = "";
	private static final String METHOD_NAME = "GetStockQuote";
	TextView tv;
    public void onCreate(Bundle savedInstanceState) {
        tv = (TextView)findViewById(;
    	SoapObject Request = new SoapObject(NAMESPACE,METHOD_NAME);
    	Request.addProperty("", "");
    	SoapSerializationEnvelope soapEnvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
    	soapEnvelope.dotNet = true;
    	AndroidHttpTransport aht = new AndroidHttpTransport(URL);
    	{, soapEnvelope);
    		SoapPrimitive resultString = (SoapPrimitive)soapEnvelope.getResponse();
    		tv.setText("Status :" + resultString );
    	catch(Exception e)
Posted 22-May-11 2:09am
_Ares!!! 25-May-11 8:44am
What do you want to do? Describe your question in details...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170813.1 | Last Updated 22 May 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100