Friday, May 26, 2006

VJ's world........ Bizy Talking

VJ's world........ Bizy Talking

SAP Adapter Context properties

BizTalk Adapter 2.0 for mySAP business-suite can be used to receive
IDOCs from SAP. SAP recieve adapter promotes some
very important control record properties in MessageContext which
can be used for routing/filtering. Here is the list of some properties
with their namespace.

Namespace : http://Microsoft.BizTalk.SAPAdapterProperties.idoc_control_
record_properties_xsd


1) MESTYP - Message Type of IDOC
2) DOCNUM - IDOC Number
3) CIMTYP - IDOC extension
4) MESCOD - Message Code
5) IDOCTYP - Basic Type of IDOC
6) And All Partner Profile related properties.

Wednesday, February 08, 2006

Splitter sample

Benny has given more clear picture here on how to do it.

Tuesday, February 07, 2006

Splitter

Problem:=
Given a flat file with Header,multiple Details and Trailer . Process only detail records in orchestration.Header defines destination URL used for dynamic binding and Trailer defines number of records, which is used for business validation.

Solution:=
1) Define three schemas ,one each for Header, Detail and Trailer.
2 ) Use property promotion to put Trailer value (no. of records) in message context.
3) Create a custom receive pipeline, specify flat file disassembler and configure following properties
a) Document schema b) Header Schema c) Trailer Schema and set Preserve header = true

In orchestration

A) Receive port configured to receive "Detail" request.
B) Use "XMLNORM.FlatFileHeaderDocument" property to retrive header string. For e.g. header = InMessage(XMLNORM.FlatFileHeaderDocument).Load header string into xmldocument variable and extract "destination URL".
C) Retrieve Trailer fields from message context and do the validations

Each Detail record will be processed by seperate orchestration instance.

Monday, February 06, 2006

Beaten Blue

Last few weeks have been really disappointing..........
First my favourite team from PHL, Maratha Warriors, was relegated to first division. I don’t know..How it happened..They started off really well and with so many good players like Viren, Dhanaraj.. I always thought they are strategically superior than rest. But they couldn’t manage to live up to the expectations …any way ..Warriors never fought like one.
And Indian Cricket is back to the point, where I feel completely frustrated. I know Pak is good team, but then the way they humiliated India in last Test was demoralising … here also none of the Indian Warriors could stand the acid test.

Mapping tips

BizTalk mapper provides one really good functionality.
While mapping for a "Link" you can set "Source Links" property to specify whether you want to
1) Copy Text (Node Value)
2) Copy Name (Node Name)
3) Copy text and Sub content (equivalent to Node.InnerText)

Its cool !!

Thursday, February 02, 2006

Binding Models In BizTalk

Binding Models In BizTalk
An excellent post on various binding models in BizTalk .
http://geekswithblogs.net/cyoung/articles/19546.aspx

Saturday, January 14, 2006

GacUtil Shortcut

Easier way to add a Biztalk dll (any .net dll) to gac .
I found it very useful
http://weblogs.asp.net/jan/archive/2005/12/24/433945.aspx

Tuesday, January 10, 2006

Property Promotion

Property Promotion

Property promotion refers to copying value of some key fields of the Message to the Message context , so that these values are easily accessible in various biztalk components. You can use property promotion to write values to Message Context which are not part of Message instance (data).

property promotion is of two types

--Property Field Promotion
Use this
When you want to use values of fields in orchestrations as well other biztalk components such as pipelines,ports.We can use this for routing purposes also.

--Distinguished Field Promotion
Use this,When you want to use values of fields only in orchestrations.
These values are stored in Message context as key- value pair . "key" here refers to Xpath of the field in consideration .This also requires less processing overhead compared to Property Field Promotion.