
WebService
cdc2011
这个作者很懒,什么都没留下…
展开
-
向空XML自己添加数据成XML格式
[WebMethod(Description = "向空XML自己添加数据")] public XmlDocument XD() { XmlDocument xmldoc = new XmlDocument(); //加入XML的声明段落, xmldoc.AppendChild(xmldoc.C原创 2012-12-13 17:07:35 · 1079 阅读 · 0 评论 -
一张表数据转换成xml格式数据(dataset2XML)
[WebMethod(Description = "[xml格式死板不建议使用]一张学生信息表返回XML格式(dataset转换成stream 再加载到xml)")] public XmlDocument test() { string MyConnStr = ConfigurationManager.AppSettings["testcon原创 2012-12-13 17:10:33 · 518 阅读 · 0 评论 -
多表数据(学生表、初中成绩表及高中成绩表)输出XML格式
[WebMethod(Description = "学生表、初中成绩表及高中成绩表输出XML格式")] public XmlDocument xd_GetM_Grade() { //学生表信息查询 string MySelectStr_1 = "select Sname, Sage, Ssex from dbo.Stu原创 2012-12-13 17:13:54 · 866 阅读 · 0 评论 -
一张表学生表输出XML格式(横向输出)
[WebMethod(Description = "一张表学生表输出XML格式(横向输出)")] public XmlDocument xd_Get_Stu() { //学生表信息查询 string MySelectStr_1 = "select Sname, Sage, Ssex from dbo.Stude原创 2012-12-13 17:16:33 · 785 阅读 · 0 评论 -
WebService 传输图片
[WebMethod] /* WebService中实现了一个方法GetImage(),在内存中生成一张100x100的Bitmap.然后在该Bitmap上画一条线,再将这个图片转换为byte[]传递给调用者.调用的程式将该byte[]还原为Bitmap. */ public byte[] GetImage()转载 2012-12-14 10:56:51 · 6938 阅读 · 0 评论 -
boris_WebService
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services;using System.Xml;using System.Data;using System.Data.SqlClient;using System.IO;using原创 2012-12-14 10:58:40 · 568 阅读 · 0 评论