BizTalk 2006 R2 - consume an .ASMX webservice using WCF-BasicHttp adapter

Posted at: 5/31/2007 at 7:40 PM by saravana
Normally when we need to consume a .asmx web service in BizTalk 2004/2006 (NOT R2) inside an orchestration, we add a web reference, which will create all the multi-part message and web port type required to consume the orchestration. You construct the orchestration and configure the SOAP adapter in the send port to consume the web service. I suppose that's the normal route any BizTalk developer will take when you are put under a circumstance to consume an .asmx webservice using WCF-Ba... [More]
Tags: | |  Categories: BizTalk 2006 R2 | BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(32) | Comments RSS

BizTalk 2006, WCF (basicHttpBinding), Adding Web Reference will go in end less loop.

Posted at: 5/29/2007 at 7:33 PM by saravana
When I tried to add a "Web Reference" to a WCF service (basicHttpBinding), I encountered following behaviors 1. Either it will throw an exception showing "Failed to add Web Reference" and no more clue anywhere, OR 2. Message saying "This page is accessing information that is not under its control. This poses a security risk. Do you want to continue?" it wont wait for your reply, it will go on endless loop until you click "NO" (th... [More]
Tags: |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(39) | Comments RSS

Pipeline Component, XmlSerialization and Performance

Posted at: 5/29/2007 at 12:33 PM by saravana
I'm basically replying to Yossi's post here. I tried to leave it as a comment in his post but for some reasons my comments are not getting posted in his blog. Myself and Yossi used to work together in a big public sector Healthcare BizTalk project for nearly 1.5 years. First off all I need to thank Yossi for his complement about my white paper "Understanding Design-Time Properties for Custom Pipeline Components in BizTalk Server". Yossi mentioned in his po... [More]
Tags: |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(8) | Comments RSS

Create SQL Receive Locations Programmatically.

Posted at: 5/25/2007 at 7:52 PM by saravana
One of our recent projects involved creating an orchestration, which was bound to a physical one way receive port polling data from SQL server.  There will be multiple SQL receive locations for the same receive port. The receive locations will have different polling conditions based on the customer. Our requirement was to create one receive location per customer. So, we'll be adding more SQL receive locations as the customer base increases.  For that reason I created this func... [More]
Tags: | |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(3) | Comments RSS

Output custom formatted message from Orchestration.

Posted at: 5/24/2007 at 6:56 AM by saravana
Have you ever wanted to create a custom formatted message. For example if you define a message of type System.String inside your orchestration and output it via an adapter the result will be as shown below <?xml version="1.0" ?> <string>Hello there</string> this is because of the default serialization behavior of .NET base types within BizTalk. If in case you wanted to output the message as a simple string, in our case "Hello there" without an... [More]
Tags: |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(2) | Comments RSS

Can't see Debug statements in DebugView?

Posted at: 5/24/2007 at 6:49 AM by saravana
First of all to see debug statements inside DebugView you need to compile your assemblies in "Debug" mode. For optimization reasons if you compile your assemblies in "Release" mode all the System.Diagnostics.Debug.WriteLine statements will be ignored by the compiler and you won't see any output in the DebugView. When it comes to BizTalk project sometimes even though the tool bar will say the build is "Debug" as shown in the figure   When ... [More]
Tags: |  Categories: .NET | BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(14) | Comments RSS

ASP .NET Treeview Control, weird problem when you Programmatically expand the nodes.

Posted at: 5/23/2007 at 12:43 PM by saravana
One of my supporting project required building a web site using TreeView control to show hierarchical data. I used "NavigateUrl" property while data binding, so that every node in the tree view will have proper link something like http://abc.com/bts/default.aspx instead of Javascript:__doPostBack. Even though all of my pages are going to have the treeview control on the left, I'll lose the expanded status because the control will be navigated to a brand new page and whole page wi... [More]
Tags:  Categories: ASP .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(13) | Comments RSS

BizTalk, MSDTC, SSO and Cluster

Posted at: 5/21/2007 at 9:52 AM by saravana
Last night (BTW it was a Sunday) around 8PM I received a call from my ex-boss and good friend Mike Prager who is working as a Senior architect in one of the major retail project in UK, saying "Hey! SK, we had a power failure this afternoon in our data center and after the servers came back all our receive locations are disabled and send ports are not started. When I try to access them via the admin console, I'm receiving the error "Cannot retrieve list of objects due to a W... [More]
Tags: | |  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(7) | Comments RSS

Create safe File Name from string using .NET 2.0

Posted at: 5/19/2007 at 10:32 AM by saravana
Recently for one of my weekend project I wanted to create a safe file name from a string. In the past people used to do lot of regular expressions and conditional testing to meet this requirement. Still the filename won't be safe across multiple environments (Windows 2000/XP/2003 etc). But with .NET 2.0 using couple of inbuild functions (Path.GetInvalidFileNameChars and Path.GetInvalidPathChars) you can create safe filenames. Hope this piece of code will be useful to someone. ... [More]
Tags:  Categories: .NET
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(5) | Comments RSS

BizTalk Map - Suppress Element if Attribute is not required.

Posted at: 5/18/2007 at 6:44 PM by saravana
Scenario: The following question is taken from BizTalk.General NewsGroup (altered slightly for readability purpose) "I'm mapping an element in the source schema to an attribute in the destination schema.  The element  does not exist in the source schema, but when I run the map it creates the element in the destination schema that houses the attribute I am mapping to.  The attribute does not show up in the result of the map, just the empty elemen... [More]
Tags:  Categories: BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(12) | Comments RSS