webservice对代理,防火墙兼容比较方便。
可以把DataSet保存到文件中,然后在webservice中利用DIME传输文件。考虑安全性可以传输加密的文件。

解决方案 »

  1.   

    private void WriteXmlToFile(DataSet thisDataSet) {
        if (thisDataSet == null) { return; }
        // Create a file name to write to.
        string filename = "myXmlDoc.xml";
        // Create the FileStream to write with.
        System.IO.FileStream myFileStream = new System.IO.FileStream
           (filename, System.IO.FileMode.Create);
        // Create an XmlTextWriter with the fileStream.
        System.Xml.XmlTextWriter myXmlWriter = 
           new System.Xml.XmlTextWriter(myFileStream, System.Text.Encoding.Unicode);
        // Write to the file with the WriteXml method.
        thisDataSet.WriteXml(myXmlWriter);   
        myXmlWriter.Close();
     }
      

  2.   

    masterz(www.fruitfruit.com) :为什么不直接生成代理类,进行方法调用参数传输就OK 了呢?而要生成文件再进行传输?能不能详细说说怎么利用DIME传输文件?当遇到同一事件并发时会怎么处理的?同时要上传图片或者rar文件到服务器时速度太慢。谢谢。^_^
      

  3.   

    B\S处理数据更慢而且开发麻烦,要受到太多的约束。WIN FORM功能更强大一点。只是在初始化的时候下载数据速度比较慢一点。以及数据更新的时候速度慢。其它时间都是比较快的,而且win form中可是使用多线程进行数据上传弥补了速度慢的缺陷。
    B\S的好处就是没有数据传输的危险,可以在随时随地进行使用,对客户端系统没有什么要求。
    各有各的好处和用处
    但是对于比较少移动的办公软件来说,还是win form的功能实用
      

  4.   

    估计要传送的数据记录会比较多,通过文件传送效率高一些。还留有压缩文件,加密文件的余地。而且接受文件方处理起来也很方便。也可以在多线程中处理soap通信。你看看WSE的文档有传送文件的内容
    http://msdn.microsoft.com/webservices/building/wse/default.aspx
      

  5.   

    很容易找到这方面的文章
    Using WSE-DIME for Remoting over Internet. - C# ...
    www.codeproject.com/cs/webservices/remotingdime.asp
    Using WSE DIME in .NET
    www.sswug.com/see/21936