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
without
<?xml version="1.0" encoding="utf-8" ?>



like this



<configuration>



<configsections>




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




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




</section>



</sectiongroup>



<applicationsettings>




<mycompany.projectname.properties.settings>




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




<value>test</value>




</setting>




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




<value>E:\data.xml</value>




</setting>




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




<value>False</value>




</setting>




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




<value>003</value>




</setting>




</mycompany.projectname.properties.settings>



</applicationsettings>



</configsections>






Then paste it before tag </configuration>
in the



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



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.

Recommendation:
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