客戶端調用webservice

//注意 在1.1的machine.config,默認webservice去除了post,get方法 machine.config中找到把去掉的加上 1,webservice
[WebMethod]
  public string GetMessage()
  {
   XmlDocument doc=new XmlDocument();
   doc.Load(Server.MapPath(".")+"/test.xml");
   string rtn=doc.OuterXml;
   doc=null;
   return rtn; 
  }
2,aspx中調用
"; } div1.innerHTML=s; div1.style.visibility="visible"; }  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章