Amount of Entries

Amount of Entries SearchSearch
Author Message
Oleg Tyschenko
Unregistered guest
Posted on Thursday, April 22, 2004 - 12:37 pm:   

Hi everyone,

The question is: How can I detect amount of entries in MMS body?
Well, I know that there is a field at the beginning that tells you about it, but I have the example when the file starts from the beginning. The MMS content type tells me that’s gif file format or whatever. But can I assume that if the MMS data starts from 0x01 – 0x1F – it tells you the amount of entries, and if not – file starts straightaway.
Or should I look at the content type in the MMS header? Like if it’s for example application/vnd.wap.multipart.* the multipart starts. But I have also an example, there content type is 0x00 - */* and multipart starts as well.

Thank you.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 2491
Registered: 10-2002
Posted on Wednesday, May 05, 2004 - 05:08 pm:   

Well, keep in mind that in later versions of the WSP specification, the nEntries field in the WSP header was deprecated.

The specification says that WSP implementations supporting encoding versions later than 1.3 MUST NOT use this field to determine the number of entries in any received multipart content.

Basically, you should parse the multipart until you get to the end of the data to determine how many entries there are. (Although I would expect most implementations to set this flag.)

If the content type is */*, and a multipart header follows ... then I would say that MMS message would not be understood by most MMS clients. That is definitely bad formatting.
sujal
Unregistered guest
Posted on Friday, July 09, 2004 - 02:18 pm:   

hello,
i'm new to WAP MMS so it might be the silly question for you but please can anyone tell me how can i come to know there is end of Header and now there is start of Body and in the body how many objects are there? is there any body specification is there? please guide me.