| 12345678910111213141516171819202122232425262728293031 |
- <%@ WebHandler Language="C#" Class="test" %>
- using System;
- using System.Web;
- using System.Xml;
- using System.Xml.Linq;
- using DK.XuWei.WebMes;
- using System.Collections;
- public class test : IHttpHandler {
- public void ProcessRequest (HttpContext context) {
- context.Response.ContentType = "text/plain";
- //ServiceReference1.WebServiceSoapClient c = new ServiceReference1.WebServiceSoapClient();
- //string result = c.HelloWorld(" OK!");
- //context.Response.Write(result);
- Hashtable ht = new Hashtable();
- ht.Add("name", "abc");
- XmlDocument xml = XmlClient.Soap("http://localhost:57652/api/test/testWebService.asmx", "HelloWorld", ht);
- context.Response.Write(xml.DocumentElement.InnerText);
- }
- public bool IsReusable {
- get {
- return false;
- }
- }
- }
|