cancel
Showing results for 
Search instead for 
Did you mean: 

Difference beyween Message and File

Former Member
0 Kudos

Hi,

I was been bold with a very basic question. It goes like this "What is the difference between Message and File?u201D Please feel free to throw your wild imagination and share your opinion.

Thanks

Gautam

Accepted Solutions (0)

Answers (4)

Answers (4)

santhosh_kumarv
Active Contributor
0 Kudos

To me.

Message is an XML content in an XSD schema..... which can be parsed and mapped...

File is an container that hold the XML message in a Raw form, such as tab delimited, comma seperated, PDF etc... we read the file content to form a Message.....

As Michal replied a file will have a message and not all message will have a File.... i.e.

In case of JDBC scenario Message comes from an Database where the data is stored as Records/tuples.

In case of IDoc scenario Message comes from an IDoc where the data is stored as a Segment....

In case of Mail scenario Message comes from an eMail wher the data is stored as an attachement/mail content...

So File is a container for an Message &

Message is an common term used to represent an Data...

~Sanv...

former_member187339
Active Contributor
0 Kudos

Hi Gautam,

A file is generic like flat file or exce/pdf files.

But messages can be anything like a file or jdbc records, soap requests etc... So a file is a subset of message (every file can be considered as a message in PI , but not the other way)

Regards

Suraj

JaganMohan
Participant
0 Kudos

Dear Gautam,

If you are asking in based on PI we can define like as follows:

File - The message container (For example, an .XML or .TXT or .CSV)

Message - The content of a file (For example, XML elements, data or text or CSV file data)

Regards,

JP.

Former Member
0 Kudos

So JP you mean message or file are same. If that is the situation then why we have 2 name to one thing.

Thanks

Gautam

JaganMohan
Participant
0 Kudos

Dear Gautam,

I don't say both are same. I'll let you give real world example. For example, if an XML file contains the details of a car manufacturing material records as follows.

<?xml version="1.0" encoding="UTF-8"?>

<GOODS>

<NUT>10</NUT>

<BOLT>10</BOLT>

<WHEEL>4</WHEEL>

</GOODS>

This is called as message.

How can we store this message in a location? As a file we can store with the extension .XML. So while storing the content in a location it is called as file. While the same content is processed or sent to some interfaces then we call it as message.

Regards,

JP.

Former Member
0 Kudos

Hi JP,

If I have understood correctly

File :- Storing of a message content in a location is file.

Message: - When file is transmitted in a channel / medium it becomes message.

So Message = File

Please correct me if I am wrong.

Thanks

Gautam

rajasekhar_reddy14
Active Contributor
0 Kudos

Yes , almost correct...

JaganMohan
Participant
0 Kudos

Dear Gautam,

Correct (in interface point of view)...:)

Regards,

JP.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

in terms of the middleware (interfaces)

very smililar to the difference between - a tree and an appletree I guess

Regards,

Michal Krawczyk

Former Member
0 Kudos

Could you please be more eleborative like

what is tree and what is an apple tree? Or should I say more specific.

Thanks

Gautam

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

in terms of interfaces file can be a message (or inside the message)

but a not every message needs to have a file inside (it can also be jms, jdbc, email message)

Regards,

Michal Krawczyk

Former Member
0 Kudos

Michal ,

What I feel JMS, JDBC, eMail is the median to transfer the file but they are not message.

I feel the same with the file.

Thanks

Gautam