×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    5

    need detailed information about mm encoding

    Hi!

    I have some detailed questions about encoding mm ( for the mm1 interface), especially about sending mms from the view of a client. I also read some OMA Specifications, but they weren’t very helpful. But they say that there are two ways to communicate with the mmsc.
    1. The Client creates a wsp package and sends it to its wap gateway. The wap gateway converts this wsp package into http package and sends it to the mmsc.
    2. The Client creates a http package and send it to the mmsc on the direct way.

    And I want to take a look on the second way.
    If the Client wants to send an mm, it sends an m-send.req, that is a http post request. Now my first question: How does the Header of this http post request look like? I created an example:
    Code:
    POST /mms HTTP/1.1
    Host: www.provider.com
    Content-Type: application/vnd.wap.mms-message
    Is that ok? Do I need other headerlines like “Content-Encoding” or “User-Agent” or something like that? If yes, which headerlines do I also need and what are their values?

    The content of this http post contains the mm, which also consist of an mm header and an mm content. Now my next question: How does the header of the mm look like. I know that I need some mandatory header fields. In case of an m-send.req those header fields are:
    Code:
    X-Mms-Message-Type
    X-Mms-Transaction-ID
    X-Mms-MMS-Version
    From
    Content-Type
    I looked up the assigned numbers of these fields. The assigned number of the “X-Mms-Message-Type” field is “0x0C”. How do I use this value? Do I just write:
    Code:
    0C
    as the first two characters of the mm header?

    Then I looked up the values of these fields and the assigned numbers of these values. The value of the “X-Mms-Message-Type” field should be “m-send-req” in this case and the assigned number of this value is “<Octet 128>”. Huh ? Now I am even more confused… how shall I interpret this assigned number? Can I just write “80” into the header because 80 in hex is 128 in bin. So my header now looks like this:
    Code:
    0C80
    Is that right? Can u give a complete header example for a m-send.req, if I want to send an image/jpeg and a audio/wav in the same mm, because the value of content-type field is even harder to comprehend. And when the header is ready, the mm content follows. And how does the mm content look like? Is there a start marker and an end marker for the whole content or even between the parts of the content ( if I want to send image/jpeg and audio/wav at the same time for example) and how Is the content encoded? Can you give an example?

    Sorry that this text is so long…

    I hope you can help me

  2. #2
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Re: need detailed information about mm encoding

    This is an actual submit-request:

    POST /server/mms HTTP/1.1
    Host: XX.XX.XX.XX
    accept: application/vnd.wap.mms-message
    accept-charset: utf-8, utf-16; q=0.6, iso-8859-1, *
    accept-language: en
    bearer-indication: 0
    cache-control: No-Cache
    content-length: 34040
    content-type: application/vnd.wap.mms-message
    encoding-version: 1.4
    user-agent: SonyEricssonP800/R101 Profile/MIDP-1.0 Configuration/CLDC-1.0 UP.Link/6.3.0.0.0
    x-up-devcap-charset: utf-8, utf-16; q=0.6, iso-8859-1, *
    x-up-devcap-max-pdu: 300000
    x-up-uplink: wappush.operator.net
    x-up-wtls-info: off
    x-wap-profile: "http://wap.sonyericsson.com/UAprof/P800R101.xml"
    x-up-calling-line-id: 0123456789


    hope this helps

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    5

    Re: need detailed information about mm encoding

    Ok, thanks!
    But this is only the http header, right ? Next step is mm header and mm content

    Some more questions:
    The Http header field Content-Lenght depends on the size of your content, doesnt it ?
    And what is the encoding-version ? The http header field "encoding-version" is not equal to the mm header field "X-Mms-MMS-Version" , because that must be 1.2 , doenst it ? But what else is it ?

Similar Threads

  1. Replies: 13
    Last Post: 2007-12-07, 11:21
  2. AT commands - sending ringtone using PDU
    By liangzhuge in forum Smart Messaging
    Replies: 39
    Last Post: 2007-04-06, 10:18
  3. Prototype SDK 2.0 setup problem
    By jackmcardle in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2007-01-09, 16:21
  4. Who know about WMA information for send SMS with java ?
    By Por_NaCl in forum Mobile Java General
    Replies: 1
    Last Post: 2005-04-04, 10:44
  5. Charset encoding of outgoing E-mail messages
    By omerz in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-05-09, 11:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •