July 25, 2002 - Creating Web Service Proxy dll | WebReference

July 25, 2002 - Creating Web Service Proxy dll

Yehuda Shiran July 25, 2002
Creating Web Service Proxy dll
Tips: July 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

The second step in creating a proxy is compiling it into a binary library, a .dll file. The executable you need to use is jsc.exe. When you installed the .NET framework, the path to jsc.exe should have been added in your path. Type jsc at the Command Prompt window and see that you get the help file for this command. Now, type the command with its proper parameters:

  jsc /t:library /out:bin\calcProxy.dll calcProxy.js
where the argument of the command is the JScript .NET code which is created by the wsdl command. The other switches are:

/t:library specifies that a library should be created, as opposed to an executable.
  • /out: specifies where the .dll file should be saved. You must put it in a directory named bin, under the current directory you are working in now. Our example creates bin\calcProxy.dll.

    Here is the Command Prompt window showing the echo of the wsdl and jsc commands, one after the other:

    To learn more about JScript .NET and ASP.NET, go to Column 113, JScript .NET, Part VII: Consuming add from ASP.NET.