小弟想通过c#在winform下进行网络编程,实现基于soap的xml传输,能否通过添加web引用的方式来实现?不想出现web页面,做成分布式的最理想,但不知如何下手?请高手给予明示,能否给出具体代码实例或提供相关资料?多谢了!

解决方案 »

  1.   

    yes, if you need to access a webservice, you just need to add a web reference to the webservice, VS.NET will generate a proxy for you, seehttp://samples.gotdotnet.com/quickstart/winforms/doc/WinFormsData.aspx
      

  2.   

    http://www.manbu.net/Lib/Class2/Sub5/index.asp很多教程
      

  3.   

    谢谢楼上两位提供的资源!
    to 思归大哥:
        在您所提供的网页上好像是介绍databinding的知识,其中只涉及到了一点winform在引用中添加system.net 和system.webservice,关于服务器端是winform的形式,通过添加web引用来实现webservice中的soap传递xml文档或xml数据流的知识好像没有,能否请您帮忙提供点相关资料呢,多谢了!期待中……