有两种方式:.net wsdl文件用法

(一)工程—引用Web服务

  添写wsdl文件地址,单击前往,修改命名空间,确定。

  命名空间.WebService名称.FileServiceClient fs =

   new 命名空间.WebService名称.FileServiceClient();//实例化webservice客户端对象

 

(二)通过WSDL文件自动生成类-WebService

  使用在vs2008中的命令提示(命令行)工具,执行
  wsdl "http://238.24.356.32:7001/fileservice/services/man?wsdl"

  就自动生成了此WebService调用的类。

  在此 C:\Program Files\Microsoft Visual Studio 9.0\VC 目录下。

  

相关文章:

  • 2021-05-18
  • 2021-12-15
  • 2021-11-25
  • 2021-10-03
  • 2022-02-11
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-07
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
相关资源
相似解决方案