Home Page › Forums › BizTalk 2004 – BizTalk 2010 › can call xml from orchestration?
- This topic has 6 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
September 17, 2008 at 9:11 AM #20740
Hi,
Would it be possible to call “config.xml” file from orchestration?
I will get item details from input file. I will have vendor info in a config file. I need to access the config file from orchestration to use for mapping. Would it be possible to access some xml file from orch?
Does this do anything wtih Business Rule Eng? I am wondering can i create these config info in business rule eng and use them at mapping time.
Siva
-
September 17, 2008 at 10:31 PM #20750
Hi
You can put your vendor info on C:\Program Files\Microsoft BizTalk Server 2006\BTSNTSvc.exe.config and easily access it from anywhere in your biztalk apps.
I have added a connection string on this config under the AppSetting node, like
add key=“DATACONN“ value=“Data Source=Server1;Initial Catalog=database1;uid=sa;pwd=sa“/>
and then accessed it on the Orchestrations expression as follow:
strConn = System.Configuration.ConfigurationSettings.AppSettings.Get(“DATACONN”);
Or you can declare an XmlDocument variable on the Orchestration View and put the following on the expression:
xmlDoc.Load(“config.xml”);
then traverse the xmlDoc to get the info you need.
-
September 18, 2008 at 7:58 AM #20760
Thank you Wonder,
I am thinking of using Business Rule Engine. Since this biztalk application will be use by our sale ppl more than 500 per sec, I am worrying about run time. If i need to access the config file each time, then application will be slow. I am searching for how can i handle this using Business Rule Engine or using config file’s cache for each access so application wouldnt slow down.
Have ever handle this kind of issue?
Siva
-
September 18, 2008 at 10:30 AM #20764
I’ve used the rules engine before and it works very well. The only problem is, it’s somewhat hard to change / update. You would not want business users updating Prod directly. And moving new changes is somewhat extensive… ie it’s a full product deployment.
I’ve used helper .net components for this as well. I believe Enterprise Library has some caching blocks that can be easily leveraged.
If you are in the 500 per second range, rules engine is probably the way to go. But you’ll be looking at a lot of BizTalk Servers to handle they type of load.
-
September 18, 2008 at 11:55 AM #20766
Thank you for your quick reply. Do you know any good webiste or article where i can learn about using BRE? I have a config file which has all of our vender info. I need to compare that config file with input message. If input msg and config have same vendor number, then create partners request msg and send it to them. loop through input file and do for all vendors.
I never used BRE before. Can i directly load config file to BRE or i need to create vocaulary, version, content value…and manually type the vendor number in the “value” field?
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.