写一个简单的 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
你能猜到会返回什么吗?


相关文章:

猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2021-12-22
  • 2021-10-08
  • 2021-08-07
  • 2022-12-23
  • 2021-10-08
相关资源
相似解决方案