一個別人寫的在WindowCE下發HTTP包的類

using System;
using System.Data;
using System.Net;
using System.Net.Sockets;
using System.IO;
using System.Text;
using System.Xml;
using System.Threading;
using System.Collections;
using System.Runtime.InteropServices;
using System.Reflection;

using System.Drawing;
using System.Windows.Forms;

namespace Lindo.Webservice
{
/// <summary>
/// 2006-3-27 舒海燕
/// 
/// 用於在移動設備上調用Webservice;
/// 支持直接調用和通過代理調用;
/// 能CMNET接入的無需設置代理;
/// 通過CMWAP接入的需設置代理"http://10.0.0.172:80"
/// </summary>

public class compactService2
{
private string URL="";
private string ProxyURL="";

//private Size realSize;

// Http request/response
private HttpWebRequest m_req;
private HttpWebResponse m_resp;

// Data buffer for stream operations
private byte[] dataBuffer;
private int DataBlockSize = 256;


//private string m_Status;
//private string UpdateUrl;
public int pbVal=0, maxVal=0;

private string reStr="";
private bool state=false;

屬性

webservice調用,http方式

方法
 
發佈了25 篇原創文章 · 獲贊 5 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章