Geeks With Blogs

News View Michael Stephenson's profile on BizTalk Blog Doc View Michael Stephenson's profile on LinkedIn
Michael Stephenson keeping your feet on premise while your heads in the cloud

I have been doing a little work with msbuild and BizTalk.  I want to regenerate the web services that are published from my orchestrations and schemas as part of my automated build process.  This post will describe my experience for the Soap Adapter, I will also probably write about the WSE2 and maybe WSE3 adapter also.

Problem

We want a process for publishing web services from BizTalk that is simple and also will support our automated build process.  Within our automated build we wanted to regenerate the web services from scratch rather than have them included as a project in the solution. 

Some of the issues we had with different ways of doing it were

Problem 1:BTSWebSvcPub.exe

You can use the command line like demonstrated in the following msbuild exec task

<Exec Command ='BTSWebSvcPub.exe $(OrchestrationAssemblyPath) -Location:$(WebServicesUrl) -Overwrite -Anonymous -Namespace:$(WebServicesNamespace) '/>

Although this is a perfectly good way to do it, The main problems with this are that you don’t have a lot of control over the web services that are outputted, and additionally the same technique cant be used with say the WSE 2 adapter as this requires additional information to generate the web services.

Problem 2: Use Wizard from Command Line

I read an article which described using the web service publishing wizard from the command line and supplying the path to a description of the web services as a config parameter.  This article was BizTalk 2004 I think, but it doesn’t seem to work in BTS 2006 as it just pops open the wizard ready to start filling it in.

Solution

I decided to use a code snippet from the same article which uses what is under the hood of the Web Service Publishing Wizard to allow me to pass the xml description of the web services and have them regenerated.  The process which is used is as follows:

1. For the first time, or each time there is a significant change to the web services you want to generate, you would manually use the web services publishing wizard to generate your web services.

2. When the web services are published grab the WebServiceDescription.xml file which is produced and include it in your solution.

3. When you run your automated build our msbuild task will be passed the xml description and regenerate the web services.

An example of calling the msbuild task is as follows:

<WebServiceGenerator WebServiceDescription=”C:\WebServiceDescription.xml” />

 

A code snippet to show how easy it is to regenerate web services from the description is as follows:

using Microsoft.BizTalk.WebServices;

using Microsoft.BizTalk.WebServices.Description;

WebServiceDescription desc = WebServiceDescription.LoadXml(this._Path);

WebServiceBuilder builder = new WebServiceBuilder();

builder.WebServiceDescription = desc;

builder.BuildWebService();

 

 

Posted on Saturday, September 16, 2006 6:55 PM BizTalk | Back to top


Comments on this post: BizTalk Web Service Publishing - Soap Adapter

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
در خواست مقاله در مورد
web service publishing
Left by sohrab on Mar 08, 2011 2:11 AM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
request jornnal for web service publishing
Left by sohrab on Mar 08, 2011 2:15 AM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Amazing post thanks for sharing with all of us and we all are very thankful after seeing this post
Feliz Navidad 2016
Feliz Año Nuevo 2017
UFJGJ
Left by DIPIKA on Dec 16, 2016 9:37 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Amazing post thanks for sharing with all of us and we all are very thankful after seeing this postGJF
Feliz Navidad 2016
Feliz Año Nuevo 2017 UITFGYU
Left by DIPIKA on Dec 16, 2016 9:38 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Amazing post thanks for sharing with all of us and we all are very thankful after seeing this postGJF
Feliz Navidad 2016
Feliz Año Nuevo 2017 jlugtftuj jhyfcuytgjdcgu jkbk
Left by DIPIKA on Dec 16, 2016 9:39 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Left by zapya boogy on Mar 30, 2017 1:20 AM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
great post admin thanks.
mobdro for Windows
xender download app
Left by mobdro tv app for pc on May 12, 2017 6:20 PM

# VIDMATE
Requesting Gravatar...
Left by shoba on May 16, 2017 4:48 AM

# share it app download
Requesting Gravatar...
Left by aparna on May 18, 2017 1:54 AM

# MOBDRO APP

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Ok bro

Wow Thanks sharing
VISIT my web :
Theme
Left by dedi galih wisnumurti on Jun 06, 2017 4:11 AM

# tubemate for pc
Requesting Gravatar...
good post
tubemate for pc
Left by dhoni babu on Nov 05, 2017 8:00 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
To find a website where the quality of audio and images to satisfy it is very difficult. And today I want to share a website with people watching. Movies extremely fine but completely free. View offline ..!
- yify
Left by yify on Nov 05, 2017 9:03 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
All Good

Google
Left by Priti Jain on Dec 13, 2017 10:15 PM

# instagram for pc
Requesting Gravatar...
Left by Raina Ram on Jan 01, 2018 8:26 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Download uc browser for pc app freeVidmate For PC
Left by Vidmate For PC on Jan 21, 2018 6:36 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
download new apps for pc
Showbox For Pc
Showbox for Mac/ios
Left by hotstar app download on Jan 28, 2018 4:53 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Yahoo Mail login is available in four different plans as Basic, Plus, Ad Free, and Business. You can use any of the plans and features are according to the plan
y mail login
Left by y mail login on Feb 06, 2018 7:06 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
Unlimited video, music, games, software applications and numerous other stuff are so easily obtainable from the Internet
filehippo
Left by manoharvangari on Mar 18, 2018 6:56 PM

# re: BizTalk Web Service Publishing - Soap Adapter
Requesting Gravatar...
This is also a very good post which I really enjoyed reading.
More Info...
Left by ninja on May 13, 2018 5:57 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net