• λ我爱Aspx >> Asp.Net >> Consuming a Webservice Part 2 of 2[等级:高级](转载:aspfree)
  • Consuming a Webservice Part 2 of 2[等级:高级](转载:aspfree)

  • :aspxer  Դ:internet  :2007-5-28 20:37:28  ؼ:web,asp,webservice
  • 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

    Ҷƪл˵?
  • һƪCreate and Control Windows Services--Not a Slap Shot, but Almost as Fast[等级:高级]
    һƪCreating a Webservice Part 1 of 2[等级:高级](转载:Aspfree)