Tuesday, May 13, 2008

How to add applicationSettings to your BizTalk solution?

I got stuck when I wanted to add
my applicationSettings of my assembly to my BizTalk solution but I caught the solution
and I am very glad to share the solution.

First you have to copy your app.config
<?xml version="1.0" encoding="utf-8" ?>

like this



<sectiongroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup,
System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089">

<section name="MyCompany.ProjectName.Business.Properties.Settings"
type="System.Configuration.ClientSettingsSection, System, Version=, Culture=neutral,
PublicKeyToken=b77a5c561934e089" requirepermission="false">





<setting name="SecurityToken" serializeas="String">



<setting name="FilePath" serializeas="String">



<setting name="IsTest" serializeas="String">



<setting name="TestType" serializeas="String">






Then paste it before tag </configuration>
in the

C:\Program Files\Microsoft BizTalk
Server 2006\BTSNTSvc.exe.config

After that, restart the BizTalk
host instance service.

That's it.

I hope you get the solution. I will
be very glad to receive any comments

Monday, May 12, 2008

BizTalk Mapping Tips

I'd like to share two tips of using mapping.It takes me along time to move lines from a page to another page in mapper.I was removing lines then added these lines to other pages.I have an easier way to do this task.
First Select the lines that you want to move

Then drag the selected lines and drag them to the grid of page2.

The second tip is that you can replace the functoid without removing lines related to that functoid. Just drag the new functiod on the old one.
in the example below I drag is not equal functoid on is equal functoid.
Then you will notice the lines were not removed.

In-Process Host vs Isolated Host

The BizTalk Host object represents a logical set of zero or more runtime processes in which you can deploy services, pipelines, and other artifacts. The Host object also represents a collection of runtime instances (zero or more) where the deployed items physically run.

In-process Hosts:It represents what the administrator creates with BizTalk Server Administration Console like orchestration,receive and send port.On The other hand,Isolated Hosts reprensts what the BizTlak Developer creates at runtime like web services and WCF Services.

It is recommended to build a host for send handelers , a host for receive handlers and a host for processes (orchestrations)
for more details check here

Sunday, May 11, 2008

Best Practices for the Sql Adapter

It is preffered to use sql adapter instead of using the C# code when you want to select,insert,update data in DB because microsoft follow the best performance ways to implement these task.
and here is the link of best practices for the sql adapter