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

Following on from my previous blog this will discuss the same topic in the context of the WSE 2 adapter.

Problem

Again i wanted to be regenerating the web services published by the WSE 2 adapter as part of my automated build.  I wanted to use the same technique where possible, i.e manually publish the first time or when ever there was a significant change.  I would then include the description file for the web services in my solution and then regenerate them using the custom msbuild task.

My aim was the have a task with the signature:

<WseWebServiceGenerator WebServiceDescription="C:\Description.xml"/>

Solution

This wasnt quite as easy as it sounded, i wanted to use the following code snippet (referencing the assemblies that come with the WSE 2 adapter):

using Microsoft.BizTalk.WseWebServices;
using Microsoft.BizTalk.WseWebServices.Description;

WebServiceDescription desc = WebServiceDescription.LoadXml(this._Path);
WebServiceBuilder builder = new WebServiceBuilder();
builder.WebServiceDescription = desc;
builder.BuildWebService();

This was basically the same as for the soap adapter but referencing the WSE 2 assemblies. 

The major problem i had was there was a bug in the WSE 2 assemblies.  The bug was that when it deserializes the description file if you have not chosed kerberos authentication a null or empty string is passed to this property on the object.  In the code if this value is passe then it throws an error.  To solve this i had to do a bit of hacking so i disassembled the assemblies and fixed the bug and rebuilt them to base my msbuild task on them.

Hopefully this bug will be fixed in course by microsoft, but until then you can probably just use this work around if you need to

Posted on Saturday, September 16, 2006 7:20 PM BizTalk , MsBuild | Back to top


Comments on this post: BizTalk Web Service Publishing - WSE 2.0 Adapter

# re: BizTalk Web Service Publishing - WSE 2.0 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 UHGUYJFCUYGG UIG
Left by DIPIKA on Dec 16, 2016 9:41 PM

# re: BizTalk Web Service Publishing - WSE 2.0 Adapter
Requesting Gravatar...
GREAT POST ADMIN THANKS.
Zapya apk download
Shareit apk Download
Left by zapya boogy on Mar 30, 2017 1:21 AM

# re: BizTalk Web Service Publishing - WSE 2.0 Adapter
Requesting Gravatar...
Left by mobdro tv app for pc on May 12, 2017 6:20 PM

# re: BizTalk Web Service Publishing - WSE 2.0 Adapter
Requesting Gravatar...
Left by shoba on May 16, 2017 4:48 AM

# tubemate for pc
Requesting Gravatar...
nice post
tubemate for pc
Left by dhoni babu on Nov 05, 2017 7:59 PM

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

# re: BizTalk Web Service Publishing - WSE 2.0 Adapter
Requesting Gravatar...
Thanks for this great post. This is really helpful for me. Also, see
Visit For More
Left by dhriti on May 13, 2018 5:59 PM

Your comment:
 (will show your gravatar)


Copyright © Michael Stephenson | Powered by: GeeksWithBlogs.net