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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

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.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint