Thursday, October 22, 2009 5:09 AM
In part 3 I will be discussing about the creation of receive and send port and also how to send acknowledgement.
4 Configuring Receive and send ports and use of pipelines and its components
EDI basically uses FILE locations such as FTP or VAN to communicate with the partner. It also uses AS2 which I will be discussing in my upcoming articles in more details. Here I would suggest since this is your first project better use the file location to communicate with the different partner created. At the time BizTalk admin configuration you may encounter two scenarios.
Pipeline Configuration:
1- Scenarios with the Custom Pipeline You may need to create a Custom pipeline, in case you need to use other custom pipeline components which are indispensible for your solution. Use the custom component accordingly and you need to use EDI disassembler. There are few properties of this pipeline component which you need to look at in general are Allow trailing delimiters, Perform EDI data validation, Perform XSD validation, X12 character set. Please set these properties accordingly. Other properties are pretty straight forward.
2- Scenarios with the EDI pipelines In case if you are not using any custom pipeline component then you can use EdiReceive pipeline at the receive location in your BizTalk application.
3- You may encounter the similar problems for send pipelines so please follow the suggestion put through for receive location. Also the same properties you will see when you use the EDIReceive or EDISend in the BizTalk application using the BizTalk Admin console. At the send side when you use EDISend pipeline you need to use EDIMessageAction as 2 which is for Send and 1 is for receive. Rests of the properties are self explanatory.
Port Configuration
You need to three ports for this project.
Receive port: You need to create a receive port with receive location as FILE. Use the pipeline accordingly as mentioned in the pipeline configuration.
Send Port: Apart from using the FILE send port use below filters:
BTS.MessageType=”MessageType”
EDI.ISA06 = “Value of as per the party qualifier and identifier value”
If you need the acknowledgement needs to generated then set.
EDI.IsSystemGeneratedAck == true
Send Port for sending ACK:
In order to send the acknowledgment the first and foremost thing is to set EDI.IsSystemGeneratedAck == true. Upon setting this to true the acknowledgement will be generated and the send port just need to subscribe this.Below is the filter conditions which you need to use for the same. Make sure that you use EDIsend pipeline or EDIAssembler in case of custom pipeline.
BTS.MessageType == http://schemas.microsoft.com/Edi/X12#X12_997_Root And
EDI.ISA06 == "Value" And
EDI.IsSystemGeneratedAck == true
These properties can also be controlled at the time of configuring the EDI Properties for the party.
This completes the part 3 of the developing of first EDI project. Start the application and start receiving and sending EDI messages. In case if you face any problem please drop a not to me.