写一个简单的 web service

hello,world 也能出错?呵呵,眼见为实public service1: WebService
{
hello,world 也能出错?呵呵,眼见为实
hello,world 也能出错?呵呵,眼见为实
public service1()
{
hello,world 也能出错?呵呵,眼见为实}

hello,world 也能出错?呵呵,眼见为实        [WebMethod]
hello,world 也能出错?呵呵,眼见为实        
public string HelloWorld()
{
hello,world 也能出错?呵呵,眼见为实            
return "Hello World, I am running in montaque notebook .NET";
hello,world 也能出错?呵呵,眼见为实        }

hello,world 也能出错?呵呵,眼见为实
hello,world 也能出错?呵呵,眼见为实        [WebMethod]
hello,world 也能出错?呵呵,眼见为实        
public ArrayList [] TestArrayList()
{
hello,world 也能出错?呵呵,眼见为实            ArrayList [] ar
=new ArrayList[1];
hello,world 也能出错?呵呵,眼见为实            ar[
0].Add(1);
hello,world 也能出错?呵呵,眼见为实            ar[
0].Add(2);
hello,world 也能出错?呵呵,眼见为实            
return ar;
hello,world 也能出错?呵呵,眼见为实        }

hello,world 也能出错?呵呵,眼见为实
hello,world 也能出错?呵呵,眼见为实
hello,world 也能出错?呵呵,眼见为实}


然后运行,测试一个helloworld
你能猜到会返回什么吗?


相关文章: