Geek Noise
Rants, rambles, news and notes by Peter Provost
22

Implementing Another's WSDL Interface

Tuesday, 22 April 2003 12:38 by Peter Provost

Today I ran across something I'd never had to do before. I had a WSDL file that I had to implement in my own webservice project. By reading the WSDL, I was pretty sure that I could create it by hand, but I was worried about whether it would really be the same thing or not.

I figured that there had to be a way to do this in .NET and of course there is. The WSDL.EXE tool has an option that will create an abstract base class for a given WSDL. If you need to use this, it is simple:

C:\> wsdl.exe /server MyService.wsdl

This example will produce a .cs file called MyService.cs that contains an abstract class called MyService that has abstract methods for each method defined in the WSDL file. Nice stuff.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   Technology
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed