Click here to Skip to main content
15,900,461 members

Comments by Patel Shweta (Top 14 by date)

Patel Shweta 28-May-14 4:19am View    
ok sure
Patel Shweta 8-May-14 3:54am View    
my activity.cs file code is:

using System;

using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using webserviceexample.com.cdy.ws;
using System.Net;
using System.IO;
using System.Text;

namespace webserviceexample
{
[Activity(Label = "webserviceexample", MainLauncher = true, Icon = "@drawable/icon")]
public class Activity1 : Activity
{
int count = 1;

protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);

// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);

// Get our button from the layout resource,
// and attach an event to it
Button button = FindViewById<Button>(Resource.Id.MyButton);
TextView lable = FindViewById<textview>(Resource.Id.lbltxt);
com.cdy.ws.Androidhelloo dd = new com.cdy.ws.Androidhelloo();
lable.Text = dd.HelloWorld();
button.Click += delegate { button.Text = string.Format("{0} clicks!", count++); };
}
}
}


My webservice code is

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace AndroidHello
{
///
/// Summary description for Androidhelloo
///

[WebService(Namespace = "http://127.0.0.1:8012/Androidhelloo.asmx")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
[System.Web.Script.Services.ScriptService]

public class Androidhelloo : System.Web.Services.WebService
{
[SoapDocumentMethod(Action = "http://127.0.0.1:8012/Androidhelloo.asmx")]
[WebMethod]
public string HelloWorld()
{

return "Hello World";
}
public string Namespace { get; set; }
}

}
Patel Shweta 8-May-14 3:26am View    
ya sure
Patel Shweta 10-Mar-14 8:34am View    
:(
Patel Shweta 10-Mar-14 8:25am View    
no.I want to Decode generated Captcha