Setting “KeepAlive” Value in BizTalk Web Service Calls

A few months back I posted about getting “canceled web requests” when calling a service on WebLogic from a BizTalk Server. Now, there appears to be a Microsoft hotfix that can address this.

While looking for another hotfix, I located this …

The cause given states “This problem occurs because you cannot set the HTTP header KeepAlive property to false when you use the HTTP adapter to send a message.”

There’s a non-hotfix workaround offered (which isn’t great), and then a description on how to set the “KeepAlive” to “false” after applying the hotfix. It’s a bit humorous, however, that the installation instructions include this little tidbit … “We do not recommend that you deploy this schema because future BizTalk Server updates may include an HTTP schema to set the KeepAlive property.” I’d prefer you not offer it as an option then! It’s recommended that you do NOT actually build out the property schema, but instead set the KeepAlive value in the pipeline.

Setting KeepAlive to false isn’t a great thing to do, but if you’re desperate, you now have a means to do it.

Technorati Tags:

Author: Richard Seroter

Richard Seroter is Director of Developer Relations and Outbound Product Management at Google Cloud. He’s also an instructor at Pluralsight, a frequent public speaker, the author of multiple books on software design and development, and a former editor plus former 12-time Microsoft MVP for cloud. As Director of Developer Relations and Outbound Product Management, Richard leads an organization of Google Cloud developer advocates, engineers, platform builders, and outbound product managers that help customers find success in their cloud journey. Richard maintains a regularly updated blog on topics of architecture and solution design and can be found on Twitter as @rseroter.

2 thoughts

  1. I have been intermittently getting this error in Biztalk
    An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel. It only happens in my production environment. The web service that I have set up on the Biztalk Server 2006 R2, is calling an IBM web service on a Websphere server v6.1, that is a plug in generated for Content Manager 8.3 CMBSpecificWebService. At this point I am planning to use a custom binding to set KeepAliveEnabled=false.
    What is the hotfix that you mention? What kind of errors will I see with KeepAlive disabled?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.