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:

  1. In BizTalk Administration, expand BizTalk Application. Right-click Receive Ports, click New and then click One-way Receive Port.

  2. Enter a Name for the receive port. For example, enter EDIReceivePort.

  3. 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.
  4. Click the Configurebutton and enter the following:

    • Receive folder: Browse to the folder storing the EDI message.
    • File mask: Change to *.txt
  5. Click OK to close the windows.

  6. 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.
  7. Click the Configure button and enter the following:

    • Receive folder: Browse to the folder storing the EDI message.
    • File mask: Keep the default value.
  8. Click OK to close the window.

  9. Click Filtersand enter the following filter:

    BTS.ReceivePortName == EDIReceivePort

  10. 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.