我爱Aspx >> Asp.Net >> Consuming a Webservice Part 2 of 2[等级:高级](转载:aspfree)To create the proxy we use a utility in the .NET SDK called "WSDL.exe". WSDL.exe is a command line tool that requires different switches. Because I can never type the switches correctly the first time, I like to use batch files. Once we provide WSDL.exe with the correct switches, it outputs a .vb file (because I chose to use VB.NET as the language, using the /l switch). Once you have the .vb file, you run it through the compiler, vbc.exe, to create the .dll. Here is the batch file I used to create the proxy dll.
ECHO copy the following lines to a text file and save with the extension ".bat"
ECHO this batch file will create two files as specified by the outCodeFileName
ECHO and the outDLLFileName
Set UseLanguage=VB
Set WSDLPath=http://64.85.12.73/websvc/whatsnew123aspx_ds.asmx?WSDL
Set outCodeFileName=whatsnew123aspX_ds.vb
Ҷƪл˵?
Creating a Webservice Part 1 o..[05-28]
一个用webservice behavior实现的..[05-28]
加强 WEB SERVICE 的安全性[05-28]
WebService Behavior的一个中文B..[05-28]
Web服务到底是什么(转)[05-28]
WEB服务有待实践的检验[05-28]
一个webseveice的例子[05-28]
正确认识“Web服务”( 转)[05-28]
什么时候应该使用Web Service【转..[05-28]
HOW TO: BETA: Integrate a .NET..[05-28]
Creating a Webservice Part 1 o..[05-28]
一个用webservice behavior实现的..[05-28]
加强 WEB SERVICE 的安全性[05-28]
WebService Behavior的一个中文B..[05-28]
Web服务到底是什么(转)[05-28]
WEB服务有待实践的检验[05-28]
一个webseveice的例子[05-28]
正确认识“Web服务”( 转)[05-28]
什么时候应该使用Web Service【转..[05-28]
WSDL文件详解(转贴)下[05-28]