Convert EDI 850 message to XML
I have an EDI 850 message in text format. I'm using the Test Map feature in Azure BizTalk, which requires an XML input. My goal is to get an XML version of the EDI 850 text file.
Using BizTalk 2010, I created a FILE receive location and specified the EDIReceive pipeline. I created a FILE send port using the PassThruTransmit pipeline and filted on Receive Port Name. Process the EDI 850 message and the XML file was created.
Specific steps include:
In BizTalk Administration, expand BizTalk Application. Right-click Receive Ports, click New and then click One-way Receive Port.
Enter a Name for the receive port. For example, enter EDIReceivePort.
Click Receive Locations and then click New. Enter the following:
- Name: Enter a name for the receive location. For example, enter EDIReceiveLocation.
- Type: Click FILE.
- Receive pipeline: Click EdiReceive.
Click the Configurebutton and enter the following:
- Receive folder: Browse to the folder storing the EDI message.
- File mask: Change to *.txt
Click OK to close the windows.
Right-click Send Ports, click New, click Static One-way Send Port. Enter the following:
- Name: Enter a name for the send port. For example, enter EDISendPort.
- Type: Click FILE.
- Send pipeline: Click PassThruTransmit.
Click the Configure button and enter the following:
- Receive folder: Browse to the folder storing the EDI message.
- File mask: Keep the default value.
Click OK to close the window.
Click Filtersand enter the following filter:
BTS.ReceivePortName == EDIReceivePort
Click OK to close the window.
When complete, drop the EDI 850 text message into the FILE receive location. The FILE send port location should contain a MessageID.xml file.