Jon Flanders' Blog

More fun with the BizTalk Web Services Wizard code

Monday, February 28, 2005 8:00:00 AM (GMT Standard Time, UTC+00:00)

For a BizTalk project I am working on, we want to take an existing asmx Web Service and redirect the calls directly to BizTalk.  This Service has about 5 methods, so I need to create 5 orchestrations.  If I run the BizTalk Web Services Publishing Wizard on that assembly, each port becomes a seperate asmx file. Not what we want.

So I dug back into the code I had been working on a few months ago, and created a console application that takes a path to a BizTalk assembly, the name of the asmx file and the name of the virtual directory you want as the three arguments.  It runs the code from the Microsoft.BizTalk.WebServices assembly and takes all the webmethods from each of the 5 seperate asmx files that would be created and puts them all into one since asmx class.  It also allows me to control the name of the Web Service and asmx file created.


I could do this by hand by running the Web Services Publishing Wizard in Schema mode, but unfortunately there isn't any way to save the settings from a run of that Wizard to run it again, so as I change code, and if I want to do automated builds, I have to manually re-run the Wizard. Also not a solution I would have been happy with.

You can download the project here if you want it - BuildWebServiceTest.zip (20.99 KB)

I have some other ideas about what to do with the knowledge I've gained looking into these details that I'll be posting in the next few days.

  #    Comments [3]   Tracked by:
"viagra" (viagra) [Trackback]

Navigation

Books

Courses

Search

Subscribe

  • RSS 2.0
  • Add to Windows Live button
  • Add to Google button
  • Add to MyMSN button
  • Add to MyYahoo button
  • Add to Bloglines button
  • Add to Newsgator button