Both are used to receive HL7 message but former one used to receive HL7 message as flat file and later one to receive HL7 message as XML.