Web Services Discovery

.NET Framework Developer's Guide 
Web Services Discovery 

Given the URL to a discovery document residing on a Web server, a developer of a client application can learn that a Web service exists, what its capabilities are, and how to properly interact with it. This process is known as Web service discovery.

Through the process of Web service discovery, a set of files is downloaded to the local computer containing details about the existence of Web services. The files can be service descriptions, XSD schemas, or discovery documents. Using the Wsdl.exe tool, you can create a proxy class to the Web service described by a service description or XSD schema. For details about creating a proxy class, see Creating an XML Web Service Proxy. A downloaded discovery document contains information about the existence of other Web services that might reside on a different Web server. For details about the contents of a discovery document, see How to: Enable Discovery for XML Web Services.

You can use the Web Services Discovery tool (Disco.exe) from a command prompt to perform Web service discovery on a URL.

Disco /out:location /username:user /password:mypwd /domain:mydomain http://www.contoso.com/my.disco
NoteNote

The arguments listed are the commonly used arguments for Disco.exe. For the full syntax of Disco.exe, see Web Services Discovery Tool (Disco.exe).

Parameter Value

http://www.contoso.com/my.disco

The URL to enact the discovery process on.

/out:location

The location to create the file containing the discovery results. The default value is the current directory. (Optional)

/username:user

The user name to use when connecting to a Web server that requires authentication. (Optional)

/password:mypwd

The password to use when connecting to a Web server that requires authentication. (Optional)

/domain:mydomain

The domain to use when connecting to a Web server that requires authentication. (Optional)

Referenced to http://msdn2.microsoft.com/en-us/library/f9t5yf68.aspx

转载于:https://www.cnblogs.com/ellipse-gao/archive/2007/05/24/758972.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值